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.

When first Rs_re calibration failed, how can I trigger second Rs calibration automatically?



Hi TI,

  When motor's first Rs re-calibration failed, how can I trigger second Rs re-calibration automatically and properly?

Thanks!

  • Which lab did you refer? You can follow below steps if you are using lab11a as a reference project.
    1. Set gMotorVars.Flag_Run_Identify= 0 to stop the motor.
    2. Set gMotorVars.Flag_enableRsRecalc = true, and call EST_setFlag_enableRsRecalc(estHandle,false);
    3. Set gMotorVars.Flag_Run_Identify = 1 to start the motor again when the motor is stopping.
  • What are the conditions that I can use to check whether the Rs-calibration fail or not?
    I used gMotorVars.SpinTAC.PosCtlErrorID == 2002, but sometimes it doesn't work
    Because It doesn't always generate this ErrorID when the calibration failed.