Hello everyone and thanks in advance for your time,
If I've understood correctly when I run a simple torque control in FOC (lab4/4a) the only variable I can control is the quadrature current Iq directly responsible for the torque generation.
When, instead, I use a speed controller to feed the Iq control I can regulate the speed reference based on the EST_getSpeed_krpm coming from the FAST controller.
I can see that the motor is capable to estimate the torque (expressed in Nm this time) that is applying to a certain load (gMotorVars.Torque_Nm). So I started wondering if it would be possible to substitute the speed PI controller feeding the Iq controller with a simple Torque PI controller. An object in which the user can input the desired torque in Nm and based on the gMotorVars.Torque_Nm value the controller can estimate the right amount of current (Iq) necessary to drive the motor.
Is that feasible and simple enough to implement?
Thanks again,
Lorenzo