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.

InstaSPIN中的最大电压矢量问题【续】

Other Parts Discussed in Thread: MOTORWARE

motorware最新版将最大电压矢量的取值改成了之前版本的一半,即由4/3、2/sqrt(3)、1改为了2/3、1/sqrt(3)、0.5,但是程序中以下部分未更改,请问这是什么原因?

1、

//! \brief Gets the maximum voltage vector
//! \param[in] handle The controller (CTRL) handle
//! \return The maximum voltage vector (value betwen 0 and 4/3)
inline _iq CTRL_getMaxVsMag_pu(CTRL_Handle handle)
{
CTRL_Obj *obj = (CTRL_Obj *)handle;

return(obj->maxVsMag_pu);
} // end of CTRL_getMaxVsMag_pu() function

2、

//! \brief Sets the maximum voltage vector in the controller
//! \param[in] handle The controller (CTRL) handle
//! \param[in] maxVsMag The maximum voltage vector (value betwen 0 and 4/3)
inline void CTRL_setMaxVsMag_pu(CTRL_Handle handle,const _iq maxVsMag)
{
CTRL_Obj *obj = (CTRL_Obj *)handle;

obj->maxVsMag_pu = maxVsMag;

return;
} // end of CTRL_setmaxVsMag_pu() function

3、

//! \brief Sets the maximum modulation in the space vector generator module
//! \param[in] handle The space vector generator (SVGEN) handle
//! \param[in] maxModulation The maximum modulation
static inline void SVGEN_setMaxModulation(SVGEN_Handle handle,const _iq maxModulation)
{
SVGEN_Obj *obj = (SVGEN_Obj *)handle;
_iq maxMod = maxModulation;

if(maxMod > SVGEN_4_OVER_3)
maxMod = SVGEN_4_OVER_3;
else if(maxMod < _IQ(0.0))
maxMod = _IQ(0.0);

obj->maxModulation = maxMod;

return;
} // end of SVGEN_setMaxModulation() function