![]() |
Problem with easy C CameraTracking function
I calibrated the camera using Labview and then import the parameters into the easyC Camera Tracking Code supplied by First. However, the camera doesn't do anything once I build and upload the program. Using Print to Screen, I find out that CaptureTracking function returns all value as zero--including confidence, which explains why the servos don't move. The red light on the camera is also on, but everything was connected properly.
In short, I can't figure out why the CaptureTracking is returning everything as 0. |
Re: Problem with easy C CameraTracking function
Check to see if your TTL chip is connected properly AND plugged into the RC.
|
Re: Problem with easy C CameraTracking function
We ran the IFI Dynamic Debugging tool. The TTL chip passed that, and it is plugged into the RC correctly. Any other ideas?
|
Re: Problem with easy C CameraTracking function
How are you powering the camera? We've seen symptoms that sound like what you describe when the backup battery gets low.
|
Re: Problem with easy C CameraTracking function
Quote:
Code:
SetCameraDebugMode(1);What you should see in the terminal window is a bunch of somewhat cryptic lines where easyC tries to send commands to the camera. For each command it sends you'll see a "->" at the front of the line indicating that it's going to the camera. You should see responses from the camera (mostly ACKs - acknowledge) with a "<-" in the front of the line. If you don't see that sequence then it means that the camera never received the initialization commands correctly. I would also try to use the default camera parameters built into easyC just as a baseline. Those should work out of the box. After you see it working, then go back to LabView to tweak the setup. |
Re: Problem with easy C CameraTracking function
Yes, the camera is initilized (the terminal shows "->" and "<-"). We are still getting 0 for all values though. We're powering it off of the RC with a fully charged backup battery.
|
Re: Problem with easy C CameraTracking function
Quote:
If it is working it will finish the entire initialization sequence in less than a second. |
Re: Problem with easy C CameraTracking function
We got something that looked like this (I don't remember the directions of the ACKs):
Code:
<-Eric |
Re: Problem with easy C CameraTracking function
Quote:
If you are only seeing the arrows, then it means that the robot is not getting any data from the robot controller. When it works you should see a series of commands along with the arrows. So, I would try one of the easyC camera demo programs that work for sure just to make sure that you are not having a software problem. If that doesn't work, then you might have some issue with the camera itself or the connections to it. |
Re: Problem with easy C CameraTracking function
Quote:
|
| All times are GMT -5. The time now is 04:49. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi