Wie merken wir, dass wir
anstoßen?
u import
josx.platform.rcx.*;
public class MoveForward {
private static void
waitUntilWeHitSomething() {
Sensor.S1.activate();
while( !Sensor.S1.readBooleanValue() ) {
try {
Thread.sleep(100);
} catch (Exception
e) {}
}
}
u // ...
u }