View Single Post
  #7   Spotlight this post!  
Unread 10-02-2003, 22:58
Skabana159's Avatar
Skabana159 Skabana159 is offline
Robotics and Field Hockey
AKA: Jesse C. Owens
#0159 (Alpine Robotics)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2000
Location: Ft. Collins, CO
Posts: 92
Skabana159 is on a distinguished road
Send a message via AIM to Skabana159
[Adam Collet says:]

One thing to think about is putting the autonomous code in a seperate program, which has its own 26 bytes. To do this, split your programs up, then add ",[second program]" (or something like that) to the stamp directive of the first (autonomous) program. If you need to transfer some of the variables over, keep in mind that when you switch program, the data is not acutally destroyed, only the names are. As an extreme example, if you declared everything in the second program (perhaps using different names) in the same order as the first, you would have all of the same data in all of the same places. The scratch pad also transfers perfectly across programs.
__________________
"What most people do not understand is that the Buddha, the Godhead, resides just as comfortably in gears and circuits as in hills and trees. To believe otherwise is to dilute the Godhead."
-Robert Pirsig, Zen and the Art of Motorcycle Maintenance