Thread: Autonomous Code
View Single Post
  #2   Spotlight this post!  
Unread 18-11-2002, 22:34
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Somewhat yes, somewhat no.

Basically, it runs the program loop exactly as if it was in non-autonomous mode. The only difference is that all the variables from the OI (p1_x, p1_y, p1_sw_trig, etc) are set to 127 or 0, depending on whether it is an analog or digital input, respectively. The inputs on the RC (rc_sw1, sensor1, etc) still contain the correct values.

One of the bits of the competition mode byte is also set but I can't remember which. It's documented in the default code if you need to know.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php