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

📄 pid_reg3.h

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

Description: 
Header file containing constants, data type definitions, and 
function prototypes for the PIDREG3.
=====================================================================================
 History:
-------------------------------------------------------------------------------------
 05-15-2002		Release	Rev 1.0                                                   
------------------------------------------------------------------------------*/

typedef struct {  _iq  pid_ref_reg3;   	/* Input: Reference input  */
				  _iq  pid_fdb_reg3;   	/* Input: Feedback input  */
				  _iq  e_reg3;			/* Variable: Error    */
				  _iq  Kp_reg3;			/* Parameter: Proportional gain  */
				  _iq  up_reg3;			/* Variable: Proportional output  */
				  _iq  ui_reg3;			/* Variable: Integral output    */
				  _iq  ud_reg3;			/* Variable: Derivative output    */	
				  _iq  uprsat_reg3; 	/* Variable: Pre-saturated output  */
				  _iq  pid_out_max;		/* Parameter: Maximum output    */
				  _iq  pid_out_min;		/* Parameter: Minimum output    */
				  _iq  pid_out_reg3;   	/* Output: PID output    */
				  _iq  saterr_reg3;		/* Variable: Saturated difference */
				  _iq  Ki_reg3;			/* Parameter: Integral gain   */
				  _iq  Kc_reg3;			/* Parameter: Integral correction gain  */
				  _iq  Kd_reg3; 		/* Parameter: Derivative gain   */
				  _iq  up1_reg3;		/* 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, \
                           _IQ(1.3), \
                           0, \
                           0, \
                           0, \
                           0, \
                           _IQ(1), \
                           _IQ(-1), \
                           0, \
                           0, \
                           _IQ(0.02), \
                           _IQ(0.5), \
                           _IQ(1.05), \
                           0, \
              			  (void (*)(long))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 + -