📄 cur_mod.h
字号:
/* =================================================================================
File name: CUR_MOD.H
Originator: Digital Control Systems Group
Texas Instruments
Description:
Header file containing constants, data type definitions, and
function prototypes for the CUR_MOD_CALC module.
Note that theta_cur_mod = (0,7FFFh) => (0,360 degree)
=====================================================================================
History:
-------------------------------------------------------------------------------------
02-15-2001 Release Rev 1.0
------------------------------------------------------------------------------*/
#ifndef __CUR_MOD_H__
#define __CUR_MOD_H__
typedef struct { int i_cur_mod_D; /* Input: Syn. Rotating d-axis stator current (Q15) */
int i_cur_mod_Q; /* Input: Syn. Rotating q-axis stator current (Q15) */
int spd_cur_mod; /* Input: Rotor speed (Q15) */
int i_mr; /* Variable: Magnetizing current (Q12) */
int Kr; /* Parameter: Constant (Q15) */
int Kt; /* Parameter: Constant (Q12) */
int fs; /* Variable: Rotor flux electrical speed (Q12) */
int K; /* Parameter: Constant (Q0) */
int Teta_cm; /* Variable: Rotor flux position (Q0) */
int theta_cur_mod; /* Output: Rotor flux position (Q15) */
int (*calc)(); /* Pointer to calculation function */
} CURMOD;
/*-----------------------------------------------------------------------------
Default initalizer for the CURMOD object.
-----------------------------------------------------------------------------*/
/* 1-Hp WEG motor (based on 15kHz sampling frequency) */
#define CURMOD_DEFAULTS { 0x0000, \
0x0000, \
0x0000, \
0x0000, \
27, /* Parameter: Kr Constant (Q15) */ \
65, /* Parameter: Kt Constant (Q12) */ \
0x0000, \
525, /* Parameter: K Constant (Q0) */ \
0x0000, \
0x3FFF, \
(int (*)(int))cur_mod_calc }
/*------------------------------------------------------------------------------
Prototypes for the functions in CUR_MOD.ASM
------------------------------------------------------------------------------*/
void cur_mod_calc(CURMOD *);
#endif /* __CUR_MOD_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -