Class GyroIOSim

java.lang.Object
com.marslib.swerve.GyroIOSim
All Implemented Interfaces:
GyroIO

public class GyroIOSim extends Object implements GyroIO
Simulated gyro IO layer that derives yaw from the maple-sim physics engine.
  • Field Details

    • enableCanStarvation

      public boolean enableCanStarvation
    • canStarvationProbability

      public double canStarvationProbability
  • Constructor Details

    • GyroIOSim

      public GyroIOSim()
  • Method Details

    • setGyroSimulation

      public void setGyroSimulation(org.ironmaple.simulation.drivesims.GyroSimulation gyroSim)
    • setSwerveDriveSimulation

      public void setSwerveDriveSimulation(org.ironmaple.simulation.drivesims.SwerveDriveSimulation simDrive)
    • updateInputs

      public void updateInputs(GyroIO.GyroIOInputs inputs)
      Description copied from interface: GyroIO
      Updates the set of loggable inputs.
      Specified by:
      updateInputs in interface GyroIO