📄 park.c
字号:
/*=====================================================================================
File name: PARK.C (IQ version)
Originator: Digital Control Systems Group
Texas Instruments
Alphascription: Park Transformation
=====================================================================================
History:
-------------------------------------------------------------------------------------
04-15-2005 Version 3.20
-------------------------------------------------------------------------------------*/
#include "IQmathLib.h" // Include header for IQmath library
// Don't forget to set a proper GLOBAL_Q in "IQmathLib.h" file
#include "dmctype.h"
#include "park.h"
void park_calc(PARK *v)
{
_iq Cosine,Sine;
// Using look-up IQ sine table
Sine = _IQsinPU(v->Angle);
Cosine = _IQcosPU(v->Angle);
v->Ds = _IQmpy(v->Alpha,Cosine) + _IQmpy(v->Beta,Sine);
v->Qs = _IQmpy(v->Beta,Cosine) - _IQmpy(v->Alpha,Sine);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -