View Single Post
  #18   Spotlight this post!  
Unread 23-10-2007, 17:10
Culvan Van Li's Avatar
Culvan Van Li Culvan Van Li is offline
Jack-Of-All-Trades
AKA: Andy
FRC #1939 (Kuh-Nig-Its)
Team Role: Engineer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Kansas City, MO
Posts: 36
Culvan Van Li is on a distinguished road
Re: Attaching the CMUcam to the Vex controller

I did make some more progress on this, but I haven't worked on it for months. I was able to get the camera to find objects. My previous setup worked (even the part about having two laptops connected at the same time.) I can't get the tracking code to properly control my servos, but that's a different problem.

My problem was that I was calibrating the search color in Labview and it was defaulting to RGB mode. The default camera code from Kevin Watson is in YCrCb mode. It will work with both set the same way, but YCrCb is closer to the way the camera sees the world. RGB is basically calculated from the YCrCb data. You will probably have better results using YCrCb.

The setting is controlled inside the COMA register on the camera. It's only one bit so you will change it by adding or subtracting that bit (the number 8, I believe). I found the following thread that clued me into my problem.

http://www.chiefdelphi.com/forums/sh...highlight=COMA

Hope this helps.

Andy
Reply With Quote