/** This is called constantly called by the task manager. */ @Override public void execute() { drive.setPower(power); drive.execute(); if (timer.get() > endTime) { isFinished = true; } }
/** Called when the task has completed. */ @Override public void end() { drive.setPower(0); drive.execute(); }