View Single Post
  #8   Spotlight this post!  
Unread 19-01-2003, 15:12
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
Re: Work-around

Quote:
Originally posted by Neal Turett
Only thing to note is that if you use dead-reackoning, you need to tie the beginning of your autonomous code to another button, lest it run while the robot is disabled while the RC is not plugged in and your timer-count increase.
The only problem with that is that button presses don't get sent to the RC, so it would never know about it. You are definately correct that you need a way to "start" your autonomous code, but this is best done by looking at the comp_mode bit, as its state will tell you whether you are disabled or active.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php