1.关于SVGEN的疑问
在HVPM_Sensored和HVPM_Sensored_Servo例程中,SVPWM单元的定义如下
// Instance a Space Vector PWM modulator. This modulator generates a, b and c
// phases based on the d and q stationery reference frame inputs
SVGEN svgen1 = SVGEN_DEFAULTS;
但是在DMC MATH_v13.1,并没有SVGEN的定义,这份手册的SVGEN部分定义的结构体名字是SVGENDQ,
而D:\ti\controlSUITE\libs\app_libs\motor_control\math_blocks\v4.3中的svgen.h的例程中定义的SVGEN结构体如下
typedef struct { _iq Ualpha; // Input: reference alpha-axis phase voltage _iq Ubeta; // Input: reference beta-axis phase voltage _iq Ta; // Output: reference phase-a switching function _iq Tb; // Output: reference phase-b switching function _iq Tc; // Output: reference phase-c switching function
_iq tmp1; // Variable: temp variable
_iq tmp2; // Variable: temp variable
_iq tmp3; // Variable: temp variable
Uint16 VecSector; // Space vector sector
} SVGEN;
看代码中调用的是这个头文件
为什么会出现这样的问题呢,是手册没有及时更新吗?
2.关于park和ipark的疑问
在D:\ti\controlSUITE\libs\app_libs\motor_control\math_blocks\v4.3的park.h和ipark.h中有如下定义:
typedef struct { _iq Alpha; // Input: stationary d-axis stator variable
_iq Beta;// Input: stationary q-axis stator variable
_iq Angle; // Input: rotating angle (pu)
_iq Ds; // Output: rotating d-axis stator variable
_iq Qs; // Output: rotating q-axis stator variable
_iq Sine;
_iq Cosine;
} PARK;
typedef struct { _iq Alpha; // Output: stationary d-axis stator variable _iq Beta; // Output: stationary q-axis stator variable_iq Angle; // Input: rotating angle (pu) _iq Ds; // Input: rotating d-axis stator variable _iq Qs; // Input: rotating q-axis stator variable _iq Sine; // Input: Sine term _iq Cosine; // Input: Cosine term } IPARK;
可以看到,两个结构体中都有Angle的定义,但是在DMC MATH_v13.1手册中定义的park、ipark都没有Angle的定义 这是为什么呢?
typedef struct { _iq Ualpha; // Input: reference alpha-axis phase voltage _iq Ubeta; // Input: reference beta-axis phase voltage _iq Ta; // Output: reference phase-a switching function _iq Tb; // Output: reference phase-b switching function _iq Tc; // Output: reference phase-c switching function _iq tmp1; // Variable: temp variable _iq tmp2; // Variable: temp variable _iq tmp3; // Variable: temp variable Uint16 VecSector; // Space vector sector } SVGEN;
user5283999:您好,请问您能解释一下HVPM_Sensorless程序中SVPWM(SVGENDQ_MACRO(v))这一段程序吗?自己看了好久没有看懂,感觉跟理论对不上,跳跃性太强了,麻烦解释一下,谢谢!!