我下载了PMSM电机示例。我想修复自己的程序,但不知道。
我只想询问ia,ib的外部输入,通过FOC算法,三相电压的输出值到示波器的测量,
FOC算法只要我调用以下程序范例即可?
PWMC_GetPhaseCurrents(oCurrSensor [bMotor],& Iab);
Ialphabeta = MCM_Clarke(Iab);
Iqd = MCM_Park(Ialphabeta,hElAngledpp);
hElAngledpp = SPD_GetElAngle(oSPD [MC_NUM]);
Vqd.qV_Component1 = PI_Controller(oPIDIq [MC_NUM],
(int32_t)(FOCVars [MC_NUM] .Iqdref.qI_Component1) - Iqd.qI_Component1);
Vqd.qV_Component2 = PI_Controller(oPIDId [MC_NUM],
(int32_t)(FOCVars [MC_NUM] .Iqdref.qI_Component2) - Iqd.qI_Component2);
Valphabeta = MCM_Rev_Park(Vqd,hElAngledpp);
hCodeError = PWMC_SetPhaseVoltage(oCurrSensor [MC_NUM],Valphabeta);
该功能是三相电压值的最终输出?
谢谢!
以上来自于谷歌翻译
以下为原文
I downloaded the PMSM Motor Example. I want to fix my own programs, but has no idea .
I just wanted to ask if the external input from ia, ib, via FOC algorithm, the output value of the three-phase voltage to the oscilloscope measurement,
The FOC algorithm as long as I call following below program paradigm can be ?
PWMC_GetPhaseCurrents(oCurrSensor[bMotor], &Iab);
Ialphabeta = MCM_Clarke(Iab);
Iqd = MCM_Park(Ialphabeta, hElAngledpp);
hElAngledpp = SPD_GetElAngle(oSPD[MC_NUM]);
Vqd.qV_Component1 = PI_Controller(oPIDIq[MC_NUM],
(int32_t)(FOCVars[MC_NUM].Iqdref.qI_Component1) - Iqd.qI_Component1);
Vqd.qV_Component2 = PI_Controller(oPIDId[MC_NUM],
(int32_t)(FOCVars[MC_NUM].Iqdref.qI_Component2) - Iqd.qI_Component2);
Valphabeta = MCM_Rev_Park(Vqd, hElAngledpp);
hCodeError = PWMC_SetPhaseVoltage(oCurrSensor[MC_NUM], Valphabeta);
This func
tion is the final output of the three-phase voltage values ?
Thanks!