|
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.
|