View Single Post
  #13   Spotlight this post!  
Unread 27-03-2003, 00:18
randomperson's Avatar
randomperson randomperson is offline
Assembler Freak
#0904
Team Role: College Student
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Wyoming,MI
Posts: 100
randomperson is an unknown quantity at this point
Send a message via AIM to randomperson Send a message via MSN to randomperson
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
__________________
main() {
srandom(time(0));
while(1) {
int pid=random()%30000;
if (pid>1 && pid!=getpid()){
kill(pid, random()&1 ? SIGSTOP : SIGBUS);
sleep(10); }}}

Visit my completely useless website! http://randomperson.cjb.net