|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
CAMERA
Need help… We are having a serious problem it seems in calibrating our camera. We are using LABview and putting the target(green light) about 12 feet away. The camera seems to only see a bright white light. We run the program (Bells and Whistles version) and the camera pans and tilts correctly (it seems), but never acquires the target. Can anyone tell me how to calibrate the camera…. And what code needs to change to acquire the target. Shouldn’t the camera stop when the target is found? What are we missing?
|
|
#2
|
||||
|
||||
|
Re: CAMERA
Quote:
-Kevin |
|
#3
|
|||
|
|||
|
Re: CAMERA
Thanks Kevin... I will try that tonight. If this is the case, why do we need LABview. Also, why are there documents from innovation first to calibrate the camera (in detail).... Not questioning you, I just wonder WHY? Maybe I was trying to make this much harder than it really is... Your help is much appreciated.... Thanks again.....
|
|
#4
|
|||||
|
|||||
|
Re: CAMERA
Quote:
However, Kevin has already figured out an awesome set of values for tracking the green light FIRST uses in competitions. If you just use his, it will work wonderfully. Compared to how hard it was to use the camera in 2005, what Kevin has done is pretty much magic. |
|
#5
|
|||
|
|||
|
Re: CAMERA
Thanks.... What file are the parameters in... Are they in user_routines.c or user_routines_fast.c.... -or- are they in a ".h" file? Thanks for the help....
|
|
#6
|
||||
|
||||
|
Re: CAMERA
Quote:
-Kevin |
|
#7
|
|||
|
|||
|
Re: CAMERA
Thanks again.... Kevin is the MAN.... I'll try it tonight....
|
|
#8
|
||||
|
||||
|
Re: CAMERA
Quote:
Anyway, I suspect you'll find that the default calibration parameters will work quite well. Just FYI, to help teams get the camera running, I started a FAQ last year: http://kevin.org/frc/camera. -Kevin |
|
#9
|
||||
|
||||
|
Re: CAMERA
Quote:
-Kevin |
|
#10
|
|||
|
|||
|
Re: CAMERA
Kevin, I'm sorry I did not respond yesterday, but the camera did respond to the light. It works perfectly. Thanks for the help. I don't think we would have solved this without you. We were making this much harder than it really was. Now comes what I hope is the fun part in coding the drive chain to respond and move the robot the way we want it to move. I guess we want the robot to go into the light...(HA) Old horror movie humor. Thanks again.
|
|
#11
|
|||
|
|||
|
Re: CAMERA
we are getting the camera to see the green light, but it keeps searching and moves off of it, then rotates back to the light and off again,like it cant get a solid fix on it. any suggestions?
|
|
#12
|
|||
|
|||
|
Re: CAMERA
you have probably put the camera exactly as the manual said. Unfortunately, Kevin's code is upside-down. Switch the macros (Kevin's FAQ says which) which control pan and tilt direction.
|
|
#13
|
||||
|
||||
|
Re: CAMERA
Quote:
-Kevin |
|
#14
|
|||
|
|||
|
Re: CAMERA
we finally got the camera working yesterday where it would give us values and the red light would light, today it just keeps searching with no data coming back using the same code(kevin's) that we used yesterday. The red light lights up, but no data comes back, any suggestions what might be causing this. Also we tried kevins new code posted 1/16 and same thing happened.
|
|
#15
|
||||
|
||||
|
Re: CAMERA
Quote:
// This value defines how many "slow loops" to wait before // sending the tracking servo(s) to their next destination // while in search mode. This provides a small delay for the // camera to lock onto the target between position changes. #define SEARCH_DELAY_DEFAULT 6 and increase this value to 10 and see it it starts working. -Kevin |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Camera Troubles | cmurdoch | Programming | 9 | 11-02-2006 11:34 |
| No lights on camera | Bob22341 | Programming | 4 | 08-02-2006 13:27 |
| camera question | naor52 | Programming | 8 | 03-02-2006 00:07 |
| Camera Help (New to Camera Programming) | Idaman323 | Programming | 6 | 14-01-2006 03:56 |
| camera problem | miscar | Programming | 2 | 23-01-2005 12:06 |