This thread has been locked.
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.
Part Number: DRV8312-C2-KIT
Good morning,
i'm working on instaspin foc.
i executed lab04 (Torque mode controller) and the following labs that execute the Speed mode Controller.
I want to know if is it possible to skip from a controller mode to another (from Speed controller to Torque controller and viceversa) in a simply way?
From the lab i have not found this possibility.
Thanks
Yes. But you need to add a few codes to disable/enable speed controller to run the motor with torque mode or speed closed-loop mode.
You might take a look at the lab05a for torque mode, and lab05b for speed closed-loop, and then you can combine these two labs by calling CTRL_setFlag_enableSpeedCtrl()
CTRL_setFlag_enableSpeedCtrl(ctrlHandle, true); // Enable speed-closed loop
CTRL_setFlag_enableSpeedCtrl(ctrlHandle, false); // Disable speed-closed loop, and use the torque mode