Package frc.robot.systems
Class ExampleFSMSystem
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class frc.robot.systems.FSMSystem
getCurrentState, setCurrentState, watchForStatesCommand
-
Constructor Details
-
ExampleFSMSystem
public ExampleFSMSystem()Create FSMSystem and initialize to starting state. Also perform any one-time initialization or configuration of hardware required. Note the constructor is called only once when the robot boots.
-
-
Method Details
-
reset
public void reset()Description copied from class:FSMSystemReset the current FSM state.- Specified by:
resetin classFSMSystem<ExampleFSMSystem.FSMState>
-
update
Description copied from class:FSMSystemUpdate the FSM state periodically based on inputs.- Specified by:
updatein classFSMSystem<ExampleFSMSystem.FSMState>- Parameters:
input- the input object
-
nextState
Description copied from class:FSMSystemGet the next state for the FSM based on inputs.- Specified by:
nextStatein classFSMSystem<ExampleFSMSystem.FSMState>- Parameters:
input- the input object- Returns:
- the next state
-