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.

Steps for Regeneration with Instaspin.

Dear All,

I am using Lab5a, torque control. I am giving Iq_ref command through potentiometer. As in this lab CTRL_setFlag_enableSpeedCtrl() is already disabled. So i am assuming no need to worry about speed control loop.

I want to implement the regeneration, so please check my steps and suggest me if i am doing something wrong.

in UpdateIqRef() function, i added-

if(iq_ref == _IQ(0.0))
{
if(_IQabs(gMotorVars.Speed_krpm) > _IQ(0.0))
{
iq_ref=_IQ(-5.0);
}
}

From above i am assuming that if i made potentiometer to zero then regeneration should occur at slow rate.

Please suggest on my steps.

Thanks.