Package IMU

Class IMUDataBlock


public class IMUDataBlock extends PamDataBlock<AngleDataUnit>
  • Constructor Details

  • Method Details

    • shouldNotify

      public boolean shouldNotify()
      Overrides:
      shouldNotify in class PamDataBlock<AngleDataUnit>
    • getShouldLog

      public boolean getShouldLog(PamDataUnit pamDataUnit)
      Description copied from class: PamDataBlock
      Should log the data unit to the database ?
      Overrides:
      getShouldLog in class PamDataBlock<AngleDataUnit>
      Parameters:
      pamDataUnit - dataunit to consider
      Returns:
      true if data should be logged.
    • addPamData

      public void addPamData(AngleDataUnit pamDataUnit)
      Description copied from class: PamDataBlock
      Adds a new PamDataUnit to the PamDataBlock. When the data unit is added, PamObservers that have subscribed to the block will be notified.
      If the data unit already has a UID, it will be left as is.
      Overrides:
      addPamData in class PamDataBlock<AngleDataUnit>
      Parameters:
      pamDataUnit - Reference to a PamDataUnit
    • getCalibrationVals

      public double[] getCalibrationVals()
      Returns the values to add onto the imu data units
      Returns:
      double fo calibration values (heading, pitch, tilt) in RADIANS. Note these are offset values were true value= measured value + offset.