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?