Servo Values

Does anyone know what values the servo outputs in accordance to its angle?

Thank you,

The Hitec servos go through 180º and 255 PWM units. Thus, a difference of 1 PWM unit translates to (180/255)º of rotation. 127 is dead center, so you should be able to figure out how far you are from center.

The only output from the servos we got is the motion. They don’t return feedback about their position.

Are you talking about from the camera board? If yes, sure you can get the position. If no, what are you talking about?

That information you get from the CMUcam is not feedback from the servo, it is just the value the CMUcam sends to the servo. It may actually be in a different position (like if there is a large load on it)

That’s true, but with any luck, there really shouldn’t be any huge loads on your camera servos.

The servos go through 180 degrees, but when I test them out with the default program, I put them on pwm01, they only move 100 degrees or so. Is this because the joysticks don’t go through the entire range? If it is this it isn’t really a problem for us because the servos will be controlled but a button to output a value, not an analog input.

Thanks

How do you set the camera servo pan and tilt limits? We would like to change them from 46 and 210 to our own values. We assume you do it in camera.c under camera_set_servos. But we have been unsucessful so far. Please Help

We tested our servos and found that (145 degrees : 160 sv units) which is .906 degrees per servo unit. 180 degrees : 255 sv units would be .706 degrees per servo unit.

I will have to retest…