public class SKGyroscopeData extends SKAbstractData
Modifier and Type | Field and Description |
---|---|
protected float |
x |
protected float |
y |
protected float |
z |
sensorType, timestamp
Constructor and Description |
---|
SKGyroscopeData(long timestamp,
float x,
float y,
float z)
Initialize the instance
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDataInCSV()
Get the Gyroscope data in csv format
|
float |
getX()
Get the X-axis of the Gyroscope sensor data
|
float |
getY()
Get the Y-axis of the Gyroscope sensor data
|
float |
getZ()
Get the Z-axis of the Gyroscope sensor data
|
getSensorType, getTimestamp, toString
public SKGyroscopeData(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 of the Gyroscope datay
- Y-axis of the Gyroscope dataz
- Z-axis of the Gyroscope datapublic java.lang.String getDataInCSV()
public float getX()
public float getY()
public float getZ()