|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Hello, this is what i came up with for shifting with a servo... It doesnt seem to work and was wondering if anyone knew how to do it. If p1_sw_top button is hit, it shifts pwm15 and pwm16 into high gear (255) if the p1_sw_trig is hit, it needs to shift into low gear (0). How can i make this work? PLEASE HELP!!!
if ((p1_sw_top == 1)) // If Top Button on Joystick 1 is hit { // Make the two servos....... pwm15 = 255; pwm16 = 255; } else { pwm15 = 255; pwm16 = 255; } if ((p1_sw_trig == 1)) // If Trigger is pushed on Joystick 1 { // Make the two servos....... pwm15 = 0; pwm16 = 0; } else { pwm15 = 0; pwm16 = 0; } |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Servo Programming Again..... | programmr | Programming | 1 | 14-02-2008 09:31 |
| Help with programming | Armando | Programming | 1 | 25-01-2007 18:41 |
| Servo behavior question / advanced servo/PIC programming question | DanL | Electrical | 12 | 18-10-2005 18:33 |
| Help with Programming | double_check | Programming | 11 | 19-08-2005 00:15 |
| Help With Programming! | KWalsh | Programming | 5 | 24-02-2004 11:42 |