Search
Preparing search index...
The search index is not available
obniz
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Parts
MPU6050
MPU6050
Class MPU6050
Hierarchy
I2cImu6Abstract
MPU6050
MPU6500
MPU6886
Implements
ObnizPartsInterface
Index
Constructors
constructor
Properties
address
i2cinfo
keys
params
required
Keys
Methods
bypass
Magnetometer
Wait
calc
Temp
char2short
clear
Flag
Wait
config
Dlpf
Wait
get
Accel
Adc
Array
Wait
get
Accel
Adc
Wait
get
Accel
Array
Wait
get
Accel
Range
get
Accel
Unit
get
Accel
Wait
get
Accelerometer
Wait
get
All
Adc
Array
Wait
get
All
Adc
Wait
get
All
Array
Wait
get
All
Data
Wait
get
All
Wait
get
Gyro
Adc
Array
Wait
get
Gyro
Adc
Wait
get
Gyro
Array
Wait
get
Gyro
Range
get
Gyro
Unit
get
Gyro
Wait
get
Gyroscope
Wait
get
Temp
Adc
Wait
get
Temp
Wait
get
Wait
i2c
Info
init
read
Wait
reset
Wait
set
Accel
Range
set
Accel
Unit
set
Config
set
Gyro
Range
set
Gyro
Unit
sleep
Wait
wake
Wait
whoami
Wait
wired
write
write
Flag
Wait
char
Array
ToInt16
char
Array
ToXyz
info
Constructors
constructor
new MPU6050
(
)
:
MPU6050
Returns
MPU6050
Properties
address
address
:
any
i2cinfo
i2cinfo
:
I2cInfo
keys
keys
:
string
[]
params
params
:
any
required
Keys
required
Keys
:
string
[]
Methods
bypass
Magnetometer
Wait
bypass
Magnetometer
Wait
(
flag
?:
boolean
)
:
Promise
<
void
>
Parameters
Default value
flag:
boolean
= true
Returns
Promise
<
void
>
calc
Temp
calc
Temp
(
data
?:
number
|
null
)
:
number
|
null
Parameters
Optional
data:
number
|
null
Returns
number
|
null
char2short
char2short
(
val1
:
number
, val2
:
number
)
:
any
Parameters
val1:
number
val2:
number
Returns
any
clear
Flag
Wait
clear
Flag
Wait
(
address
:
number
, index
:
number
)
:
Promise
<
void
>
Parameters
address:
number
index:
number
Returns
Promise
<
void
>
config
Dlpf
Wait
config
Dlpf
Wait
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
Accel
Adc
Array
Wait
get
Accel
Adc
Array
Wait
(
)
:
Promise
<
number
[]
>
Returns
Promise
<
number
[]
>
get
Accel
Adc
Wait
get
Accel
Adc
Wait
(
)
:
Promise
<
Xyz
>
Returns
Promise
<
Xyz
>
get
Accel
Array
Wait
get
Accel
Array
Wait
(
)
:
Promise
<
number
[]
>
Returns
Promise
<
number
[]
>
get
Accel
Range
get
Accel
Range
(
)
:
accelRange
Returns
accelRange
get
Accel
Unit
get
Accel
Unit
(
)
:
accelUnit
Returns
accelUnit
get
Accel
Wait
get
Accel
Wait
(
)
:
Promise
<
Xyz
>
Returns
Promise
<
Xyz
>
get
Accelerometer
Wait
get
Accelerometer
Wait
(
)
:
Promise
<
Xyz
>
Returns
Promise
<
Xyz
>
get
All
Adc
Array
Wait
get
All
Adc
Array
Wait
(
)
:
Promise
<
any
[]
>
Returns
Promise
<
any
[]
>
get
All
Adc
Wait
get
All
Adc
Wait
(
)
:
Promise
<
Inertia6
>
Returns
Promise
<
Inertia6
>
get
All
Array
Wait
get
All
Array
Wait
(
)
:
Promise
<
any
[]
>
Returns
Promise
<
any
[]
>
get
All
Data
Wait
get
All
Data
Wait
(
)
:
Promise
<
Inertia6
>
Returns
Promise
<
Inertia6
>
get
All
Wait
get
All
Wait
(
)
:
Promise
<
Inertia6
>
Returns
Promise
<
Inertia6
>
get
Gyro
Adc
Array
Wait
get
Gyro
Adc
Array
Wait
(
)
:
Promise
<
number
[]
>
Returns
Promise
<
number
[]
>
get
Gyro
Adc
Wait
get
Gyro
Adc
Wait
(
)
:
Promise
<
Xyz
>
Returns
Promise
<
Xyz
>
get
Gyro
Array
Wait
get
Gyro
Array
Wait
(
)
:
Promise
<
number
[]
>
Returns
Promise
<
number
[]
>
get
Gyro
Range
get
Gyro
Range
(
)
:
gyroRange
Returns
gyroRange
get
Gyro
Unit
get
Gyro
Unit
(
)
:
gyroUnit
Returns
gyroUnit
get
Gyro
Wait
get
Gyro
Wait
(
)
:
Promise
<
Xyz
>
Returns
Promise
<
Xyz
>
get
Gyroscope
Wait
get
Gyroscope
Wait
(
)
:
Promise
<
Xyz
>
Returns
Promise
<
Xyz
>
get
Temp
Adc
Wait
get
Temp
Adc
Wait
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
get
Temp
Wait
get
Temp
Wait
(
)
:
Promise
<
number
|
null
>
Returns
Promise
<
number
|
null
>
get
Wait
get
Wait
(
)
:
Promise
<
Inertia6
>
Returns
Promise
<
Inertia6
>
i2c
Info
i2c
Info
(
)
:
I2cInfo
Returns
I2cInfo
init
init
(
)
:
void
Returns
void
read
Wait
read
Wait
(
command
:
number
, length
:
number
)
:
Promise
<
number
[]
>
Parameters
command:
number
length:
number
Returns
Promise
<
number
[]
>
reset
Wait
reset
Wait
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
set
Accel
Range
set
Accel
Range
(
accel_range
:
accelRange
)
:
void
Parameters
accel_range:
accelRange
Returns
void
set
Accel
Unit
set
Accel
Unit
(
accel_unit
:
accelUnit
)
:
void
Parameters
accel_unit:
accelUnit
Returns
void
set
Config
set
Config
(
accelerometer_range
:
number
, gyroscope_range
:
number
, ADC_cycle
?:
any
)
:
void
Parameters
accelerometer_range:
number
gyroscope_range:
number
Optional
ADC_cycle:
any
Returns
void
set
Gyro
Range
set
Gyro
Range
(
gyro_range
:
gyroRange
)
:
void
Parameters
gyro_range:
gyroRange
Returns
void
set
Gyro
Unit
set
Gyro
Unit
(
gyro_unit
:
gyroUnit
)
:
void
Parameters
gyro_unit:
gyroUnit
Returns
void
sleep
Wait
sleep
Wait
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
wake
Wait
wake
Wait
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
whoami
Wait
whoami
Wait
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
wired
wired
(
obniz
:
Obniz
)
:
void
Parameters
obniz:
Obniz
Returns
void
write
write
(
command
:
any
, buf
:
any
)
:
void
Parameters
command:
any
buf:
any
Returns
void
write
Flag
Wait
write
Flag
Wait
(
address
:
number
, index
:
number
)
:
Promise
<
void
>
Parameters
address:
number
index:
number
Returns
Promise
<
void
>
Static
char
Array
ToInt16
char
Array
ToInt16
(
values
:
[
number
,
number
]
, endian
?:
string
)
:
number
Parameters
values:
[
number
,
number
]
Default value
endian:
string
= "b"
Returns
number
Static
char
Array
ToXyz
char
Array
ToXyz
(
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
info
(
)
:
ObnizPartsInfo
Returns
ObnizPartsInfo
Globals
MPU6050
constructor
address
i2cinfo
keys
params
required
Keys
bypass
Magnetometer
Wait
calc
Temp
char2short
clear
Flag
Wait
config
Dlpf
Wait
get
Accel
Adc
Array
Wait
get
Accel
Adc
Wait
get
Accel
Array
Wait
get
Accel
Range
get
Accel
Unit
get
Accel
Wait
get
Accelerometer
Wait
get
All
Adc
Array
Wait
get
All
Adc
Wait
get
All
Array
Wait
get
All
Data
Wait
get
All
Wait
get
Gyro
Adc
Array
Wait
get
Gyro
Adc
Wait
get
Gyro
Array
Wait
get
Gyro
Range
get
Gyro
Unit
get
Gyro
Wait
get
Gyroscope
Wait
get
Temp
Adc
Wait
get
Temp
Wait
get
Wait
i2c
Info
init
read
Wait
reset
Wait
set
Accel
Range
set
Accel
Unit
set
Config
set
Gyro
Range
set
Gyro
Unit
sleep
Wait
wake
Wait
whoami
Wait
wired
write
write
Flag
Wait
char
Array
ToInt16
char
Array
ToXyz
info
MPU6050
Options
Generated using
TypeDoc