public class ESenseEvent
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
double[] |
convertAccToG(ESenseConfig config)
Converts current ADC accelerometer values to acceleration in g
|
double[] |
convertGyroToDegPerSecond(ESenseConfig config)
Converts current ADC gyroscope values to rotational speed in degrees/second
|
short[] |
getAccel() |
short[] |
getGyro() |
int |
getPacketIndex() |
long |
getTimestamp() |
void |
setAccel(short[] accel) |
void |
setGyro(short[] gyro) |
void |
setPacketIndex(int packetIndex) |
void |
setTimestamp(long timestamp) |
public long getTimestamp()
public void setTimestamp(long timestamp)
public int getPacketIndex()
public void setPacketIndex(int packetIndex)
public short[] getAccel()
public void setAccel(short[] accel)
public short[] getGyro()
public void setGyro(short[] gyro)
public double[] convertAccToG(ESenseConfig config)
config
- device configurationpublic double[] convertGyroToDegPerSecond(ESenseConfig config)
config
- device configuration