|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Servo Offset -> Angle conversion
I have estimated the conversion at
Angle = Offset / 2 Does anybody have a more optimal conversion equation? |
|
#2
|
||||
|
||||
|
Re: Servo Offset -> Angle conversion
Quote:
((TILT_SERVO - 144) * 25)/50 In Kevin's camera code check out terminal.c Its the 65/124 degrees change for every pan incriment and 1/2 for every tilt incriment that you need. |
|
#3
|
|||||
|
|||||
|
Re: Servo Offset -> Angle conversion
That of course assumes that your CENTER pwm values are at 124 and 144 (not hard to change). But then my next question would be, why would the degree change be different for 2 identical servos?
|
|
#4
|
|||||
|
|||||
|
Re: Servo Offset -> Angle conversion
Quote:
Without having looked at that piece of code, I don't really know for sure. ![]() |
|
#5
|
||||
|
||||
|
Re: Servo Offset -> Angle conversion
Quote:
Yeah probably because the camera is centered around the pan axis but not the tilt axis. |
|
#6
|
|||||
|
|||||
|
Re: Servo Offset -> Angle conversion
Perhaps with the linkage in the KOP bracket the pan is longer or shorter.
|
|
#7
|
|||||
|
|||||
|
Re: Servo Offset -> Angle conversion
Quote:
So I did something bad by unscrewing the servo horn and re-centering the tilt axis to be exactly vertical at 127? I wonder how many other teams did that as well... |
|
#8
|
|||
|
|||
|
Re: Servo Offset -> Angle conversion
Quote:
Last edited by devicenull : 29-01-2006 at 22:07. |
|
#9
|
|||||
|
|||||
|
Re: Servo Offset -> Angle conversion
Quote:
|
|
#10
|
|||||
|
|||||
|
Re: Servo Offset -> Angle conversion
Quote:
On my camera, at least, the camera lens is exactly in line with the pan and tilt servos. Did anyone mount the camera board upside-down, or is the offset just too slight to easily notice? ![]() |
|
#11
|
||||
|
||||
|
Re: Servo Offset -> Angle conversion
With the help of the LabView software I have found that 45 degrees is right around 50 servo "ticks".
|
|
#12
|
|||||
|
|||||
|
Re: Servo Offset -> Angle conversion
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 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 |
| FIRST-SME membership | archiver | 2001 | 5 | 24-06-2002 00:41 |