Package com.marslib.swerve
Class GyroIOSim
java.lang.Object
com.marslib.swerve.GyroIOSim
- All Implemented Interfaces:
GyroIO
Simulated gyro IO layer that derives yaw from the maple-sim physics engine.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.marslib.swerve.GyroIO
GyroIO.GyroIOInputs -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetGyroSimulation(org.ironmaple.simulation.drivesims.GyroSimulation gyroSim) voidsetSwerveDriveSimulation(org.ironmaple.simulation.drivesims.SwerveDriveSimulation simDrive) voidupdateInputs(GyroIO.GyroIOInputs inputs) Updates the set of loggable inputs.
-
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
Description copied from interface:GyroIOUpdates the set of loggable inputs.- Specified by:
updateInputsin interfaceGyroIO
-