Options
All
  • Public
  • Public/Protected
  • All
Menu

Class I2cImu6Abstract

Hierarchy

Implements

Index

Constructors

constructor

Properties

address

address: any

Abstract i2cinfo

i2cinfo: I2cInfo

keys

keys: string[]

params

params: any

requiredKeys

requiredKeys: string[]

Methods

Abstract calcTemp

  • calcTemp(data?: number | null): number | null
  • Parameters

    • Optional data: number | null

    Returns number | null

char2short

  • char2short(val1: number, val2: number): any

clearFlagWait

  • clearFlagWait(address: number, index: number): Promise<void>
  • Parameters

    • address: number
    • index: number

    Returns Promise<void>

getAccelAdcArrayWait

  • getAccelAdcArrayWait(): Promise<number[]>
  • Returns Promise<number[]>

Abstract getAccelAdcWait

  • getAccelAdcWait(): Promise<Xyz>
  • Returns Promise<Xyz>

getAccelArrayWait

  • getAccelArrayWait(): Promise<number[]>
  • Returns Promise<number[]>

getAccelRange

  • Returns accelRange

getAccelUnit

  • Returns accelUnit

getAccelWait

  • getAccelWait(): Promise<Xyz>
  • Returns Promise<Xyz>

getAccelerometerWait

  • getAccelerometerWait(): Promise<Xyz>
  • Returns Promise<Xyz>

getAllAdcArrayWait

  • getAllAdcArrayWait(): Promise<any[]>
  • Returns Promise<any[]>

Abstract getAllAdcWait

  • Returns Promise<Inertia6>

getAllArrayWait

  • getAllArrayWait(): Promise<any[]>
  • Returns Promise<any[]>

getAllDataWait

  • Returns Promise<Inertia6>

getAllWait

  • Returns Promise<Inertia6>

getGyroAdcArrayWait

  • getGyroAdcArrayWait(): Promise<number[]>
  • Returns Promise<number[]>

Abstract getGyroAdcWait

  • getGyroAdcWait(): Promise<Xyz>
  • Returns Promise<Xyz>

getGyroArrayWait

  • getGyroArrayWait(): Promise<number[]>
  • Returns Promise<number[]>

getGyroRange

  • Returns gyroRange

getGyroUnit

  • Returns gyroUnit

getGyroWait

  • getGyroWait(): Promise<Xyz>
  • Returns Promise<Xyz>

getGyroscopeWait

  • getGyroscopeWait(): Promise<Xyz>
  • Returns Promise<Xyz>

Abstract getTempAdcWait

  • getTempAdcWait(): Promise<number>
  • Returns Promise<number>

getTempWait

  • getTempWait(): Promise<number | null>
  • Returns Promise<number | null>

getWait

  • Returns Promise<Inertia6>

i2cInfo

readWait

  • readWait(command: number, length: number): Promise<number[]>
  • Parameters

    • command: number
    • length: number

    Returns Promise<number[]>

Abstract setAccelRange

  • Parameters

    Returns void

setAccelUnit

  • Parameters

    Returns void

Abstract setGyroRange

  • Parameters

    Returns void

setGyroUnit

  • setGyroUnit(gyro_unit: gyroUnit): void
  • Parameters

    Returns void

Abstract whoamiWait

  • whoamiWait(): Promise<number>
  • Returns Promise<number>

wired

  • wired(obniz: Obniz): void

write

  • write(command: any, buf: any): void
  • Parameters

    • command: any
    • buf: any

    Returns void

writeFlagWait

  • writeFlagWait(address: number, index: number): Promise<void>
  • Parameters

    • address: number
    • index: number

    Returns Promise<void>

Static charArrayToInt16

  • charArrayToInt16(values: [number, number], endian?: string): number
  • Parameters

    • values: [number, number]
    • Default value endian: string = "b"

    Returns number

Static charArrayToXyz

  • charArrayToXyz(data: number[], endian?: string, scaleFunc?: (Anonymous function)): Xyz
  • Parameters

    • data: number[]
    • Default value endian: string = "b"
    • Default value scaleFunc: (Anonymous function) = (d: number): number => d

    Returns Xyz

Generated using TypeDoc