I have just tested the code you provided in ROBOTC 2.61 and only came across one error; the #include "JoystickDriver.c" line was incorrectly typed as #include ("JoystickDriver.c");
If you cannot move the servo with a basic segment of code:
then there may be a problem with the wiring. Double check the wires for the battery, make sure the servo controller is plugged in and turned on (and has the red light), the servo is plugged in the correct way an in the correct port, that the servo controller is plugged fully into the motor controller and the motor controller is fully plugged into the NXT's S1 port, that the motor controller is getting battery power, and finally that the servo isn't physically binding on the robot somehow.
As always, double check to make sure the battery is fully charged, too. Keep us posted on this and we'll help as much as we can.
_________________Check out our
Blog! And our
Facebook page!
Need help? Take a look at our
Wiki and our
Forums.I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe? ~ Carly Rae Jepsen parody