|
Running a motor for a set time in auton
Suppose that I need to run relay1 for 500 milliseconds. I have tried code like this in roboemu1.11.
if (auton_mode = 1) then
relay1_fwd = 1
pause 500
relay1_fwd = 0
endif
Shouldn't that turn on relay 1, wait 500 milliseconds, then turn it off?
Since this doesn't work how would you do it?
Thanks
__________________
"Lock the Doors"
NASA chief flight director Leroy Cain on the loss of Columbia's signal.
|