View Single Post
  #14   Spotlight this post!  
Unread 26-02-2006, 22:20
Keith Watson Keith Watson is offline
Registered User
FRC #0957 (WATSON)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Wilsonville, OR
Posts: 112
Keith Watson is just really niceKeith Watson is just really niceKeith Watson is just really niceKeith Watson is just really nice
Re: Finding servo location?

Quote:
Originally Posted by rodgadashruba
well i tried that in user routines, in the default code funtion. the code compiles just fine but when i add int he comman

int testTest = PAN_SERVO ;
or
static int testTest = PAN_SERVO;

i get syntax errors
is there a way to access these varible outside of tracking.c?
Yes. Since PAN_SERVO is in a #define statement in tracking.h you just need to make sure you include that .h file. Or just directly use pwm01 if that is what your #define is set to.
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.