|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Camera Problems
try using a red background as well then you will know if it goes towards it...just an idea
|
|
#2
|
|||
|
|||
|
Re: Camera Problems
Quote:
In camera.c the function: int camera_const_cmd(rom const char *cmd_str) terminates on \r or NULL and will send the \r or NULL out the serial port. I guess the camera won't choke on the NULL but the camera has to see the \r to process the command and sometimes this function is called using a constant that has the \r terminator like: rom const char *Str_cr = "CR 19 32\r"; // terminate string with \r and other times it calls it with: rom const char *raw_mode = "rm 1"; // no \r here I know the code works because we are running it fine. ?????? Another weird thing in camera.c is the call camera_const_cmd(manual_agc); which sets BIT 5 of the Common control B reg in the camera. This bit sets 8 bit format for the UV bus rather than 16 bit and has nothing to do with AGC. ALSO.... camera_auto_servo( ) sets the SP parameters but rom const SP parameters also exist in user_routines_DDT.c. Last edited by Phil Roth : 15-01-2005 at 18:58. |
|
#3
|
|||
|
|||
|
Re: Camera Problems
Quote:
|
|
#4
|
|||||
|
|||||
|
Re: Camera Problems
Quote:
-dave |
|
#5
|
|||||
|
|||||
|
Re: Camera Problems
This camera is making me pull my hair out. We still haven't been able to get it to calibrate to anything but red.
But my concern is that it gave me 29 as the value for red, and I'm a bit worried seeing your 90. Should I be worried? |
|
#6
|
|||
|
|||
|
Re: Camera Problems
I believe color numbers should be lighting dependent, which is different for everyone. I was working in a classroom for awhile that had white walls and bright, glossy floors lit by natural light mixed with fluorescent lighting, and successfully calibrated. We had trouble tracking color, however. I moved to a hall with less fluorescent light, added halogen lighting, and used a darker grey color for my backgrounds. Again, I successfully calibrated, and this time I could track all the colors. However, the numbers were all significantly different than before. Maybe this was just my setup being quirky, but as I understand it, lighting determines both the ability to calibrate, and the numbers that calibration gives you.
Last edited by JMac : 20-01-2005 at 20:47. Reason: Silly english errors.... |
|
#7
|
|||
|
|||
|
Re: Camera Problems
Quote:
I think FIRST chose a special green so make sure you are using it if you are trying to calibrate with the GUI and default RGB values in config.txt. The .txt file also specifies the size of the targets and the green is smaller so you may have better luck if you duplicate the exact size of the smaller green target. I found that you can send commands down "manually" with the GUI and can prove things out by doing the following: 1. Launch GUI. Enter Config menu. Set White balance ON, Auto gain ON, and then hit Update All down on the bottom. Then run the Calibration to make sure you get good numbers. Either adjust lighting and/or alter config.txt to match your colors. You can use white balance on Auto Gain ON for testing but not in competition because they are too slow. These settings let the camera automatically adjust exposure settings for light. 2. Go to the Color menu and hit Track Yellow with the yellow target which is the easiest. You should see it highlighted with a red pixel in the centroid. If so, then try this because it's a good demo: A. Press STOP and then wait 10 seconds because the GUI hangs. I think there is trouble with the GUIs serial driver if you send commands while the camera is still streaming data. Then go to the Console entry box of the GUI on the top of the screen and type SM 15 to set the servos to autotrack the target. Press SEND to send the command to the camera. My GUI's AutoTrack ain't working and only sends SM 1. B. Then type TC 100 255 75 255 0 20 <ret> in the console . The Camera should find the Yellow target and servos should track it as you move the target around. That's how I got it to work in my basement last night with a 3" Yellow triangle on a black sheet mounted about 6 feet away. Now it's off to the school to try things out for real. Keep plugging away at it, you'll get it. There is nothing else to do in autonomous mode. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Scripting Setup and the Camera + Serial Port Drivers | CJO | Programming | 22 | 11-01-2006 17:42 |
| Kevin Watson's Kick-off Demo Code! | Mr. Lim | Programming | 27 | 22-01-2005 03:38 |
| Only 1 camera allowed? | Joe Ross | Control System | 4 | 17-01-2005 23:29 |
| Live video with Kit Camera | BobcatProgramer | Electrical | 10 | 11-01-2005 10:43 |
| Joystick problems | archiver | 2001 | 3 | 24-06-2002 02:40 |