Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MPU9250

Hierarchy

Implements

Index

Constructors

constructor

Properties

address

address: any

ak8963

ak8963: AK8963

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
  • Parameters

    • val1: number
    • val2: number

    Returns 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

getCompassAdcArrayWait

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

getCompassAdcWait

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

getCompassArrayWait

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

getCompassRange

  • getCompassRange(): string
  • Returns string

getCompassUnit

  • getCompassUnit(): "uT" | "G" | "mT" | "T" | "mG" | "kG" | "uG"
  • Returns "uT" | "G" | "mT" | "T" | "mG" | "kG" | "uG"

getCompassWait

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

getGyroAdcArrayWait

  • getGyroAdcArrayWait(): Promise<number[]>

getGyroAdcWait

  • getGyroAdcWait(): Promise<Xyz>

getGyroArrayWait

  • getGyroArrayWait(): Promise<number[]>

getGyroRange

getGyroUnit

getGyroWait

  • getGyroWait(): Promise<Xyz>

getGyroscopeWait

  • getGyroscopeWait(): Promise<Xyz>

getMagneticAdcArrayWait

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

getMagneticAdcWait

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

getMagneticArrayWait

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

getMagneticRange

  • getMagneticRange(): string
  • Returns string

getMagneticUnit

  • getMagneticUnit(): "uT" | "G" | "mT" | "T" | "mG" | "kG" | "uG"
  • Returns "uT" | "G" | "mT" | "T" | "mG" | "kG" | "uG"

getMagneticWait

  • getMagneticWait(): Promise<Xyz>
  • Returns 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(accel_range: any, gyro_range: any, ADC_cycle: any): void
  • Parameters

    • accel_range: any
    • gyro_range: any
    • 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
  • Parameters

    Returns 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