Description Function Coding Example
Read a Servo Position
Reads the most recent commanded
position of a servo motor connected
to PULSE servo ports 1-6. The value
returned will be 0-180.
readServoPosition(servo#);
Data Type:
servo# = integer
Data Range:
servo# = 1 to 6
Data Type Returned:
value = integer (0 to 180)
readServoPosition(1);
Read the most recent commanded
position of Servo 1.
readServoPosition(2);
Read the most recent commanded
position of Servo 2.
140 Appendix