Class InertialMeasurementUnitAdapter

java.lang.Object
xbot.common.controls.sensors.XGyro
xbot.common.controls.sensors.wpi_adapters.InertialMeasurementUnitAdapter
All Implemented Interfaces:
DataFrameRefreshable

public class InertialMeasurementUnitAdapter extends XGyro
  • Constructor Details

    • InertialMeasurementUnitAdapter

      @AssistedInject public InertialMeasurementUnitAdapter(DevicePolice police, @Assisted XGyro.InterfaceType interfaceType)
  • Method Details

    • isConnected

      public boolean isConnected()
      Overrides:
      isConnected in class XGyro
    • getDeviceYaw

      protected double getDeviceYaw()
    • getDeviceRoll

      public double getDeviceRoll()
    • getDevicePitch

      public double getDevicePitch()
    • updateInputs

      protected void updateInputs(XGyroIoInputs inputs)
      Specified by:
      updateInputs in class XGyro
    • isBroken

      public boolean isBroken()
      Specified by:
      isBroken in class XGyro
    • getDeviceYawAngularVelocity

      public double getDeviceYawAngularVelocity()
      Note: this is in degrees per second.
    • getDeviceVelocityX

      public double getDeviceVelocityX()
    • getDeviceVelocityY

      public double getDeviceVelocityY()
    • getDeviceVelocityZ

      public double getDeviceVelocityZ()
    • getDeviceRawAccelX

      public double getDeviceRawAccelX()
    • getDeviceRawAccelY

      public double getDeviceRawAccelY()
    • getDeviceRawAccelZ

      public double getDeviceRawAccelZ()