public class MagData extends SensorData
DATA_FIELDS_USED, sensorInfo, time
Constructor and Description |
---|
MagData(long time,
float[] values)
Constructor.
|
MagData(long time,
float x,
float y,
float z)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
float |
getX()
X-magnetic field getter.
|
float |
getY()
X-magnetic field getter.
|
float |
getZ()
X-magnetic field getter.
|
deserialize, getTime, getValues, serialize
public MagData(long time, float[] values)
time
- Timestamp [ms].values
- Measured magnetic field in x-, y-, and z-direction.public MagData(long time, float x, float y, float z)
time
- Timestamp [ms].x
- Measured magnetic field in x-direction.y
- Measured magnetic field in y-direction.z
- Measured magnetic field in z-direction.