Quote:
Originally Posted by Horohoroboarder
Also, I did add in one line of code to power the camera. I'm pretty sure that this should be no problem. It's in the User_Initialization() under User_Routines.c, right after all of the pwm's and digital i/o's are set:
digital_io_17 = 1;
The camera is getting the green light and receiving data, but the servo's are not. Is it ok to set this variable to power the camera?
|
I don't understand what you are trying to do here. The camera is supposed to get its power from the backup battery through a pwm connection. Digital I/O pin 1 is already set to be an input by the initialization code, so setting its direction control to 1 a second time will have no effect. Even if it did have an effect, it wouldn't change anything having to do with powering the camera.
If your servos and motor speed controllers are not responding, that sounds like the pwm outputs are disabled. What are the lights on the Victors doing? A steady yellow means the code is setting the outputs to neutral. A blinking yellow means the robot has been disabled and there is no pwm signal at all.