View Single Post
  #1   Spotlight this post!  
Unread 05-02-2003, 22:17
David Bing David Bing is offline
Registered User
no team
 
Join Date: Jan 2003
Location: None
Posts: 8
David Bing is an unknown quantity at this point
Backwards auton_mode

After finally deciding what to do for our line-tracking code, I figured that it was about time to learn how to use autonomous mode. I seem to understand it and all, so to make sure that I could get it to work, I put the following lines of code in (using the default program):

if auton_mode = 1 then next15:
pause 500
next15:

All that was currently connected was the rotating light spike. When I ran the program, even though it wasn't in autonomous mode, the light flickered (pausing for 1/2 second at a time, of course)! When I switched the RC's team number to 0 (put it into autonomous mode), the light was constant, as if it should've been in normal mode! I switched it to "auton_mode = 0," and it worked as it should have, but why? Everywhere I've read has said that auton_mode is 1 when it is ON, and 0 when it's off! What's going on?