本帖最后由 xch4911 于 2015-5-22 16:47 编辑
FOC库2.0中 PWM占空比计算部分 程序如下: /* Duty cycles computation */
switch(bSector)
{
case SECTOR_1:
case SECTOR_4:
hTimePhA = (T/8) + ((((T + wX) - wZ)/2)/131072);
hTimePhB = hTimePhA + wZ/131072;
hTimePhC = hTimePhB - wX/131072;
break;
case SECTOR_2:
case SECTOR_5:
hTimePhA = (T/8) + ((((T + wY) - wZ)/2)/131072);
hTimePhB = hTimePhA + wZ/131072;
hTimePhC = hTimePhA - wY/131072;
break;
case SECTOR_3:
case SECTOR_6:
hTimePhA = (T/8) + ((((T - wX) + wY)/2)/131072);
hTimePhC = hTimePhA - wY/131072;
hTimePhB = hTimePhC + wX/131072;
break;
default:
break;
}
想请问 上面红色部分是怎么得来的 与说明手册中的公式不一样啊
希望帮忙解答一下
|