Commit d696dd06 authored by lildholdt's avatar lildholdt
Browse files

Small change

parent 30599446
......@@ -41,34 +41,13 @@ public class PilotRoute
sendMove(pilot.getMovement());
}
private void rotate(double angle)
{
pilot.rotate(angle);
sendMove(pilot.getMovement());
}
public void go()
{
Sound.beep();
while ( ! Button.ENTER.isDown()) Thread.yield();
Sound.twoBeeps();
for(int i=0;i<15;i++)
{
travel(1);
sendLightValue(lightsensor.getLightValue());
}
for(int i=0;i<5;i++)
{
travel(1);
sendLightValue(lightsensor.getLightValue());
}
for(int i=0;i<5;i++)
{
travel(1);
sendLightValue(lightsensor.getLightValue());
}
for(int i=0;i<5;i++)
for(int i=0;i<30;i++)
{
travel(1);
sendLightValue(lightsensor.getLightValue());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment