Changing desired torque at run time
Dear all,
I have a NUCLEO-F302R8 and the X-NUCLEO-IHM07M1 motor driver expansion board. I have a three phase BLDC motor with an encoder attached to it. I want to implement a torque controller. I am able to use the workbench software to implement the torque controller and set the desired torque. This works fine. However, I want to be able to adjust the desired torque in the while loop of the main function. Unfortunately, I am not able to achieve this. Do you have any ideas on how to achieve it?

