Class XGyro

java.lang.Object
xbot.common.controls.sensors.XGyro
All Implemented Interfaces:
DataFrameRefreshable
Direct Known Subclasses:
InertialMeasurementUnitAdapter, MockGyro

public abstract class XGyro extends Object implements DataFrameRefreshable
  • Field Details

    • imuType

      protected XGyro.ImuType imuType
    • io

      protected xbot.common.controls.io_inputs.XGyroIoInputsAutoLogged io
  • Constructor Details

  • Method Details

    • isBroken

      public abstract boolean isBroken()
    • getImuType

      protected XGyro.ImuType getImuType()
    • getHeading

      public WrappedRotation2d getHeading()
      In degrees
    • getRoll

      public double getRoll()
    • getPitch

      public double getPitch()
    • getYawAngularVelocity

      public double getYawAngularVelocity()
    • isConnected

      public boolean isConnected()
    • updateInputs

      protected abstract void updateInputs(XGyroIoInputs inputs)
    • refreshDataFrame

      public void refreshDataFrame()
      Description copied from interface: DataFrameRefreshable
      Consumes and processes inputs from the device or subsystem.
      Specified by:
      refreshDataFrame in interface DataFrameRefreshable