Go to Post Interestingly enough, I saw Shaun open his backpack for a moment during the Newton Alliance selection.... 4 Hours later Team 25 was on Einstein... - thefro526 [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 06-02-2003, 17:04
Morgoth Morgoth is offline
Registered User
#0471 (Cybertigers)
 
Join Date: Oct 2002
Location: Michigan
Posts: 35
Morgoth is an unknown quantity at this point
Auton Mode simple question

All right, from what I understand before the match the inputs will be this:

comp_mode = 1
auton_mode = 0

then when autonomous mode is engaged it will change to:

comp_mode = 0
auton_mode = 1

and after the match is over it will be:

comp_mode = 1
auton_mode = 0

So if I put code in my robot like this:

autonloop:
if (comp_mode = 0 AND auton_mode = 1) then
'whatever you want it to do during autonmode
goto autonloop:
endif


then you shouldn't have to worry about timing assuming that you can take your ques off of the comp and auton variable changes.

Would this work?
__________________
"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
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11
auton mode running motors incorrectly BK36 Programming 2 12-03-2003 02:43
Can't figure out auton mode TangoBravo1318 Programming 1 20-02-2003 10:06
Canvas in Delphi - Simple question archiver 2000 1 24-06-2002 00:30
simple engineering question Ben Mitchell Technical Discussion 2 07-11-2001 07:50


All times are GMT -5. The time now is 14:32.

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