PID library is blocking when the setpoint is reached

Status
Not open for further replies.

Lorenzo

Well-known member
Hi everybody,

I am trying to control the speed of a DC motor with Teency 3.5 by reading data from the encoder.
Everything seems working but, when the motor reaches the setpoint speed the PID.Compute function is blocking and the motor stops moving.

My question is: which should be the output of the myPID.Compute(); function when the setpoint speed is reached?

Thank you.
 
Status
Not open for further replies.
Back
Top