Control functions
Control functions are the functions that ensure that the loop is closed, this is, that the controller is all the time either on the demanded value or going to the demanded value, according to the predetermined control parameters. Controllable magnitudes are position, velocity or torque.