ROBOTC for MINDSTORMS - Wait Functions  

ROBOTC Natural Language - NXT: (PDF) 

Wait Functions:
Title Picture Description Default Usage and Sample Usage and Sample with Parameters

Wait Wait (in seconds) Wait an amount of time measured in seconds.

wait(time)
default time: 1.0 seconds

forward();
wait();
stop();


wait(time)
To go forward for 2.7 seconds:

forward(50);
wait(2.7);
stop();



Wait in Milliseconds Wait in Milliseconds Wait an amount of time measured in milliseconds.

waitInMilliseconds(time)
default time: 1000 milliseconds

forward();
waitInMilliseconds();
stop();


waitInMilliseconds(time)
To go forward for 2700 milliseconds:

forward(6350/span>);
waitInMilliseconds(2700);
stop();



(print me in landscape mode)

 

 


Copyright © 2012 Robotics Academy/Robomatter - http://robotc.net/