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

📄 pid_reg3.h

📁 TI公司28XDSP控制永磁同步电机(PMSM)
💻 H
字号:
/* =================================================================================
File name:       PID_REG3.H                     
                    
Originator:	Digital Control Systems Group
			Texas Instruments

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

typedef struct {  float32  Ref;   		// Input: Reference input 
				  float32  Fdb;   		// Input: Feedback input 
				  float32  Err;			// Variable: Error 
				  float32  Kp;			// Parameter: Proportional gain
				  float32  Up;			// Variable: Proportional output 
				  float32  Ui;			// Variable: Integral output 
				  float32  Ud;			// Variable: Derivative output	
				  float32  OutPreSat;	// Variable: Pre-saturated output
				  float32  OutMax;		// Parameter: Maximum output 
				  float32  OutMin;		// Parameter: Minimum output
				  float32  Out;   		// Output: PID output 
				  float32  SatErr;		// Variable: Saturated difference
				  float32  Ki;			// Parameter: Integral gain
				  float32  Kc;			// Parameter: Integral correction gain
				  float32  Kd; 			// Parameter: Derivative gain 
				  float32  Up1;			// History: Previous proportional output
		 	 	  void  (*calc)();	  	// Pointer to calculation function
				 } PIDREG3;	            

typedef PIDREG3 *PIDREG3_handle;

/*-----------------------------------------------------------------------------
Default initalizer for the PIDREG3 object.
-----------------------------------------------------------------------------*/                     
#define PIDREG3_DEFAULTS { 0, \
                           0, \
                           0, \
                           56, \
                           0, \
                           0, \
                           0, \
                           0, \
                           1, \
                           -1, \
                           0, \
                           0, \
                           0.02, \
                           0.5, \
                           1.05, \
                           0, \
              			  (void (*)(Uint32))pid_reg3_calc }

/*------------------------------------------------------------------------------
Prototypes for the functions in PIDREG3.C
------------------------------------------------------------------------------*/
void pid_reg3_calc(PIDREG3_handle);

⌨️ 快捷键说明

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