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