|
Problems with one of my victors...
I am having problems with one of my victors...
I calibrated it to the X axis of my port 3 joystick and in my code, if the Joystick is pushed to the left ( p3_x < 20) then I set the PWM03 to 115 and if the joystick is pushed to the right (p3_x > 240) then I set the PWM03 to 140. Then I set the PWM11 to = the joystick value (PWM11 = P3_x) so that I could watch this in the dashboard viewer...
The joystick value ( as seen on PWM11 in the dashboard viewer) when pushed all the way left reads 0 and all the way to the right reads 255 as it should.
The problem is that the motor only rotates when the joystick is pushed to the right (when p3_x = 255)
I removed the M+ & M- from the victor and used the battery to verify that the motor will spin both directions so I know the wiring is correct. Also I double checked to make sure that the control lines were set correctly (black wire to black wire)
Is there something wrong with my victor? I calibrated it and it appears that the values are correct for the joystick and that my code is working.... Why won't it move in the reverse direction when the PWN is set to zero????
What else can I check or how can I verify if it is a victor problem?
Thaks in advance
|