cancel
Showing results for 
Search instead for 
Did you mean: 

MCSDK 6.3 - Correct way to restart / retrigger encoder alignment

sleits_96
Associate

Hi Community,

does anybody know how to restart the encoder alignment process after the first initial alignent during motor startup ?

 

EAC_SetRestartState(&EncAlignCtrlM1, true);

EAC_StartAlignment(&EncAlignCtrlM1);

while(MC_GetSTMStateMotor1() == ALIGNMENT){}

 

seems not to do the trick.

 

0 REPLIES 0