|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
|||
|
|||
|
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);
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; |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Are Servos Motors? | John Gutmann | Motors | 1 | 30-01-2006 18:41 |
| CMUCam Servos not Responding on Robot | krigby | Programming | 7 | 20-01-2006 23:19 |
| Servos not getting right voltage | sheyna | Programming | 2 | 17-01-2006 21:57 |
| Standard Servos? | Matt Krass | FIRST Tech Challenge | 4 | 22-11-2005 08:09 |
| Hooking up 2 Servos | kutty18 | Programming | 7 | 04-02-2005 09:26 |