Quote:
Originally posted by JasonStern
... thats what we use comp mode for, to let us know auto mode hasnt started yet, so we dont start the counter for auto mode, and to read in what auton slot should be run. it would be harder without the bit!
|
Yes.. it would be harder without the
auton_mode bit.. but comp_mode is still useless especially if you have multiple slots because each slot *should* reinitialize its varibles and start all the counters and stuff.. cuz you can tell if auton_mode is on when the bit is switched.. right? So..
if auton_mode = 1 then
'do auto stuff
'reinitialize timers and other crap here as well
run 1
else
'do manual stuff
endif
That only activates autonomous programs when the bit is set, without worrying about comp_mode.. because what it is really doesn't matter to the program.
So, still don't really see
much usefulness for comp_mode yet.. but who cares anyways? If ya use it ya use it.. if you dont you dont. And I don't
