Part Number: TMS320F280037C
Hello,
UMCSDK: v5.03 - v5.04
When we disable the motor in the reverse direction seemingly torque changes positive causing current to pop in the motor windings. That is not occuring in the forward direction when setting motorVars_M1.flagEnableRunAndIdentify = false;
Notably, first disabling 3 half bridges outputs in reverse direction to stop motor produce same sudden pop. Why can we properly decelerate the motor in forward direction to a full stop but not in the reverse direction? Even as decel trajectory current is divided 4 times either direction.
Copilot AI can't even figure out why we can make the motor decelerate in forward, change the sign for reverse the motor runs at what ever the pot is set with added speed guard band (±4Hz) or the motor speed oscillates wildly by the ADC samples. Also turning the pot alone should never start a motor running.
if(obj->speedRef_Hz > 0.0f)
{
obj->direction = 1.0f;
}
else
{
obj->direction = -1.0f;
}
if(bFwd_Dir && obj->direction == 1.0f)
{
//SCIprintf(">> DecelSpeed \n");
/* reduce acceleration, slowly decelerate to a stop */
obj->speedRef_Hz -= 0.05f; //= obj->speedRef_Hz
}
if(!bFwd_Dir && obj->direction == -1.0f)
{
/* reduce acceleration, slowly decelerate to a stop */
//obj->speedRef_Hz += -0.05f; // move toward zero
//obj->speedRef_Hz = fabsf(obj->speedRef_Hz);// enforce negative sign
/* Set motor offline not running */
motorVars_M1.flagEnableRunAndIdentify = false;
}