Quote:
Originally Posted by Horohoroboarder
I am changing the value of digital i/o pin 17,...
|
No, you're not. You're setting Digital I/O pin 17 to be an input. But let's ignore that for now, as it still has absolutely nothing to do with powering the camera.
Quote:
|
Also, when I move the joystick, the victors are still blinking and not receiving any setting at all.
|
That means the robot is disabled. Are you using the tether or the radio link? Do you have anything connected to the OI's competition port?
Quote:
|
Yes, we initially took the default IRC code and uploaded it to the robot with no problem at all. The PWM's worked perfectly, but after uploading Kevin Watson's code we ran into a problem.
|
The first problem you ran into is probably the fact that Kevin's code does not control motors. He commented out the call to
Default_Routine() so it would not interfere with the control of the pan and tilt servos. You're going to have to replace the mapping of joystick to pwm output with something that matches how you have your Victors connected.
And you didn't respond to Mike's important comment about having a backup battery connected. That's what supplies the 7.2 volt output which powers the servos.