A related question is a question created from another question. When the related question is created, it will be automatically linked to the original question.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
How to switch the control mode (position mode, velocity mode and torque mode) when the PID loop is running.
The question is very generic, but for example if changing the mode from speed mode to torque mode, the initial reference you need to use when transitioning into torque mode needs to be the final value used in speed mode, then change the reference as needed.
The same applies when transitioning from position control to speed control. The initial speed reference used needs to be the final referenced used by the position loop, and then change it as needed.
-Jorge