Quote:
|
Originally Posted by TEAM1949
from the terminal.c:
Code:
// 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.