📄 aci_fe.h
字号:
/* =================================================================================
File name: ACI_FE.H
Originator: Digital Control Systems Group
Texas Instruments
Description:
Header file containing constants, data type definitions, and
function prototypes for the ACI_FE_CALC module.
Note:
0000h < theta_r_fe < 7FFFh (i.e. equivalent to 0 < theta_r_fe < 360 deg)
=====================================================================================
History:
-------------------------------------------------------------------------------------
02-08-2001 Release Rev 1.0
------------------------------------------------------------------------------*/
#ifndef __ACI_FE_H__
#define __ACI_FE_H__
typedef struct { int theta_r_fe; /* Output: Rotor flux angle (Q15) */
int i_qs_fe; /* Input: Stationary q-axis stator current (Q15) */
int i_ds_fe; /* Input: Stationary d-axis stator current (Q15) */
int K1_fe; /* Parameter: Constant using in current model (Q15) */
int flx_dr_e; /* Variable: Rotating d-axis rotor flux (current model) (Q15) */
int K2_fe; /* Parameter: Constant using in current model (Q15) */
int flx_qr_s; /* Variable: Stationary q-axis rotor flux (current model) (Q15) */
int flx_dr_s; /* Variable: Stationary d-axis rotor flux (current model) (Q15) */
int K3_fe; /* Parameter: Constant using in stator flux computation (Q15) */
int K4_fe; /* Parameter: Constant using in stator flux computation (Q15) */
int flx_ds_s; /* Variable: Stationary d-axis stator flux (current model) (Q15) */
int flx_qs_s; /* Variable: Stationary q-axis stator flux (current model) (Q15) */
int psi_ds_fe; /* Variable: Stationary d-axis stator flux (voltage model) (Q31) */
int Kp_fe; /* Parameter: PI proportionnal gain (Q15) */
int ui_lo_ds; /* Variable: Stationary d-axis integral term (Q30) */
int ui_hi_ds; /* Variable: Stationary d-axis integral term (Q30) */
int ucomp_ds; /* Variable: Stationary d-axis compensated voltage (Q15) */
int Ki_fe; /* Parameter: PI integral gain (Q31-16bit) */
int psi_qs_fe; /* Variable: Stationary q-axis stator flux (voltage model) (Q31) */
int ui_lo_qs; /* Variable: Stationary q-axis integral term (Q30) */
int ui_hi_qs; /* Variable: Stationary q-axis integral term (Q30) */
int ucomp_qs; /* Variable: Stationary q-axis compensated voltage (Q15) */
int emf_ds; /* Variable: Stationary d-axis back emf (Q15) */
int u_ds_fe; /* Input: Stationary d-axis stator voltage (Q15) */
int K5_fe; /* Parameter: Constant using in back emf computation (Q15) */
int K6_fe; /* Parameter: Constant using in back emf computation (Q15) */
int psi_ds_lo; /* Variable: Stationary d-axis stator flux (voltage model) (Q31) */
int emf_qs; /* Variable: Stationary q-axis back emf (Q15) */
int u_qs_fe; /* Input: Stationary q-axis stator voltage (Q15) */
int psi_qs_lo; /* Variable: Stationary q-axis stator flux (voltage model) (Q31) */
int K8_fe; /* Parameter: Constant using in rotor flux computation (Q15) */
int K7_fe; /* Parameter: Constant using in rotor flux computation (Q14) */
int psi_dr_fe; /* Output: Stationary d-axis estimated rotor flux (Q15) */
int psi_qr_fe; /* Output: Stationary q-axis estimated rotor flux (Q15) */
int (*calc)(); /* Pointer to calculation function */
} ACIFE;
/*-----------------------------------------------------------------------------
Default initalizer for the ACIFE object.
-----------------------------------------------------------------------------*/
/* 1/4-HP Dayton motor */
#define ACIFE_DEFAULTS { 0x0000, \
0x0000, \
0x0000, \
32729, /* K1_fe (Q15) */ \
0x0000, \
39, /* K2_fe (Q15) */ \
0x0000, \
0x0000, \
31203, /* K3_fe (Q15) */ \
3209, /* K4_fe (Q15) */ \
0x0000, \
0x0000, \
0x0000, \
0x1000, /* Kp_fe (Q15) */ \
0x0000, \
0x0000, \
0x0000, \
0x0B00, /* Ki_fe (Q31-16bit) */ \
0x0000, \
0x0000, \
0x0000, \
0x0000, \
0x0000, \
0x0000, \
11626, /* K5_fe (Q15) */ \
228, /* K6_fe (Q15) */ \
0x0000, \
0x0000, \
0x0000, \
0x0000, \
3370, /* K8_fe (Q15) */ \
17206, /* K7_fe (Q14) */ \
0x0000, \
0x0000, \
(int (*)(int))aci_fe_calc }
/*------------------------------------------------------------------------------
Prototypes for the functions in ACI_FE.ASM
------------------------------------------------------------------------------*/
void aci_fe_calc(ACIFE *);
#endif /* __ACI_FE_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -