From: kyz Date: Thu, 22 Jan 2026 09:24:47 +0000 (+0800) Subject: 修复拧紧完成时未正常关闭压力阀问题 X-Git-Url: http://kyz.pub/gitweb/?a=commitdiff_plain;h=6d1a6bbceb3e3374092d5ccb091d5cb043cef7a7;p=yn%2Fyn-qdbs.git 修复拧紧完成时未正常关闭压力阀问题 --- diff --git a/QiDong/System/WrenchManage.c b/QiDong/System/WrenchManage.c index 6368282..bf0728e 100644 --- a/QiDong/System/WrenchManage.c +++ b/QiDong/System/WrenchManage.c @@ -573,9 +573,12 @@ void WrenchManage_MainTask(void) //״̬ }else{ target_pressure = 0; } - temppress = target_pressure; - output_duty = getOutDutyData_from_pressure(target_pressure); + if( machine_step >= 3 && machine_step <=5){ + output_duty = 0; + }else{ + output_duty = getOutDutyData_from_pressure(target_pressure); + } if( TIM_GetCapture2(TIM4) != output_duty){ TIM_SetCompare2(TIM4, output_duty); }