Quote:
Code:
#pragma config(Servo, servo1, blocker, tServoNormal)
#pragma config(Servo, servo2, ramp, tServoNormal)
#pragma config(Servo, servo3, leftarm, tServoNormal)
#pragma config(Servo, servo4, rightarm, tServoNormal)
-- Snip --
short blocker=0;
short ramp=0;
short leftarm=0;
short rightarm=0;
|
The obvious thing that I see is that you are creating shorts with the same name as the servos and you are setting them to zero. Since this is an index into an array, and it is an enum, you are, in essence, telling the controller that all the servos are at location 0... which unfortunately is attached to a Motor Controller...
Definitely use the setup tool (as Michale suggested) to rebuild the setup #PRAGMA information block. Then, since they're already set up, delete the code declaring the shorts later.
Hope that helps