コード例 #1
0
 public void teleopInit() {
   watchdog = Watchdog.getInstance();
   if (auto) {
     autonomousCommand.cancel();
   }
   Catapult.getInstance().initialize();
 }
コード例 #2
0
ファイル: Robot.java プロジェクト: WindFreaker/Robot2016
 public void teleopInit() {
   // This makes sure that the autonomous stops running when
   // teleop starts running. If you want the autonomous to
   // continue until interrupted by another command, remove
   // this line or comment it out.
   if (autonomousCommand != null) autonomousCommand.cancel();
 }
コード例 #3
0
 public void teleopInit() {
   START_TIME = System.currentTimeMillis();
   if (autonomousCommand != null && autonomousCommand.isRunning()) {
     autonomousCommand.cancel();
   }
   if (driveChooser.getSelected() != null) {
     ((Command) driveChooser.getSelected()).start();
   }
   intakeArm.initDefaultCommand();
   intakeWheel.initDefaultCommand();
   liftClimb.initDefaultCommand();
   climbPiston.initDefaultCommand();
 }
コード例 #4
0
 // Called when another command which requires one or more of the same
 // subsystems is scheduled to run
 protected void interrupted() {
   command.cancel();
 }
コード例 #5
0
 public void run() {
   command.cancel();
 }
コード例 #6
0
ファイル: Robot.java プロジェクト: Alexander-Brown/frc2876
 public void testInit() {
   if (autonomousCommand != null) {
     autonomousCommand.cancel();
   }
 }
コード例 #7
0
 /** Cancel the currently-running autonomous command, if applicable. */
 private void cancelAutonomous() {
   if (autonomousCommand != null) {
     autonomousCommand.cancel();
     autonomousCommand = null;
   }
 }