Log in

View Full Version : Question regarding commands of CMU Cam - Not listed in the guide


Phreakuency
12-01-2006, 19:18
A few things that are in the java GUI version but I can't find the commands for are the auto servo, which I don't know if that is a sub program in itself or not, because it seems to long to be a function, and what the command for white balance is. Any help on these would be greatly appreciated.
Also, when my tracking is %100 always dead on (it is at probably %82 right, so most of the time) I will upload all my notes to help the other teams with the same problems.
Thanks in advance,
Phreakuency

BradAMiller
13-01-2006, 06:03
A few things that are in the java GUI version but I can't find the commands for are the auto servo, which I don't know if that is a sub program in itself or not, because it seems to long to be a function, and what the command for white balance is. Any help on these would be greatly appreciated.
Phreakuency

For auto servo functions look at the SM command. You give it a parameter where the low order 4 bits tell the camera whether to report and track with the pan and tilt servos. If you turn on Pan or Tilt Control Enable, then it will start moving the servos automatically in response to the results returned from the camera.

For white balance - there's a section on the manual that describes how the auto white balance works. It can be turned on and off by setting registers on the camera module with the CR (Camera Register) command. Register 12 (Common Control Register A) enables auto white balance. Be careful because the register numbers in the documenation are Hex and the values you send the camera (in ascii mode) are decimal.

Using the LabView camera GUI you can develop a set of values pretty quickly. Once you have it tracking your target it will show you all the register settings it is using. Alternatively you can use the EasyC values that have defaults built in to track the green target.

Brad

Phreakuency
13-01-2006, 08:00
We used labview last year and the only problem with it is the amount of time it can take to process. Truthfully, the best thing to do is to look at the labview code and put it into the RC yourself in C.
But those commands really helped, thanks, I owe you one.
As of right now, using the Java GUI, I can get the camera to track I would say a good 98% of the time, so if anybody needs any help, don't hesitate to ask.
Sincerely,
Phreakuency