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.

TMS320F28335: 28335

Part Number: TMS320F28335
Other Parts Discussed in Thread: CONTROLSUITE

这是TI官方电机控制的一份求解转速代码,其中这个if  else 语句什么意思啊,有什么作用?

if (v.Tmp < -_IQ(0.5)) \
v.Tmp = v.Tmp + _IQ(1.0); \
else if (v.Tmp > _IQ(0.5)) \
v.Tmp = v.Tmp - _IQ(1.0);

程序位于D:\controlSUITE\development_kits\HVMotorCtrl+PfcKit_v2.1\HVPM_Sensorless_2833x       文件名称speed_fr.h