java.lang.Object
xbot.common.controls.sensors.XGyro
xbot.common.controls.sensors.mock_adapters.MockGyro
All Implemented Interfaces:
DataFrameRefreshable, ISimulatableSensor

public class MockGyro extends XGyro implements ISimulatableSensor
  • Constructor Details

  • Method Details

    • isConnected

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

      public void setYaw(double yaw)
    • getDeviceYaw

      public double getDeviceYaw()
    • setIsBroken

      public void setIsBroken(boolean broken)
    • updateInputs

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

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

      public void setRoll(double roll)
    • getDeviceRoll

      public double getDeviceRoll()
    • setPitch

      public void setPitch(double pitch)
    • getDevicePitch

      public double getDevicePitch()
    • setYawAngularVelocity

      public void setYawAngularVelocity(double yawAngularVelocity)
    • getDeviceYawAngularVelocity

      public double getDeviceYawAngularVelocity()
    • getDeviceVelocityX

      public double getDeviceVelocityX()
    • setDeviceVelocityX

      public void setDeviceVelocityX(double velocity)
    • getDeviceVelocityY

      public double getDeviceVelocityY()
    • setDeviceVelocityY

      public void setDeviceVelocityY(double velocity)
    • getDeviceVelocityZ

      public double getDeviceVelocityZ()
    • setDeviceVelocityZ

      public void setDeviceVelocityZ(double velocity)
    • getDeviceRawAccelX

      public double getDeviceRawAccelX()
    • setDeviceRawAccelX

      public void setDeviceRawAccelX(double accel)
    • getDeviceRawAccelY

      public double getDeviceRawAccelY()
    • setDeviceRawAccelY

      public void setDeviceRawAccelY(double accel)
    • getDeviceRawAccelZ

      public double getDeviceRawAccelZ()
    • setDeviceRawAccelZ

      public void setDeviceRawAccelZ(double accel)
    • ingestSimulationData

      public void ingestSimulationData(org.json.JSONObject payload)
      Specified by:
      ingestSimulationData in interface ISimulatableSensor