/** This function is called at the beginning of autonomous. */ public void autonomousInit() { Log.log("Autonomous has begun!"); // Cancel the currently-running autonomous command cancelAutonomous(); // Run the current autonomous command autonomousCommand = new BasicAutonomous(); autonomousCommand.start(); }
/** This function is called at the beginning of disabled mode. */ public void disabledInit() { Log.log("The robot has been disabled."); // Cancel the currently-running autonomous command cancelAutonomous(); }
/** This function is called at the beginning of test mode. */ public void testInit() { Log.log("Test mode has begun!"); }
/** This function is called at the beginning of operator control. */ public void teleopInit() { Log.log("Teleop has begun!"); // Cancel the currently-running autonomous command cancelAutonomous(); }