This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

单电流环矢量控制斜坡升速

Other Parts Discussed in Thread: CONTROLSUITE

各位老师好,我在用controlSUITE中的矢量控制程序。在测试单电流环矢量控制时,需要用到斜坡升速模块,请问参数StepAngleMax为什么这么计算呢?下图为StepAngleMax的计算公式。

斜坡升速信号产生模块的程序如下:

#define RG_MACRO(v) \
\
/* Compute the angle rate */ \
v.Angle += _IQmpy(v.StepAngleMax,v.Freq); \
\
/* Saturate the angle rate within (-1,1) */ \
if (v.Angle>_IQ(1.0)) \
v.Angle -= _IQ(1.0); \
else if (v.Angle<_IQ(-1.0)) \
v.Angle += _IQ(1.0); \
\
/* Compute the ramp output */ \
v.Out = _IQmpy(v.Angle,v.Gain) + v.Offset; \
/* Saturate the ramp output within (-1,1) */ \
if (v.Out>_IQ(1.0)) \
v.Out -= _IQ(1.0); \
else if (v.Out<_IQ(-1.0)) \
v.Out += _IQ(1.0);

#endif // __RAMPGEN_H__