Search
Preparing search index...
The search index is not available
obniz
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Parts
SH200Q
SH200Q
Class SH200Q
Hierarchy
I2cImu6Abstract
SH200Q
Implements
ObnizPartsInterface
Index
Constructors
constructor
Properties
address
keys
params
required
Keys
Methods
_reset
calc
Temp
char2short
clear
Flag
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
Wait
read
Wait
reset
Adc
Wait
set
Accel
Range
set
Accel
Unit
set
Config
set
Gyro
Range
set
Gyro
Unit
whoami
Wait
wired
write
write
Flag
Wait
char
Array
ToInt16
char
Array
ToXyz
info
Object literals
i2cinfo
commands
Constructors
constructor
new SH200Q
(
)
:
SH200Q
Returns
SH200Q
Properties
address
address
:
any
keys
keys
:
string
[]
params
params
:
any
required
Keys
required
Keys
:
string
[]
Methods
_reset
_reset
(
)
:
void
Returns
void
calc
Temp
calc
Temp
(
data
?:
number
|
null
|
undefined
)
:
number
|
null
Parameters
Optional
data:
number
|
null
|
undefined
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
>
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
Wait
init
Wait
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
read
Wait
read
Wait
(
command
:
number
, length
:
number
)
:
Promise
<
number
[]
>
Parameters
command:
number
length:
number
Returns
Promise
<
number
[]
>
reset
Adc
Wait
reset
Adc
Wait
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
set
Accel
Range
set
Accel
Range
(
accel_range
:
SH200QAccelRange
)
:
void
Parameters
accel_range:
SH200QAccelRange
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
)
:
void
Parameters
accelerometer_range:
number
gyroscope_range:
number
Returns
void
set
Gyro
Range
set
Gyro
Range
(
gyro_range
:
SH200QGyroRange
)
:
void
Parameters
gyro_range:
SH200QGyroRange
Returns
void
set
Gyro
Unit
set
Gyro
Unit
(
gyro_unit
:
gyroUnit
)
:
void
Parameters
gyro_unit:
gyroUnit
Returns
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
Object literals
i2cinfo
i2cinfo
:
object
address
address
:
number
= 108
clock
clock
:
number
= 100000
pull
pull
:
"3v"
= "3v"
voltage
voltage
:
"3v"
= "3v"
Static
commands
commands
:
object
acc_
config
acc_
config
:
number
= 14
acc_
range
acc_
range
:
number
= 22
adc_
reset
adc_
reset
:
number
= 194
fifo_
config
fifo_
config
:
number
= 18
gyro_
config
gyro_
config
:
number
= 15
gyro_
dlpf
gyro_
dlpf
:
number
= 17
gyro_
range
gyro_
range
:
number
= 43
output_
acc
output_
acc
:
number
= 0
output_
gyro
output_
gyro
:
number
= 6
output_
temp
output_
temp
:
number
= 12
reg_
set1
reg_
set1
:
number
= 186
reg_
set2
reg_
set2
:
number
= 202
reset
reset
:
number
= 117
soft_
reset
soft_
reset
:
number
= 127
whoami
whoami
:
number
= 48
whoami_
result
whoami_
result
:
number
= 24
accel_
fs_
sel
accel_
fs_
sel
:
object
16g
16g
:
number
= 2
4g
4g
:
number
= 0
8g
8g
:
number
= 1
gyro_
fs_
sel
gyro_
fs_
sel
:
object
1000dps
1000dps
:
number
= 1
125dps
125dps
:
number
= 4
2000dps
2000dps
:
number
= 0
250dps
250dps
:
number
= 3
500dps
500dps
:
number
= 2
Globals
SH200Q
constructor
address
keys
params
required
Keys
_reset
calc
Temp
char2short
clear
Flag
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
Wait
read
Wait
reset
Adc
Wait
set
Accel
Range
set
Accel
Unit
set
Config
set
Gyro
Range
set
Gyro
Unit
whoami
Wait
wired
write
write
Flag
Wait
char
Array
ToInt16
char
Array
ToXyz
info
i2cinfo
commands
SH200QAccel
Range
SH200QGyro
Range
SH200QOptions
Generated using
TypeDoc