Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   T_Packet_Data.mx probs (http://www.chiefdelphi.com/forums/showthread.php?t=43928)

Ryan O 13-02-2006 15:35

T_Packet_Data.mx probs
 
I got the camera scanning and such, the only problem is that the refinment part of the code doesn't work! The camera just turns one way until it looses the atrget. I've looked at the code and can't find any obvious flaws and thought taht maybe T_Packet is different from .my. Maybe it doesn't go neg or something? Or is there just something in Kevins code I missed? I set the pan error high so it won't need the routine, but that kills the alignment code I'm working on. Any suggestion to fix the code would be great.

Greg Ross 13-02-2006 17:24

Re: T_Packet_Data.mx probs
 
Quote:

Originally Posted by Ryan O
I got the camera scanning and such, the only problem is that the refinment part of the code doesn't work! The camera just turns one way until it looses the atrget. I've looked at the code and can't find any obvious flaws and thought taht maybe T_Packet is different from .my. Maybe it doesn't go neg or something? Or is there just something in Kevins code I missed? I set the pan error high so it won't need the routine, but that kills the alignment code I'm working on. Any suggestion to fix the code would be great.

(This has been discussed in other threads, but...) You probably have your camera mounted upside down from the way Kevin's code assumes. You have (at least) two options:
  1. Invert your camera. (Turn it upside-down.)
  2. Change the PAN_ROTATION_SIGN_DEFAULT and TILT_ROTATION_SIGN_DEFAULT parameters in tracking.h.*

*Or, if you're using the "Bells and Whistles" version of the camera code, use the tracking menu to change them.

Ryan O 13-02-2006 19:03

Re: T_Packet_Data.mx probs
 
Thanks for the suggestion. Shortly after I decided to post here, I was tinkering with the code. I found by making search step equal to what it was originally equal to multiplied by negitive one, the camera operates normally

Greg Ross 13-02-2006 19:17

Re: T_Packet_Data.mx probs
 
Quote:

Originally Posted by Ryan O
Thanks for the suggestion. Shortly after I decided to post here, I was tinkering with the code. I found by making search step equal to what it was originally equal to multiplied by negitive one, the camera operates normally

That's exactly what PAN_ROTATION_SIGN_DEFAULT and TILT_ROTATION_SIGN_DEFAULT do. :)

Kevin Watson 14-02-2006 00:34

Re: T_Packet_Data.mx probs
 
Quote:

Originally Posted by Ryan O
Thanks for the suggestion. Shortly after I decided to post here, I was tinkering with the code. I found by making search step equal to what it was originally equal to multiplied by negitive one, the camera operates normally

You should consider mounting the camera such that the tilt axis extends through the camera. You'll get better tracking performance if you do. Once you've done that, start with a fresh copy of the camera code and it should just work.

-Kevin


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

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