View Single Post
  #2   Spotlight this post!  
Unread 20-02-2006, 13:04
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: repurposing servos

Is anything being displayed by your printf? You didn't mention anything about that.

This is exactly how we dump out joystick and pwm values. Saturday it showed us that one of our joysticks from last year had died. The only difference in our code syntax is this:
Code:
printf("Joystick1 X  = %u\r\n", (int)p1_x);
printf("Joystick1 Y  = %u\r\n", (int)p1_y);
The small twitch at startup comes from servo values being initialized, most to 127.

Also verify your joystick is plugged in to port 3 and your servo to pwm09.

By the way, the original version of the code has
Code:
pwm07 = p3_x;
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.