We are implementing a position controller using Lab 13b as the base. Using DRV8301kit, PMSM motor (similar to Teknic model) with encoder feedback.
Some questions that we are unclear about;
1) When using the enconder setup. And gMotorVars.Flag_enableUserParams = true. Is the FAST estimator running at all during normal operation?
2) And the statement
CTRL_setFlag_enableCtrl(ctrlHandle,false);
Does it relate only to the FAST estimator?
Or does it also disable the blocks inside the FOC block, like the ID and IQ PI controllers, etc.. and ultimately not feed any drive signals to the power switches.
We are trying to find a good way to switch into a free-wheel mode. Possibly during a move (as a safety trip) for example if the motor is drawing more than expected current.
Simply using the statement
HAL_disablePwm(halHandle);
I'm guessing is not a good idea.
3) Also, is there a quick description as to what the difference is between;
CTRL_runOnLine_User(handle,pAdcData,pPwmData,electricalAngle);
CTRL_runOnLine(handle,pAdcData,pPwmData);
CTRL_runOffLine(handle,halHandle,pAdcData,pPwmData);
But these functions may be internal to the FOC and nothing we need to be worrying about..
Thanks in advance.