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