View Single Post
  #9   Spotlight this post!  
Unread 02-02-2007, 17:58
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Camera code completely turning off all PWM's

Quote:
Originally Posted by Horohoroboarder View Post
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.

Last edited by Alan Anderson : 02-02-2007 at 18:01.