Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ICM20948

Hierarchy

Implements

Index

Constructors

constructor

Properties

address

address: any

g

g: number = 9.80665

keys

keys: string[]

params

params: any

requiredKeys

requiredKeys: string[]

Methods

accelFs

  • accelFs(value: string): void
  • Parameters

    • value: string

    Returns void

accelSf

  • accelSf(value: string): void
  • Parameters

    • value: string

    Returns void

accelerationWait

  • accelerationWait(): Promise<[number, number, number]>
  • Returns Promise<[number, number, number]>

calibrateWait

  • calibrateWait(): Promise<{ offset: [number, number, number]; scale: [number, number, number] }>
  • Returns Promise<{ offset: [number, number, number]; scale: [number, number, number] }>

char2short

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

    • val1: number
    • val2: number

    Returns any

clearFlagWait

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

    • address: number
    • index: number

    Returns Promise<void>

gyroFs

  • gyroFs(value: string): void
  • Parameters

    • value: string

    Returns void

gyroSf

  • gyroSf(value: string): void
  • Parameters

    • value: string

    Returns void

gyroWait

  • gyroWait(): Promise<[number, number, number]>
  • Returns Promise<[number, number, number]>

i2cInfo

initWait

  • initWait(): Promise<void>
  • Returns Promise<void>

magneticWait

  • magneticWait(): Promise<[number, number, number]>
  • Returns Promise<[number, number, number]>

readWait

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

    • command: number
    • length: number

    Returns Promise<number[]>

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

Static info

  • Returns ObnizPartsInfo

Object literals

i2cinfo

i2cinfo: object

address

address: number = 105

clock

clock: number = 100000

pull

pull: "3v" = "3v"

voltage

voltage: "3v" = "3v"

Generated using TypeDoc