|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. Last edited by mjveld1018 : 10-02-2007 at 14:09. |
|
#2
|
|||
|
|||
|
Re: Problem with easy C CameraTracking function
Check to see if your TTL chip is connected properly AND plugged into the RC.
|
|
#3
|
|||
|
|||
|
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?
|
|
#4
|
|||||
|
|||||
|
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.
|
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
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.
|
|
#7
|
|||
|
|||
|
Re: Problem with easy C CameraTracking function
Quote:
If it is working it will finish the entire initialization sequence in less than a second. |
|
#8
|
||||
|
||||
|
Re: Problem with easy C CameraTracking function
We got something that looked like this (I don't remember the directions of the ACKs):
Code:
<- <- -> <- <- <- (then it started the printf statements we told it to make, returning zeroes for all functions) Eric |
|
#9
|
|||
|
|||
|
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. |
|
#10
|
|||
|
|||
|
Re: Problem with easy C CameraTracking function
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with easy c pro and mechanum wheels | pbrules15 | Programming | 9 | 03-02-2007 20:38 |
| sin() function problem | nirhaim1942 | Programming | 2 | 22-01-2007 11:43 |
| Easy C programming Problem | fredliu168 | FIRST Tech Challenge | 6 | 19-11-2006 22:44 |
| Easy C, loader problem | gabrielse | Programming | 13 | 02-02-2006 07:44 |
| FRC easy-c vex encoder function? | Gdeaver | Programming | 2 | 23-01-2006 08:03 |