public class RawMagData extends SensorData
DATA_FIELDS_USED, sensorInfo, time
Constructor and Description |
---|
RawMagData(long time,
float[] values)
Constructor.
|
RawMagData(long time,
float x,
float y,
float z,
float bx,
float by,
float bz)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
float |
getBX()
X-axis magnetic field bias getter.
|
float |
getBY()
Y-axis magnetic bias getter.
|
float |
getBZ()
Z-axis magnetic field bias getter.
|
float |
getX()
X-magnetic field getter.
|
float |
getY()
Y-magnetic field getter.
|
float |
getZ()
Z-axis magnetic field getter.
|
deserialize, getTime, getValues, serialize
public RawMagData(long time, float[] values)
time
- Timestamp [ms].values
- Measured magnetic field in x-, y-, and z-direction.public RawMagData(long time, float x, float y, float z, float bx, float by, float bz)
time
- Timestamp [ms].x
- Measured magnetic field in x-direction.y
- Measured magnetic field in y-direction.z
- Measured magnetic field in z-direction.bx
- Magnetic field bias in x-direction.by
- Magnetic field bias in y-direction.bz
- Magnetic field bias in z-direction.public float getX()
public float getY()
public float getZ()
public float getBX()
public float getBY()
public float getBZ()