position = readAngularPosition(pidObj)
returns the angular position of the DC motor shaft, in closed-loop control with the rotary
encoder in radians.
[position,timestamp] = readAngularPosition(pidObj)
returns the angular position of the DC motor shaft, in closed-loop control with the rotary
encoder, in radians and the timestamp in the datetime format.
position = readAngularPosition(pidObj,'Reset',reset)
returns the angular position of the DC motor shaft in radians and resets the encoder count
to zero after reading its current value.
[position,timestamp] = readAngularPosition(pidObj,'Reset',reset)
returns the angular position of the DC motor shaft in radians; timestamp in datetime format
and resets the encoder count to zero after reading its current value.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.