📄 vhz_ti.h
字号:
/* ==============================================================================
System Name: ACI3_1
File Name: VHZ_TI.H
Description: Header file for peripheral independent object for implementation of
Sensored Volt/Hertz control of a Three Phase AC Induction Motor.
Originator: Digital control systems Group - Texas Instruments
Target dependency: x240/1/2/3/07
To Select the target device see target.h file.
=====================================================================================
History:
-------------------------------------------------------------------------------------
9-15-2000 Release Rev 1.0
================================================================================= */
#ifndef __VHZ_TI_H__
#define __VHZ_TI_H__
#include <Vhzprof.h>
#include <svgen.h>
#include <pid.h>
#ifndef TRUE
#define FALSE 0
#define TRUE 1
#endif
/*------------------------------------------------------------------------------
Define the structure of the VHZ Object. This object has all the data necessary
for one instance of a VHZ_TI algorithm.
------------------------------------------------------------------------------*/
typedef struct {
/*------------------------------------------------------------------------------
Declarations for the 'terminal variables' for the PMSM Algorithm. The framework
should communicate such quantities as setspeed etc to the algorithm by
modifying these terminal variables. It is not recommended that the framework
directly modify the internal varibles of the algorithm.
------------------------------------------------------------------------------*/
int speed_setpt;
int speed_value;
int direction;
int closed_loop_flag;
/*------------------------------------------------------------------------------
Declare one vhz profile.
------------------------------------------------------------------------------*/
VHZPROFILE vhzprof;
/*------------------------------------------------------------------------------
Declaration for the space vector generation module. The defaults are set in
SVGEN.H
------------------------------------------------------------------------------*/
SVGENMF svgen;
/*------------------------------------------------------------------------------
Declaration for the PID controller object. The defaults are set in
PID.H
------------------------------------------------------------------------------*/
PID pid;
} VHZ_TI ;
typedef VHZ_TI *VHZ_TI_handle;
#define DEFAULT_SPEED_SETPT 1800
#define DEFAULT_SPEED_VALUE 0
#define DEFAULT_DIRECTION 0
#define VHZ_TI_INITVALS \
{ \
DEFAULT_SPEED_SETPT, \
DEFAULT_SPEED_VALUE, \
DEFAULT_DIRECTION, \
FALSE, \
DEFAULT_PROFILE, \
SVGENMF_DEFAULTS, \
PID_DEFAULTS \
}
/*------------------------------------------------------------------------------
Prototypes for functions implemented in VHZ_TI.C
------------------------------------------------------------------------------*/
void VHZ_TI_Init(VHZ_TI_handle);
void VHZ_TI_Run(VHZ_TI_handle);
#endif /* __VHZ_TI_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -