Skip to main content
Zek_De
Senior
December 13, 2024
Solved

MCI_SetCalibratedOffsetsMotor

  • December 13, 2024
  • 1 reply
  • 512 views

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. 

Best answer by Zek_De

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;
}



1 reply

Zek_De
Zek_DeAuthorBest answer
Senior
December 13, 2024

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;
}