Go to Post Please don't confuse energetic enthusaism with acting obnoxious. - Alan Anderson [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Actual execution time measurement Dan Technical Discussion 5 24-03-2003 11:36
auton mode running motors incorrectly BK36 Programming 2 12-03-2003 02:43
Solution to Timing Loops Steven Carmain Programming 39 10-02-2003 13:33
Tranny help Thunder360 Motors 4 04-02-2003 15:12
How long should production time be??? archiver 1999 4 23-06-2002 23:16


All times are GMT -5. The time now is 05:23.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi