Class ModuleIOTalonFXSim
java.lang.Object
frc.alotobots.library.subsystems.swervedrive.io.ModuleIOTalonFX
frc.alotobots.library.subsystems.swervedrive.io.ModuleIOTalonFXSim
- All Implemented Interfaces:
ModuleIO
Physics sim implementation of module IO. The sim models are configured using a set of module
constants from Phoenix. Simulation is always based on voltage control.
-
Nested Class Summary
Nested classes/interfaces inherited from interface frc.alotobots.library.subsystems.swervedrive.io.ModuleIO
ModuleIO.ModuleIOInputs
-
Field Summary
Fields inherited from class frc.alotobots.library.subsystems.swervedrive.io.ModuleIOTalonFX
cancoder, constants, driveAppliedVolts, driveCurrent, drivePosition, driveTalon, driveVelocity, positionTorqueCurrentRequest, positionVoltageRequest, torqueCurrentRequest, turnAbsolutePosition, turnAppliedVolts, turnCurrent, turnTalon, turnVelocity, velocityTorqueCurrentRequest, velocityVoltageRequest, voltageRequest
-
Constructor Summary
ConstructorsConstructorDescriptionModuleIOTalonFXSim
(int moduleIndex, org.ironmaple.simulation.drivesims.SwerveModuleSimulation simulation) -
Method Summary
Modifier and TypeMethodDescriptionvoid
updateInputs
(ModuleIO.ModuleIOInputs inputs) Updates the set of loggable inputs.Methods inherited from class frc.alotobots.library.subsystems.swervedrive.io.ModuleIOTalonFX
setDriveOpenLoop, setDriveVelocity, setTurnOpenLoop, setTurnPosition
-
Constructor Details
-
ModuleIOTalonFXSim
public ModuleIOTalonFXSim(int moduleIndex, org.ironmaple.simulation.drivesims.SwerveModuleSimulation simulation)
-
-
Method Details
-
updateInputs
Description copied from interface:ModuleIO
Updates the set of loggable inputs.- Specified by:
updateInputs
in interfaceModuleIO
- Overrides:
updateInputs
in classModuleIOTalonFX
-