Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   FIRST Tech Challenge (http://www.chiefdelphi.com/forums/forumdisplay.php?f=146)
-   -   Attaching the CMUcam to the Vex controller (http://www.chiefdelphi.com/forums/showthread.php?t=47797)

billbo911 13-03-2007 19:02

Re: Attaching the CMUcam to the Vex controller
 
Quote:

Originally Posted by Culvan Van Li (Post 596810)
I made a custom cable to connect the TTL serial to the VEX ports that are next to the digital16 port....and I've got a second laptop connected to the RS232 serial port on the camera monitoring it with Procom plus.

The servos start panning all over the place and I get "searching..." messages. The camera never seems to lock onto anything (incluging my green target).


Andy

To quote one of the "Myth Busters" "There's your problem right there"

The CMU Cam can not drive both the TTL and RS232 connections at the same time. So, when the controller never receives tracking data from the camera, it just keeps searching. Try disconnecting the RS232 to the second laptop. You should start seeing better performance.

yara92 15-10-2007 16:02

Re: Attaching the CMUcam to the Vex controller
 
Hi Andy!
I tried this long way I Confused with the friends helping me how to connect and different codes but I did not succeed the camera dos not Tracking.
So may be you did not given up and you succeed to work it out.
Please try to send me any information met help. I'm struggling to get it working with the vex kit.
Mohamed team 1946

Culvan Van Li 23-10-2007 17:10

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


All times are GMT -5. The time now is 09:52.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi