View Single Post
  #5   Spotlight this post!  
Unread 09-02-2007, 22:57
Tt321b Tt321b is offline
Registered User
AKA: Tony
FRC #1803
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Port Washington, NY
Posts: 28
Tt321b is a jewel in the roughTt321b is a jewel in the roughTt321b is a jewel in the rough
Send a message via AIM to Tt321b
Re: OI Input Autonomous

I like that code that you found and i tried using it in our code but I get a syntax error on the line that says:

void auton_selector(void)

I declared the global variable in user_routines.c and put the extern int in the user_routines_fast.c (both are in the correct places). I changed the AUTON_UP and AUTON_DN to buttons on the joystick. I changed the 94 to 99. I also checked the lines before it so see if I left out a ; or } but I did'nt.

I also got another syntax error when I try using auton_select in user_routines_fast.c to select the autonomous.


Thanks!