View Single Post
  #1   Spotlight this post!  
Unread 09-02-2007, 20:34
DotCom's Avatar
DotCom DotCom is offline
Productive Procrastinator
AKA: Christine
FRC #0692 (The Fembots)
Team Role: Alumni
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Sacramento
Posts: 47
DotCom is on a distinguished road
Help! Autonomous isn't working...

Hey! We're having a bit of trouble getting the autonomous to work. We changed a part of the code in the main.c file in order to get the autonomous mode to turn on when we press the p1_sw_trig (for testing purposes), but it's not working. Here's what we changed:

Code:
      if (autonomous_mode||p1_sw_trig)          /* DO NOT CHANGE! */
      {
        User_Autonomous_Code();        /* You edit this in user_routines_fast.c */
      }
We also changed the while loop in the user_routines_fast.c file to work with the trigger:

Code:
while (autonomous_mode||p1_sw_trig)
  { 
execute autonomous code...
  }
We got it to work last year, but apparently it's not working in this code. I get the feeling we're missing something fundamental...

Any ideas? =]
__________________

Team 692's Website