コード例 #1
0
  /** 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();
  }
コード例 #2
0
  /** 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();
  }
コード例 #3
0
 /** This function is called at the beginning of test mode. */
 public void testInit() {
   Log.log("Test mode has begun!");
 }
コード例 #4
0
  /** 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();
  }