Part Number: TMS320F280041C
Tool/software:
Greetings! My project is based on MotorControl SDK 5_03 Lab07. At the beggining I turn on the lab in order to calibrate the offsets of the sensors ->
motorVars.flagEnableSys=1;
motorVars.flagRunIdentAndOnLine=1;
motorVars.flagMotorIdentified=1;
Next I wait until the estimator enters into ONLINE state and I stop the main loop->
EST_State_e curr_est_state=EST_getState(estHandle);
if(curr_est_state==EST_STATE_ONLINE)
{
motorVars.flagEnableSys=0;
motorVars.flagRunIdentAndOnLine=0;
motorVars.flagMotorIdentified=0;
StartCalibration=calibration_done;
}
The problem is this breaks my program and I receive an error when I try to spin the motor using motorVars.flagEnableSys=1; and
motorVars.flagRunIdentAndOnLine=1;
If I don`t interrupt the program the motor spins correctly.
Can you tell me how I should properly stop the program after the offsets are calculated and how should I register that?
Thanks!