Log in

View Full Version : Camera angle - interesting question


TEAM1949
08-02-2006, 16:35
This question had been asked but hadn't been answered.

How I can retrieve the camera tilt angle without using the parameter of the blob size?

I am gonn'a find the distance from the goal with the sin of the angle.

Can anyone please answer this question specifically ?

Thanks.

TEAM1949
08-02-2006, 16:52
from the terminal.c:

// pan angle = ((current pan PWM) - (pan center PWM)) * degrees/pan PWM step
printf(" Pan Angle (degrees) = %d\r\n", (((int)PAN_SERVO - 124) * 65)/124);

// tilt angle = ((current tilt PWM) - (tilt center PWM)) * degrees/tilt PWM step
printf("Tilt Angle (degrees) = %d\r\n", (((int)TILT_SERVO - 144) * 25)/50);



Can anyone explain?

TEAM1949
08-02-2006, 17:06
I didnt understand only this part :

* degrees/tilt PWM step

DanDon
08-02-2006, 22:20
from the terminal.c:

// pan angle = ((current pan PWM) - (pan center PWM)) * degrees/pan PWM step
printf(" Pan Angle (degrees) = %d\r\n", (((int)PAN_SERVO - 124) * 65)/124);

// tilt angle = ((current tilt PWM) - (tilt center PWM)) * degrees/tilt PWM step
printf("Tilt Angle (degrees) = %d\r\n", (((int)TILT_SERVO - 144) * 25)/50);



Can anyone explain?

Hi, ma kore?
basically degrees/PWM step is the number of degrees per rotation of the servo from its midpoint to either the max or min value of the servo. If you need more help, then PM me with your ICQ number and I'll be happy to help.