How to switch from torque mode to speed mode while motor is running?
We're using STM32 MCSDK to control a high torque BLDC motor. The motor is equiped with hall sensors. Due to high torque at startup, we start the motor in torque mode. When running, we would need the speed control mode.
But if we change the control mode on-the-fly from torque mode to speed mode (when reaching a certain speed), the motor stops immediately after executing MC_ProgramTorqueRampMotor1() and ramps up from zero speed.
Furthermore: how can I switch from HALL sensor mode (main sensor) to sensorless obserer (auxiliary sensor) on-the-fly?
Any help/hints/tips are welcome :)
