Description
This function returns the current angle of an RC servo controlled by the servo subsystem.
Definition
ubyte servo_get_pulse(ubyte id)Library
LIB/servo_lib.basUsage
On entry:id is the servo to interogateOn exit:returns the angle of the selected servo. The angle is measured in units of 1 to 255 steps. For a 90 degree full travel servo each step is 0.35 degrees, for a 180 degree full travel servo each step is 0.70 degrees. Very often it is not necessary to know the actual angle just the fraction of full travel.