University of Northampton: Junkbots

Instructions

 

Please note that time1 in these instruction is a whole number, so for

 example 300.5 is not allowed but 301 is.

 

halt()

Stops the robot until the view button is pressed

 

forward(time1);

           This moves the robot forward for time1 milliseconds (1/1000th of second)       

 

spinRight(time1);

           This moves the robot in a tight circle to the right using both

 motors time1 milliseconds (1/1000th of second)

  

spinLeft(time1);

           This moves the robot in a tight circle to the left using both motors for time1 milliseconds (1/1000th of second)

 

 backward(time1);

           This moves the robot backward time1 milliseconds (1/1000th of second)