cancel
Showing results for 
Search instead for 
Did you mean: 

MCI_SetCalibratedOffsetsMotor

Zek_De
Senior

hi everyone,
I cant see usage of MCI_SetCalibratedOffsetsMotor or MC_SetPolarizationOffsetsMotor1 in example project, but code comment says use at least one time in product life. Has this been used before? or  "MCI_StartOffsetMeasurments". does anyone have  code example from scratch for  commissioning a motor. 

1 ACCEPTED SOLUTION

Accepted Solutions
Zek_De
Senior

Okay I see MCI_StartOffsetMeasurments connect with code below in medium task

case IDLE:
{
if ((MCI_START == Mci[M1].DirectCommand) || (MCI_MEASURE_OFFSETS == Mci[M1].DirectCommand))
{
if (pwmcHandle[M1]->offsetCalibStatus == false)
{
(void)PWMC_CurrentReadingCalibr(pwmcHandle[M1], CRC_START);
Mci[M1].State = OFFSET_CALIB;
}



View solution in original post

1 REPLY 1
Zek_De
Senior

Okay I see MCI_StartOffsetMeasurments connect with code below in medium task

case IDLE:
{
if ((MCI_START == Mci[M1].DirectCommand) || (MCI_MEASURE_OFFSETS == Mci[M1].DirectCommand))
{
if (pwmcHandle[M1]->offsetCalibStatus == false)
{
(void)PWMC_CurrentReadingCalibr(pwmcHandle[M1], CRC_START);
Mci[M1].State = OFFSET_CALIB;
}