public class SKGravityData extends SKAbstractData
| Modifier and Type | Field and Description |
|---|---|
protected float |
x |
protected float |
y |
protected float |
z |
sensorType, timestamp| Constructor and Description |
|---|
SKGravityData(long timestamp,
float x,
float y,
float z)
Initialize the instance
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDataInCSV()
Get the Gravity sensor data in csv format
|
float |
getX()
Get the Gravity sensor X-axis value
|
float |
getY()
Get the Gravity sensor Y-axis value
|
float |
getZ()
Get the Gravity sensor Z-axis value
|
getSensorType, getTimestamp, toStringpublic SKGravityData(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 valuey - Y-axis valuez - Z-axis valuepublic java.lang.String getDataInCSV()
public float getX()
public float getY()
public float getZ()