jrt92 created page: home authored by Daniel Vestergaard's avatar Daniel Vestergaard
...@@ -163,7 +163,8 @@ public void action() { ...@@ -163,7 +163,8 @@ public void action() {
BumperCar.rightMotor.backward(); BumperCar.rightMotor.backward();
long start = System.currentTimeMillis(); long start = System.currentTimeMillis();
while(!(_suppressed || takeControl()) && System.currentTimeMillis() - start < 1000) { while(!(_suppressed || takeControl()) &&
System.currentTimeMillis() - start < 1000) {
Thread.yield(); Thread.yield();
} }
if(System.currentTimeMillis() - start >= 1000) { if(System.currentTimeMillis() - start >= 1000) {
... ...
......