Package frc.spectrumLib
Interface SpectrumSubsystem
- All Superinterfaces:
edu.wpi.first.wpilibj2.command.Subsystem
- All Known Implementing Classes:
FuelIntake,Gamepad,IndexerBed,IndexerTower,IntakeExtension,Launcher,LedFull,LedLeft,LedRight,Mechanism,Operator,Pilot,RotationalPivot,SpectrumLEDs,Swerve
public interface SpectrumSubsystem
extends edu.wpi.first.wpilibj2.command.Subsystem
The base interface for all Spectrum subsystems. Extends WPILib's Subsystem and adds common setup
methods.
-
Method Summary
Modifier and TypeMethodDescriptionvoidSet up the default command for this subsystem.voidSet up the states and triggers for this subsystem.Methods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, getName, idle, periodic, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Method Details
-
setupStates
void setupStates()Set up the states and triggers for this subsystem. This is typically used to bind commands to SpectrumState triggers. -
setupDefaultCommand
void setupDefaultCommand()Set up the default command for this subsystem. This command will run when no other command is using this subsystem.
-