View Single Post
  #1   Spotlight this post!  
Unread 08-03-2003, 18:23
Morgoth Morgoth is offline
Registered User
#0471 (Cybertigers)
 
Join Date: Oct 2002
Location: Michigan
Posts: 35
Morgoth is an unknown quantity at this point
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.