|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Search Servo Initialization Caution
The default search code initializes the camera pan/tilt servos with this code.
Code:
if(new_search == 1)
{
new_search = 0;
temp_pan_servo = 0;
temp_tilt_servo = Tracking_Config_Data.Tilt_Center_PWM;
}
else
{
// search code
}
PAN_SERVO = (unsigned char)temp_pan_servo;
TILT_SERVO = (unsigned char)temp_tilt_servo;
Code:
temp_pan_servo = Tracking_Config_Data.Pan_Min_PWM; Last edited by Keith Watson : 08-02-2006 at 14:39. |
|
#2
|
||||
|
||||
|
Re: Search Servo Initialization Caution
Quote:
-Kevin |
|
#3
|
|||
|
|||
|
Re: Search Servo Initialization Caution
I found it by reading the code to understand the algorithm. The rest of the code was all nicely parameterized.
![]() |
|
#4
|
||||
|
||||
|
Re: Search Servo Initialization Caution
You may want to keep temp_pan_servo or temp_tilt_servo the same for a new search as well; we ran into a problem where the camera would catch the target as it spun all the way back to 0 (as it does this the tilt angle increases, which is why it caught it on the way to the left but not the right), lose it when it got there, initialize a new search and have us repeat over and over.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mozilla / FireFox Search Plugins | Brandon Martus | Announcements | 7 | 06-06-2005 10:41 |
| search white papers? | sirbleedsalot | CD Forum Support | 3 | 03-04-2005 17:09 |
| teach rookies how to search | Ken Leung | CD Forum Support | 2 | 17-01-2005 00:03 |
| 20 second search interval | sanddrag | CD Forum Support | 4 | 14-02-2004 08:52 |
| Whacky C Complier behavior | Larry Barello | Programming | 12 | 26-01-2004 22:15 |