Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MPU6886

Hierarchy

Implements

Index

Constructors

constructor

Properties

address

address: any

i2cinfo

i2cinfo: I2cInfo

keys

keys: string[]

params

params: any

requiredKeys

requiredKeys: string[]

Methods

bypassMagnetometerWait

  • bypassMagnetometerWait(flag?: boolean): Promise<void>
  • Parameters

    • Default value flag: boolean = true

    Returns Promise<void>

calcTemp

  • calcTemp(data?: number | null): 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>

configDlpfWait

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

getAccelAdcArrayWait

  • getAccelAdcArrayWait(): Promise<number[]>

getAccelAdcWait

  • getAccelAdcWait(): Promise<Xyz>

getAccelArrayWait

  • getAccelArrayWait(): Promise<number[]>

getAccelRange

getAccelUnit

getAccelWait

  • getAccelWait(): Promise<Xyz>

getAccelerometerWait

  • getAccelerometerWait(): Promise<Xyz>

getAllAdcArrayWait

  • getAllAdcArrayWait(): Promise<any[]>

getAllAdcWait

getAllArrayWait

  • getAllArrayWait(): Promise<any[]>

getAllDataWait

getAllWait

getGyroAdcArrayWait

  • getGyroAdcArrayWait(): Promise<number[]>

getGyroAdcWait

  • getGyroAdcWait(): Promise<Xyz>

getGyroArrayWait

  • getGyroArrayWait(): Promise<number[]>

getGyroRange

getGyroUnit

getGyroWait

  • getGyroWait(): Promise<Xyz>

getGyroscopeWait

  • getGyroscopeWait(): Promise<Xyz>

getTempAdcWait

  • getTempAdcWait(): Promise<number>

getTempWait

  • getTempWait(): Promise<number | null>

getWait

i2cInfo

init

  • init(): void
  • Returns void

readWait

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

    • command: number
    • length: number

    Returns Promise<number[]>

resetWait

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

setAccelRange

setAccelUnit

setConfig

  • setConfig(accelerometer_range: number, gyroscope_range: number, ADC_cycle?: any): void
  • Parameters

    • accelerometer_range: number
    • gyroscope_range: number
    • Optional ADC_cycle: any

    Returns void

setGyroRange

setGyroUnit

  • setGyroUnit(gyro_unit: gyroUnit): void

sleepWait

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

wakeWait

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

whoamiWait

  • whoamiWait(): 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

Generated using TypeDoc