Package frc.robot.subsystems.swerve
Class SwerveSim
java.lang.Object
frc.robot.subsystems.swerve.SwerveSim
- All Implemented Interfaces:
SwerveIO
Simulation implementation for swerve
-
Nested Class Summary
Nested classes/interfaces inherited from interface frc.robot.subsystems.swerve.SwerveIO
SwerveIO.SwerveInputs -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.ironmaple.simulation.drivesims.SwerveDriveSimulation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongyroProvider(PhoenixOdometryThread odometryThread) Supplier passed into Swerve constructormoduleProvider(int index, PhoenixOdometryThread odometryThread) Supplier passed into Swerve constructorvoidSet the ground truth pose.simProvider(PhoenixOdometryThread odometryThread) Supplier passed into Swerve constructorvoidupdateInputs(SwerveIO.SwerveInputs inputs) Update inputs
-
Field Details
-
mapleSim
public final org.ironmaple.simulation.drivesims.SwerveDriveSimulation mapleSim
-
-
Constructor Details
-
SwerveSim
Simulation implementation for swerve
-
-
Method Details
-
simProvider
Supplier passed into Swerve constructor -
gyroProvider
Supplier passed into Swerve constructor -
moduleProvider
Supplier passed into Swerve constructor -
updateInputs
Description copied from interface:SwerveIOUpdate inputs- Specified by:
updateInputsin interfaceSwerveIO
-
resetPose
Description copied from interface:SwerveIOSet the ground truth pose. Only useful in sim.
-