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

📄 aci_se.h

📁 异步电机矢量控制c源程序
💻 H
字号:
/* =================================================================================
File name:       ACI_SE.H   (IQ version)                  
                    
Originator:	Digital Control Systems Group
			Texas Instruments

Description: 
Header file containing constants, data type definitions, and 
function prototypes for the ACISE.
=====================================================================================
 History:
-------------------------------------------------------------------------------------
 04-15-2005	Version 3.20                                                   
------------------------------------------------------------------------------ */
#ifndef __ACI_SE_H__
#define __ACI_SE_H__

typedef struct {  _iq  IQsS;  			// Input: Stationary q-axis stator current  
				  _iq  PsiDrS;  		// Input: Stationary d-axis rotor flux  
				  _iq  IDsS;			// Input: Stationary d-axis stator current  
				  _iq  PsiQrS;			// Input: Stationary q-axis rotor flux  		
		 	 	  _iq  K1;				// Parameter: Constant using in speed computation  
                  _iq  SquaredPsi; 		// Variable: Squared rotor flux    
    			  _iq  ThetaFlux;  		// Input: Rotor flux angle      		  
		 	 	  _iq21  K2;			// Parameter: Constant using in differentiator (Q21) - independently with global Q 
    			  _iq  OldThetaFlux; 	// Variable: Previous rotor flux angle      		  
		 	 	  _iq  K3;				// Parameter: Constant using in low-pass filter   
		 	 	  _iq21  WPsi;			// Variable: Synchronous rotor flux speed (Q21) - independently with global Q 
		 	 	  _iq  K4;				// Parameter: Constant using in low-pass filter  
		 	 	  _iq  WrHat;			// Output: Estimated speed in per unit  
				  Uint32  BaseRpm; 		// Parameter: Base rpm speed (Q0) - independently with global Q  		 	 	  
		 	 	  int32  WrHatRpm;		// Output: Estimated speed in rpm (Q0) - independently with global Q   
		 	 	  void  (*calc)();		// Pointer to calculation function  
				 } ACISE;	            
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																			
typedef ACISE *ACISE_handle;

/*-----------------------------------------------------------------------------
Default initalizer for the ACISE object.
----------------------------------------------------------------------------- */                    
#define ACISE_DEFAULTS {  0, \
                          0, \
                          0, \
                          0, \
                          _IQ(0.1), \
                          0, \
                          0, \
                          _IQ21(0.1), \
                          0, \
                          _IQ(0.1), \
                          0, \
                          _IQ(0.1), \
                          0, \
                          3600, \
              			  0, \
              			  (void (*)(Uint32))aci_se_calc }

#define DIFF_MAX_LIMIT  	_IQ(0.90)
#define DIFF_MIN_LIMIT  	_IQ(0.10)
/*------------------------------------------------------------------------------
Prototypes for the functions in ACI_SE.C
------------------------------------------------------------------------------ */
void aci_se_calc(ACISE_handle);

#endif // __ACI_SE_H__

⌨️ 快捷键说明

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