Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Tracking (http://www.chiefdelphi.com/forums/showthread.php?t=51942)

Ghosty 15-01-2007 16:55

Tracking
 
I noticed that whenever the camera was tracking it was tilting downwards and then stopped tracking the green. Is this because I don't have a setting right for the noise filter or a value wrong for the RGB values. Any help would be great.

JSonntag 15-01-2007 17:17

Re: Tracking
 
If you are using Kevin's code, the way the camera is mounted matters. If you mount it with the on-off switch near the top, you have to go and change a few signs in your code or else it will always try to move away from the light instead of centering on it.

Mark McLeod 15-01-2007 17:48

Re: Tracking
 
Here's what JSonntag is refering to in the code.
From tracking.h

Code:

// If your camera suddenly moves away from the target once
// it finds it, you'll need to change the sign on one or
// both of these values. Start with the tilt first.
#define PAN_ROTATION_SIGN_DEFAULT -1
#define TILT_ROTATION_SIGN_DEFAULT 1


Kevin Watson 15-01-2007 18:03

Re: Tracking
 
Quote:

Originally Posted by Ghosty (Post 557444)
I noticed that whenever the camera was tracking it was tilting downwards and then stopped tracking the green. Is this because I don't have a setting right for the noise filter or a value wrong for the RGB values. Any help would be great.

See question nine: http://kevin.org/frc/camera/. It's best to rotate the camera 180 degrees. I've been trying to get 'em to fix that illustration for a year *sigh*.

-Kevin

Ghosty 16-01-2007 10:53

Re: Tracking
 
Thanks Kevin, your solution worked, I'm eternally grateful to your greatness.


All times are GMT -5. The time now is 01:20.

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