Package frc.robot.subsystems.climb
Class ClimbIOSpark
java.lang.Object
frc.robot.subsystems.climb.ClimbIOSpark
- All Implemented Interfaces:
ClimbIO
Real IO implementation for the climb subsystem using a Spark Max motor controller.
-
Nested Class Summary
Nested classes/interfaces inherited from interface frc.robot.subsystems.climb.ClimbIO
ClimbIO.ClimbIOInputs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears all faults and warnings.voidsetLiftVoltage(Voltage voltage) Run the lift motors at the specified voltage.voidupdateInputs(ClimbIO.ClimbIOInputs inputs) Updates the set of loggable inputs.
-
Constructor Details
-
ClimbIOSpark
public ClimbIOSpark()Creates a new ClimbIOSpark and configures the Spark Max.
-
-
Method Details
-
updateInputs
Description copied from interface:ClimbIOUpdates the set of loggable inputs.- Specified by:
updateInputsin interfaceClimbIO- Parameters:
inputs- The inputs object to update.
-
setLiftVoltage
Description copied from interface:ClimbIORun the lift motors at the specified voltage.- Specified by:
setLiftVoltagein interfaceClimbIO- Parameters:
voltage- The voltage to apply to the motor controller.
-
clearFaults
public void clearFaults()Description copied from interface:ClimbIOClears all faults and warnings.- Specified by:
clearFaultsin interfaceClimbIO
-