NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
long MotorRotationCount ( byte  output)
inline

Get motor program-relative counter.

Get the program-relative position counter value of the specified output.

Parameters
outputDesired output port. Can be OUT_A, OUT_B, OUT_C or a variable containing one of these values, see Output port constants.
Returns
The program-relative position counter value of the specified output.
Examples:
ex_motorrotationcount.nxc, and util_rpm.nxc.