Class ModuleIOTalonFXReal
java.lang.Object
frc.alotobots.library.subsystems.swervedrive.io.ModuleIOTalonFX
frc.alotobots.library.subsystems.swervedrive.io.ModuleIOTalonFXReal
- All Implemented Interfaces:
ModuleIO
Module IO implementation for Talon FX drive motor controller, Talon FX turn motor controller, and
CANcoder. Configured using a set of module constants from Phoenix.
Device configuration and other behaviors not exposed by TunerConstants can be customized here.
-
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
Constructors -
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
-
ModuleIOTalonFXReal
public ModuleIOTalonFXReal(int moduleIndex)
-
-
Method Details
-
updateInputs
Description copied from interface:ModuleIO
Updates the set of loggable inputs.- Specified by:
updateInputs
in interfaceModuleIO
- Overrides:
updateInputs
in classModuleIOTalonFX
-