Sensor value that can be received by onSensorChanged is different by sensor type used.
SensorEvent array element numbers supporting each sensor type are shown below.
Sensor type
TYPE_ACCELEROMETER
TYPE_GYROSCOPE
TYPE_MAGNETIC_FIELD
TYPE_LIGHT
TYPE_HEADSET_TAP
TYPE_ORIENTATION
MOVERIO Pro Developer's Guide (Rev.1.4)
Unit
Sensor value
2
m/s
X axis
Y axis
Z axis
rad/s
X axis
Y axis
Z axis
uT
X axis
Y axis
Z axis
Lux
Illuminance
-
When tap:1
degree
Azimuth
0 ~ 359 degree
0
:north
90 :east
180 :south
270 :west
Inclination angle
-180~180 degree
Rotation angle
-90 ~ 90 degree
119
SensorEvent
Array index
0
1
2
0
1
2
0
1
2
0
0
0
1
2