View Single Post
  #2   Spotlight this post!  
Unread 12-02-2007, 20:30
half geek's Avatar
half geek half geek is offline
For an extremely large value of 1/2
AKA: Greg R
None #0294 (Beach Cities Robotics)
Team Role: Student
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Manhattan Beach, CA
Posts: 49
half geek will become famous soon enough
Send a message via AIM to half geek
Re: Disable After Autonomous

The short answer is I do not believe it will ever be disabled for a period after the autonomous period.
Edit: unless specifically disabled by the field operators.

In the default code, the robot is either in autonomous mode or not. Separately, the robot is either enabled or not.
In the following code segment from main(), the RC executes User_Autonomous_Code() if it is in autonomous_mode. User_Autonomous_Code() is a while loop, meaning the autonomous code and only the autonomous code will execute while (autonomous_mode). Immediately after leaving the autonomous while loop, main() calls Process_Data_From_Local_IO().
Code:
if (autonomous_mode)
      {
        User_Autonomous_Code();
      }
    }
    Process_Data_From_Local_IO();
__________________
73 de W6DXN k

Parse this:
g r e g a ``n o s p a m" r o b i ``a t" d e v ``d o t" j a v a ``d o t" n e t

Last edited by half geek : 13-02-2007 at 00:36.