Package frc.robot.systems
Class AutoHandlerSystem
- java.lang.Object
-
- frc.robot.systems.AutoHandlerSystem
-
public class AutoHandlerSystem extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAutoHandlerSystem.AutoFSMStatestatic classAutoHandlerSystem.AutoPath
-
Constructor Summary
Constructors Constructor Description AutoHandlerSystem(KitBotShooterFSM fsm1)Create FSMSystem and initialize to starting state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AutoHandlerSystem.AutoFSMStategetCurrentState()Return current FSM state.voidreset(AutoHandlerSystem.AutoPath path)Reset this system to its start state.voidupdate()This function runs the auto's current state.
-
-
-
Constructor Detail
-
AutoHandlerSystem
public AutoHandlerSystem(KitBotShooterFSM fsm1)
Create FSMSystem and initialize to starting state. Initializes any subsystems such as driveFSM, armFSM, ect.- Parameters:
fsm1- the first subsystem that the auto handler will call functions on
-
-
Method Detail
-
getCurrentState
public AutoHandlerSystem.AutoFSMState getCurrentState()
Return current FSM state.- Returns:
- Current FSM state
-
reset
public void reset(AutoHandlerSystem.AutoPath path)
Reset this system to its start state. This may be called from mode init when the robot is enabled. Note this is distinct from the one-time initialization in the constructor as it may be called multiple times in a boot cycle, Ex. if the robot is enabled, disabled, then reenabled.- Parameters:
path- the auto path to be executed
-
update
public void update()
This function runs the auto's current state.
-
-