2024-12-13 10:56 AM
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.
Solved! Go to Solution.
2024-12-13 11:18 AM
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;
}
2024-12-13 11:18 AM
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;
}