Go to Post Even in the worst times, I get a reminder of just how wonderful my big FIRST family is. - 216Robochick288 [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
  #16   Spotlight this post!  
Unread 26-02-2006, 21:59
Eko's Avatar
Eko Eko is offline
Registered User
#0868
Team Role: Programmer
 
Join Date: Jan 2004
Location: Carmel, IN
Posts: 17
Eko is an unknown quantity at this point
Re: Finding servo location?

Other than having a rotary potentiometer or something on it...

Nope =)
__________________
  #17   Spotlight this post!  
Unread 26-02-2006, 22:20
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
Re: Finding servo location?

Quote:
Originally Posted by rodgadashruba
well i tried that in user routines, in the default code funtion. the code compiles just fine but when i add int he comman

int testTest = PAN_SERVO ;
or
static int testTest = PAN_SERVO;

i get syntax errors
is there a way to access these varible outside of tracking.c?
Yes. Since PAN_SERVO is in a #define statement in tracking.h you just need to make sure you include that .h file. Or just directly use pwm01 if that is what your #define is set to.
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.
  #18   Spotlight this post!  
Unread 26-02-2006, 22:30
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
Re: Finding servo location?

Quote:
Originally Posted by Matt Krass
Keep in mind this tells you where the servo is being commanded to go, not where it is, in most case they're synonomous, but if you're caught on something, or doing a lot of tracking this value could introduce lag which creates oscillations, making it worse, feedback loops, a constantly increasing error, all kinds of bad stuff. Just remember thats where it's trying to be and 98% of the time it should be there.
Please note that the only thing Matt is pointing out are possible error conditions which should not be encountered in normal operation.

1) Do not command your servo to go into a position where the servo's movement is physically limited.

2) Setting the pwm value is where the servo will end up. This is pretty accurate. If you are worried about the speed in which the servo gets to the commanded position versus the speed of your processing loop then use the Hitec specification for the speed of your servo to figure out if you need a delay.
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.
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
Finding the *final* Servo Center values? Andrew Blair Programming 2 22-01-2006 18:02
Servo behavior question / advanced servo/PIC programming question DanL Electrical 12 18-10-2005 18:33
Servo command confusion?!?!?!?! [527]phil Programming 9 15-07-2005 20:10
Servo Compact Design Problems!!! Dominator_Legen Electrical 22 07-04-2005 18:15
Servo Help Dominator_Legen Motors 3 11-03-2005 19:50


All times are GMT -5. The time now is 03:37.

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