public class SKAccelerometerData extends SKAbstractData
Modifier and Type | Field and Description |
---|---|
protected float |
x |
protected float |
y |
protected float |
z |
sensorType, timestamp
Constructor and Description |
---|
SKAccelerometerData(long timestamp,
float x,
float y,
float z)
Initialize the instance
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDataInCSV()
Get the accelerator measurements in csv format
|
float |
getX()
Get the X-axis acceleromator measurement
|
float |
getY()
Get the Y-axis accelerator measurement
|
float |
getZ()
Get the Z-axis accelerator measurement
|
getSensorType, getTimestamp, toString
public SKAccelerometerData(long timestamp, float x, float y, float z)
timestamp
- Time in milliseconds (the difference between the current time and midnight, January 1, 1970 UTC)x
- X-axis value of the Accelerometer sensory
- Y-axis value of the Accelerometer sensorz
- Z-axis value of the Accelerometer sensorpublic java.lang.String getDataInCSV()
public float getX()
public float getY()
public float getZ()