Go to Post I don't care if you use hot dogs for wheels. If you're scoring points, and you fit the strategy, it's fine. - evanperryg [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 08-02-2006, 14:25
Keith Watson Keith Watson is offline
Registered User
FRC #0957 (WATSON)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Wilsonville, OR
Posts: 112
Keith Watson is just really niceKeith Watson is just really niceKeith Watson is just really niceKeith Watson is just really nice
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;
Note that the pan servo pwm is hardcoded to zero. If you have changed PAN_MIN_PWM_DEFAULT from zero to something else then hardcoding to zero is incorrect. Change the line to:
Code:
        temp_pan_servo = Tracking_Config_Data.Pan_Min_PWM;
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.

Last edited by Keith Watson : 08-02-2006 at 14:39.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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