📄 aci_se.h
字号:
/* =================================================================================
File name: ACI_SE.H
Originator: Digital Control Systems Group
Texas Instruments
Description:
Header file containing constants, data type definitions, and
function prototypes for the ACI_SE_CALC module.
=====================================================================================
History:
-------------------------------------------------------------------------------------
02-08-2001 Release Rev 1.0
------------------------------------------------------------------------------*/
#ifndef __ACI_SE_H__
#define __ACI_SE_H__
typedef struct { int i_qs_se; /* Input: Stationary q-axis stator current (Q15) */
int psi_dr_se; /* Input: Stationary d-axis rotor flux (Q15) */
int i_ds_se; /* Input: Stationary d-axis stator current (Q15) */
int psi_qr_se; /* Input: Stationary q-axis rotor flux (Q15) */
int K1_se; /* Parameter: Constant using in speed computation (Q15) */
int psi_r_2; /* Variable: Squared rotor flux (Q15) */
int theta_r_se; /* Input: Rotor flux angle (Q15) */
int K2_se; /* Parameter: Constant using in differentiator (Q6) */
int theta_r_old; /* Variable: Previous rotor flux angle (Q15) */
int K3_se; /* Parameter: Constant using in low-pass filter (Q15) */
int wr_psi_r; /* Variable: Synchronous rotor flux speed in per-unit (Q15) */
int K4_se; /* Parameter: Constant using in low-pass filter (Q15) */
int wr_hat_se; /* Output: Estimated speed in per unit (Q15) */
int base_rpm_se; /* Parameter: Base rpm speed (Q0) */
int wr_hat_rpm_se; /* Output: Estimated speed in rpm (Q0) */
int (*calc)(); /* Pointer to calculation function */
} ACISE;
/*-----------------------------------------------------------------------------
Default initalizer for the ACISE object.
-----------------------------------------------------------------------------*/
/* 1-HP WEG motor */
/*
#define ACISE_DEFAULTS { 0x0000, \
0x0000, \
0x0000, \
0x0000, \
517, \
0x0000, \
0x0000, \
10667, \
0x0000, \
30831, \
0x0000, \
1937, \
0x0000, \
3600, \
0x0000, \
(int (*)(int))aci_se_calc }
*/
/* 1/4-HP Dayton motor */
#define ACISE_DEFAULTS { 0x0000, \
0x0000, \
0x0000, \
0x0000, \
779, \
0x0000, \
0x0000, \
8000, \
0x0000, \
30235, \
0x0000, \
2533, \
0x0000, \
3600, \
0x0000, \
(int (*)(int))aci_se_calc }
/*------------------------------------------------------------------------------
Prototypes for the functions in ACI_SE.ASM
------------------------------------------------------------------------------*/
void aci_se_calc(ACISE *);
#endif /* __ACI_SE_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -