Class RawMagData

java.lang.Object
se.hendeby.sensordata.SensorData
se.hendeby.sensordata.RawMagData

public class RawMagData extends SensorData
Uncalibrated magnetometer data class.
  • Constructor Details

    • RawMagData

      public RawMagData(long time, float[] values)
      Constructor.
      Parameters:
      time - Timestamp [ms].
      values - Measured magnetic field in x-, y-, and z-direction.
    • RawMagData

      public RawMagData(long time, float x, float y, float z, float bx, float by, float bz)
      Constructor.
      Parameters:
      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.
  • Method Details

    • getX

      public float getX()
      X-magnetic field getter.
      Returns:
      X-axis magnetic field.
    • getY

      public float getY()
      Y-magnetic field getter.
      Returns:
      Y-axis magnetic field.
    • getZ

      public float getZ()
      Z-axis magnetic field getter.
      Returns:
      Z-axis magnetic field.
    • getBX

      public float getBX()
      X-axis magnetic field bias getter.
      Returns:
      X-axis magnetic bias.
    • getBY

      public float getBY()
      Y-axis magnetic bias getter.
      Returns:
      Y-axis magnetic bias.
    • getBZ

      public float getBZ()
      Z-axis magnetic field bias getter.
      Returns:
      Z-axis magnetic bias field.