View Single Post
  #3   Spotlight this post!  
Unread 05-02-2005, 18:08
kjohnson's Avatar
kjohnson kjohnson is offline
Insert Clever Title Here
AKA: Kyle J.
FRC #1610 (BOT)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Virginia
Posts: 575
kjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond repute
Lightbulb Re: Camera not working when connected to robot

Quote:
Originally Posted by MarkVH
I am using the user default code ver2.4. How do program it to track a color?
First you need to calibrate to get the correct exposure settings. Put these into user_routines.c where indicated. Then, connect your left motors to pwm12 and the right motors to pwm11. The default 2.4 code uses a one joystick drive (port 1 - use the calibration wheels on the joystick to get the motors to neutral) but you still need two joysticks connected to the OI. Once you load the code, press the trigger on the joystick you have connected to port two. This will cycle through the five colors and light up the red LEDs on the OI. They go in order from top to bottom :Yellow, Green, White, Red, Blue. If you calibrated correctly and have the servos mounted, each time you select a new color the camera should recenter itself and then begin tracking the color.

Edit: Also make sure your converter card, power wire, and backup battery are connected correctly.

Last edited by kjohnson : 05-02-2005 at 18:14.