Class KitBotShooterFSM


  • public class KitBotShooterFSM
    extends java.lang.Object
    • Constructor Detail

      • KitBotShooterFSM

        public KitBotShooterFSM()
        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 Detail

      • reset

        public void reset()
        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.
      • update

        public void update​(TeleopInput input)
        Update FSM based on new inputs. This function only calls the FSM state specific handlers.
        Parameters:
        input - Global TeleopInput if robot in teleop mode or null if the robot is in autonomous mode.
      • updateAutonomous

        public boolean updateAutonomous​(AutoHandlerSystem.AutoFSMState autoState)
        Performs specific action based on the autoState passed in.
        Parameters:
        autoState - autoState that the subsystem executes.
        Returns:
        if the action carried out in this state has finished executing