public class JavelinSensorEvent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
sensor
The sensor that generated the event.
|
float[] |
values
The length and contents of the array depends on which
sensor was returned. |
Constructor and Description |
---|
JavelinSensorEvent(int sensor,
float[] values) |
public int sensor
ISensor
public final float[] values
sensor
was returned.
The default sampling rate of the accelerometer and gyroscope is 100Hz.
All values are in g's. 1g = 9.8m/s^2. They measure acceleration in X, Y and Z axis.
The values[] array length is 9 which stores 3 data values at the same point in time for each axis in the values[] array. Example: {x1,y1,z1} are sampled at the same point in time, {x2,y2,z2} are sampled at the same point in time, etc...
ISensor.TYPE_GYROSCOPE
:
All values are in degrees/second. They measure the angular rate in X, Y and Z axis.
ISensor.TYPE_MAGNETIC_FIELD
:
All values are in micro-Tesla. They measure the magnetic field in X, Y and Z axis.