|
@@ -301,8 +301,16 @@ MC_CalParam_Struct_t MC_AssistRunMode_Gas_Process(uint16_t SensorData, MC_GearSt
|
|
|
TorQueBySpd = (int16_t)((int32_t)TorQueBySpd * Function_Linear_3Stage(MC_ConfigParam.TempTH_Alarm, 0, MC_ConfigParam.TempTH_Alarm, 26, MC_RunInfo.T_Roil) >> 10);
|
|
|
#endif
|
|
|
|
|
|
- //电机启动
|
|
|
- MC_MotorStar(&MC_StarFlag);
|
|
|
+ //速度环控制量为0时停机,防止电机出现异响
|
|
|
+ if(SpeedSetReal == 0)
|
|
|
+ {
|
|
|
+ MC_MotorStop(&MC_StarFlag);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ //电机启动
|
|
|
+ MC_MotorStar(&MC_StarFlag);
|
|
|
+ }
|
|
|
|
|
|
p_MC_CalParam.Ref_Speed = TorQueBySpd;
|
|
|
p_MC_CalParam.Foc_Flag = SET;
|