⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clarke.c

📁 许继的2812开发全套驱动程序,很全很实用的.rar
💻 C
字号:
/*=====================================================================================
 File name:        CLARKE.C  (IQ version)                  
                    
 Originator:	Digital Control Systems Group
			Texas Instruments

 Description:  Clarke Transformation                   

=====================================================================================
 History:
-------------------------------------------------------------------------------------
 05-15-2002	Release	Rev 1.0
-------------------------------------------------------------------------------------*/

#include "IQmathLib.h"         /* Include header for IQmath library */
/* Don't forget to set a proper GLOBAL_Q in "IQmathLib.h" file */
#include "clarke.h"

/* 1/sqrt(3) = 0.57735026918963 */
   
void clarke_calc(CLARKE *v)
{	
   v->ds = v->as;

   v->qs = _IQmpy((v->as + _IQmpy(_IQ(2),v->bs)),_IQ(0.57735026918963));
 
}


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -