camera code and driving

i loaded the bells and whistles version on to our robot and the camera worked perfectly but we could not drive it.the motors just stood there the speed controllers are fine i checked and the pwm was preset on the code to 13-16, i tried it on those and tried changing it on the code to 1-2 and moved the camera pan and tilt to 7-8, this way the camera still worked and the driving didnt. the only thing i could think of is autonomous activating because we only have the camera code on there and nothing about driving. if this is the problem can some one tell me how to fix it. i am stumped on this one.

Your right, in the bells in whisles version, all the drive code is commented out. So make some:

pwm01 = p1_y;
pwm02 = p2_y;

If you need to change the servo pwm’s for the camera just change the varaible in tracking.h.

i uncommented that and the default routine() before. i have no idea whats happening.

Are you sure you’ve got the right pwms for the motors? Are the victor lights changing colors? Can you check the voltage of the victors with a meter?

yep im sure i did the all the electical too, on the team job in the profile they should have “everything person”.

Edit: i have school so i cant reply but if you guys have any ideas please post them and ill reply to them later.

Maybe try posting your code and we can take a look at it? You should be able to give a pwm0x a full value of 254 and have the victor turn green when its hooked to the corresponding pwm0x. Else your typing your code in the wrong place.

Does it drive using the IFI default code?

Are the Victor lights solid yellow, or are they blinking? Solid would mean they’re being commanded to stop, and you need to find out what’s wrong with the software.

Blinking means they are not receiving any command at all, either because the robot is disabled or the pwm cable is not connected properly. A disabled robot won’t move the camera servos. If the camera is seeking but the Victors are blinking, it’s a wiring issue. The pwm connectors are notoriously difficult to plug in properly, so try them first.

It could be that you are not exiting the autonomous program. I did not load that program, so I am not familiar with it, but you might want to put some “Print Screen” check blocks in the operator’s program just to see if you are getting there.

ill see if its blinking when i get to class. and it does drive with the default code. ill upload the code if i have time.