Go to Post Solutions are more likely to be implemented if you provide the solution along with the concern! - Jessica Boucher [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-01-2007, 17:19
Terry Yiu Terry Yiu is offline
Registered User
FRC #0849 (Wolf Pack)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Unionville, Ontario, Canada
Posts: 2
Terry Yiu is an unknown quantity at this point
Servo tracking... pan reverse

Hi, I have a question about the servo tracking for the camera. The tilt tracking works fine... follows the green light. However, the pan servo moves AWAY from the green light. It seems that our pan tracking is reversed and we do not know how to invert it back on EasyC.

Any help would be appreciated. Thanks.
  #2   Spotlight this post!  
Unread 23-01-2007, 22:18
114Klutz 114Klutz is offline
Registered User
AKA: Li Pi
FRC #2984 (Viking Robotics)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Los Altos
Posts: 152
114Klutz is a jewel in the rough114Klutz is a jewel in the rough114Klutz is a jewel in the rough
Send a message via AIM to 114Klutz
Re: Servo tracking... pan reverse

Invert it like this (pseudocode)

pan_pwm = 255 - pan_pwm;
  #3   Spotlight this post!  
Unread 23-01-2007, 22:26
Cynix Cynix is offline
Registered User
FRC #0074
 
Join Date: Jan 2007
Location: Michigan
Posts: 5
Cynix is an unknown quantity at this point
Re: Servo tracking... pan reverse

If you're using Kevin Watson's tracking code look in tracking.h and find
Code:
#define PAN_ROTATION_SIGN_DEFAULT
That will be set to either 1 or -1, if your pan is tracking the wrong way try switching the value. I've never used easyc but you can open tracking.h in any plaintext editor like notepad and change the value manually.
Closed Thread


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
Quetion about servo tracking function in easyC pro itsme Programming 5 31-01-2007 11:30
Servo & Tracking Problems Team 849 Programming 4 28-01-2007 01:28
Dashboard View of Pan and Tilt Servo Values JoeXIII'007 Programming 1 02-02-2005 22:34
Tracking beacon without servo Paul Marshall Technical Discussion 17 10-02-2004 20:58


All times are GMT -5. The time now is 04:12.

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