Ejemplo n.º 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;
    }
  }
Ejemplo n.º 2
0
 /** Called when the task has completed. */
 @Override
 public void end() {
   drive.setPower(0);
   drive.execute();
 }