Class AutoHandlerSystem


  • public class AutoHandlerSystem
    extends java.lang.Object
    • 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

      • 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.