public class SKLinearAccelerationData extends SKAbstractData
Modifier and Type | Field and Description |
---|---|
protected float |
x |
protected float |
y |
protected float |
z |
sensorType, timestamp
Constructor and Description |
---|
SKLinearAccelerationData(long timestamp,
float x,
float y,
float z)
Initialize the instance
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDataInCSV()
Get Linear Acceleration sensor data in CSV format
|
float |
getX()
Get Linear Acceleration force in X direction
|
float |
getY()
Get Linear Acceleration force in Y direction
|
float |
getZ()
Get Linear Acceleration force in Z direction
|
getSensorType, getTimestamp, toString
public SKLinearAccelerationData(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
- Force in X directiony
- Force in Y directionz
- Force in Z directionpublic java.lang.String getDataInCSV()
public float getX()
public float getY()
public float getZ()