예제 #1
0
  /** This is called constantly called by the task manager. */
  @Override
  public void execute() {
    drive.setPower(power);
    drive.execute();

    if (timer.get() > endTime) {
      isFinished = true;
    }
  }
예제 #2
0
 /** Called when the task has completed. */
 @Override
 public void end() {
   drive.setPower(0);
   drive.execute();
 }