📄 derive.h
字号:
/* =================================================================================
File name: DERIVE_TIME.H (IQ version)
Originator: Power Electronics and Motor Control lab of TSinghua University
Timegroup Co.
Description:
Header file containing constants, data type definitions, and
function prototypes for the DERIVE module.
=====================================================================================
History:
-------------------------------------------------------------------------------------
12-05-2003 Release Rev 1.0
------------------------------------------------------------------------------*/
typedef struct { _iq base_r; /* Input:Base resistence */
_iq base_l; /* Input:Base inductance */
_iq base_time; /* Input:Base time */
_iq base_current; /* Input:Base current */
_iq28 base_inertia; /* Input:Base inertia */
_iq22 base_voltage; /* Input:Base voltage */
_iq22 base_w; /* Input:Base angular frequency */
_iq base_torque; /* Input:Base torque */
_iq base_flux; /* Input:Base flux */
_iq Rr; /* Input:Rotor resistance (ohm) */
_iq Rs; /* Input:Stator resistance (ohm) */
_iq Lm; /* Input:Flux inductance (H) */
_iq Lr; /* Input:Rotor inductance (H) */
_iq Ls; /* Input:Stator inductance (H) */
_iq Tc; /* Input:Samping period (sec) */
_iq Inertia; /* Input:Inertia (V*A*S^3) */
_iq22 Wc_wr; /* Input:Cut-off frequency for speed loop filter (rad/s) */
_iq18 Wc_cur; /* Input:Cut-off frequency for current loop filter (rad/s) */
_iq22 Wc_flux; /* Input:Cut-off frequency for current loop filter (rad/s) */
_iq Wc_offset; /* Input:Cut-off frequency for rotor opposing electromotive force filter (rad/s) */
_iq Wc_syn; /* Input:Cut-off frequency for dq current of stator */
_iq Flux_max; /* Input:Max value of flux output */
_iq22 Voltage_max;/* Input:Max value of voltage output */
_iq I_max; /* Input:Max value of current output */
_iq Torque_max; /* Input:Max value of torque output */
_iq Rs_max; /* Input:Max value of stator resistance estimation */
_iq Rr_max; /* Input:Max value of rotor resistance estimation */
_iq Flux_ref; /* Input:Reference rotor flux */
_iq18 Speed_ref; /* Input:Reference rotor electronic angular speed */
_iq rr; /* Output:Rotor resistance (PU) */
_iq rs; /* Output:Stator resistance (PU) */
_iq lm; /* Output:Flux inductance (PU) */
_iq lr; /* Output:Rotor inductance (PU) */
_iq ls; /* Output:Stator inductance (PU) */
_iq LrbyLm; /* Output:lr divided by lm (PU) */
_iq Lsig; /* Output:Ls * [ 1 - Lm^2 / ( Ls * Lr ) ] (PU) */
_iq Tr; /* Output:Lr / Rr (PU) */
_iq Tr_invt; /* Output:Rr / Tr (PU) */
_iq Lmbylr; /* Output:lm divided by lr (PU) */
_iq tc; /* Output:Samping period (PU) */
_iq base_current_inv; /* Output:Invertion of base_current */
_iq base_voltage_inv; /* Output:Invertion of base_voltage */
_iq wc_wr; /* Output:Cut-off frequency for speed loop filter (PU) */
_iq wc_cur; /* Output:Cut-off frequency for current loop filter (PU) */
_iq wc_flux; /* Output:Cut-off frequency for current loop filter (PU) */
_iq wc_offset; /* Output:Cut-off frequency for rotor opposing electromotive force filter (PU) */
_iq wc_syn; /* Output:Cut-off frequency for dq current of stator */
_iq20 inertia; /* Output:Inertia (PU) */
_iq flux_max; /* Output:Max value of flux output (PU) */
_iq voltage_max;/* Output:Max value of voltage output (PU) */
_iq i_max; /* Output:Max value of current output (PU) */
_iq torque_max; /* Output:Max value of torque output (PU) */
_iq rs_max; /* Output:Max value of stator resistance estimation (PU) */
_iq rr_max; /* Output:Max value of rotor resistance estimation (PU) */
_iq flux_ref; /* Output:Reference rotor flux (PU) */
_iq speed_ref; /* Output:Reference rotor electronic angular speed */
_iq lyh_scope1;
_iq lyh_scope2;
void (*calc)(); /* Po_iqer to calculation function */
} DERIVE;
typedef DERIVE *DERIVE_handle;
/*-----------------------------------------------------------------------------
Default initalizer for the RMPCNTL object.
-----------------------------------------------------------------------------*/
#define DERIVE_DEFAULTS { 0,0,0,0,0,0,0,0, \
0,0,0,0,0,0,0,0, \
0,0,0,0,0,0,0,0, \
0,0,0,0,0,0,0,0, \
0,0,0,0,0,0,0,0, \
0,0,0,0,0,0,0,0, \
0,0,0,0,0,0,0,0, \
0,0,\
(void (*)(long))derive_calc }
/*------------------------------------------------------------------------------
Prototypes for the functions in RMP_CNTL.C
------------------------------------------------------------------------------*/
void derive_calc(DERIVE_handle);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -