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.

马达历程 lab-10d 双马达 相位 不为180度 改变相位值无效 为何?



马达历程 lab-10d  双马达   相位 不为180度

if(objMtr->mtrNum == HAL_MTR1)
{
PWM_disableCounterLoad(objMtr->pwmHandle[0]); // disable phase syncronization
}
else if(objMtr->mtrNum == HAL_MTR2)
{
PWM_enableCounterLoad(objMtr->pwmHandle[0]); // enable phase syncronization
PWM_setPhase(objMtr->pwmHandle[0],(halfPeriod_cycles>>1)); // half PWM period

}

  改变这里得值(halfPeriod_cycles>>1) ,相位始终不变;