Ejemplo n.º 1
0
 public void teleopInit() {
   watchdog = Watchdog.getInstance();
   if (auto) {
     autonomousCommand.cancel();
   }
   Catapult.getInstance().initialize();
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 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();
 }
 // Called when another command which requires one or more of the same
 // subsystems is scheduled to run
 protected void interrupted() {
   command.cancel();
 }
 public void run() {
   command.cancel();
 }
Ejemplo n.º 6
0
 public void testInit() {
   if (autonomousCommand != null) {
     autonomousCommand.cancel();
   }
 }
Ejemplo n.º 7
0
 /** Cancel the currently-running autonomous command, if applicable. */
 private void cancelAutonomous() {
   if (autonomousCommand != null) {
     autonomousCommand.cancel();
     autonomousCommand = null;
   }
 }