The estimated torque T*em is estimated from a PI controller from the reference between the speed ω*
and the feedback motor speed ω. The T is measured by a torque meter on the motor shaft. The difference between the reference speed and the measured speed is the second state variable m