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

📄 speed_fr.h

📁 TI 的DSP2407A的无速度传感器永磁同步电机FOC控制程序
💻 H
字号:
/* =================================================================================
File name:        SPEED_FR.H
                    
Originator:	Digital Control Systems Group
			Texas Instruments

Description: 
    Header file containing the data types, constants for the frequency based
    speed measurement function. Also contains the prototypes for the 
    functions implemented in SPEED_FR.ASM
=====================================================================================
 History:
-------------------------------------------------------------------------------------
 01-14-2002	Release	Rev 1.00                                                   
------------------------------------------------------------------------------*/

#ifndef __SPEED_FR_H__
#define __SPEED_FR_H__

typedef struct { int theta_elec;  /* Input: Electrical angle (Q15)  */
                 int K1_fr;       /* Parameter: Constant for differentiator (Q6) */
                 int theta_old;   /* History: Electrical angle at previous step (Q15)  */
                 int K2_fr;       /* Parameter: Constant for low-pass filter (Q15) */
                 int speed_frq;   /* Output: Speed in per-unit  (Q15) */
                 int K3_fr;       /* Parameter: Constant for low-pass filter (Q15) */
                 int rpm_max;     /* Parameter: Base speed in rpm (Q0) */
                 int speed_rpm;   /* Output : Speed in rpm  (Q0)  */
                 int (*calc)();   /* Pointer to the calulation function   */
                } SPEED_MEAS;     /* Data type created      */

/*-----------------------------------------------------------------------------
Default initalizer for the SPEED_MEAS object.
-----------------------------------------------------------------------------*/                     
#define SPEED_FR_MEAS_DEFAULTS   { 0x0000, /* theta_elec  */   \
                                   4800, /* K1_fr */    \
                                   0x0000, /* theta_old */    \
                                   32361, /* K2_fr */    \
                                   0x0000, /* speed_frq */      \
                                   407, /* K3_fr */      \
                                   6000, /* rpm_max */     \
                                   0x0000, /* speed_rpm */  \
                                   (int (*)(int))speed_frq }

/*------------------------------------------------------------------------------
Prototypes for the functions in SPEED_FR.ASM
------------------------------------------------------------------------------*/
void speed_frq(SPEED_MEAS *); 

#endif /*  __SPEED_FR_H__ */

⌨️ 快捷键说明

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