修复拧紧完成时未正常关闭压力阀问题
authorkyz <kongyuzhong@google.com>
Thu, 22 Jan 2026 09:24:47 +0000 (17:24 +0800)
committerkyz <kongyuzhong@google.com>
Thu, 22 Jan 2026 09:24:47 +0000 (17:24 +0800)
QiDong/System/WrenchManage.c

index 63682823b0b98de1343f4754086cf4bd97dcf50a..bf0728e126147396a9f3a0b99b614a8fa81eb455 100644 (file)
@@ -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);
        }