Exemple #1
0
 @Override
 protected void interrupted() {
   drive.move(0);
   drive.resetPosition();
 }
Exemple #2
0
 @Override
 protected void execute() {
   drive.rotate(180, 1);
 }
Exemple #3
0
 @Override
 protected boolean isFinished() {
   return Math.abs(drive.getAngleRotated()) >= Math.abs(180);
 }
Exemple #4
0
 @Override
 protected void initialize() {
   drive.resetPosition();
 }