From deaf64d1051da98f6f97705d3e9e631891a0a730 Mon Sep 17 00:00:00 2001 From: kyz Date: Wed, 29 Apr 2026 10:11:53 +0800 Subject: [PATCH] =?utf8?q?=E6=89=B3=E6=89=8B=E5=81=9C=E6=AD=A2=E9=98=88?= =?utf8?q?=E5=80=BC90%?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- QiDong/System/WrenchManage.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/QiDong/System/WrenchManage.c b/QiDong/System/WrenchManage.c index 1aee686..b82ae60 100644 --- a/QiDong/System/WrenchManage.c +++ b/QiDong/System/WrenchManage.c @@ -30,7 +30,7 @@ static uint8_t machine_step = 0; float start_compareFac = 0.90; //Æô¶¯¼ì²âãÐÖµºÍÄ¿±êãÐÖµµÄ°Ù·Ö±È //°´¿Í»§ÒªÇó£¬ÌṩֹͣãÐֵΪĿ±êѹÁ¦µÄ80%ºÍ90% Á½ÖÖ°æ±¾£¬2026/3/4 -float finish_compareFac = 0.90 //Í£Ö¹ãÐÖµ +const float finish_compareFac = 0.90 //Í£Ö¹ãÐÖµ ; //Íê³É¼ì²âãÐÖµºÍÄ¿±êãÐÖµµÄ°Ù·Ö±È float temppress = 0 ; @@ -199,7 +199,7 @@ static void Machine_DoPress(void) //״̬ if(qiya < pressure_start_threshold(temppress) && SleepState == 1 && Adjusting_torque_flag == 1) //°âÊÖ°´Ï ÕâÀïÈç¹ûÏÖ³¡ÆøÑ¹Ò»Ö±±È½ÏµÍ£¬ÉèÖõÄѹÁ¦Èç¹û¸ß ¾ÍûÓа취¼ì²âµ½°âÊÖ°´ÏµÄ״̬ { turn_flag = 1; - //if(wrench_device.rotate_start_count++ >= (ROTATE_START_NUM_5MS)/2) + if(wrench_device.rotate_start_count++ >= (ROTATE_START_NUM_5MS)/2) { LED_SetLedStatus(LED_ID_DETECT_WORK,1); //LED¼ì²â¹¤×÷״̬µÆÁÁ Beep_SetbeepStatus(BEEP_ID_DETECT_WORK,1); //·äÃùÆ÷¼ì²â¹¤×÷״̬Ïì @@ -228,7 +228,7 @@ static void Machine_DoPress(void) //״̬ { //ÒÔϼÆÊýROTATE_STOP_NUM_5MS ËÆºõ²»Õý³££¬ÒòÎªÇ°Ãæ»¹Óиö¼ÆÊýÆ÷MS_COUNT_200 //Á½¸ö¼ÆÊýÆ÷Ïà³Ë¾ÍÊÇ 40*100 *5ms¾ÍÓÐ20ÃëÁË ÕâÀïÔÝÖ±½Ó¸Ä³É2£¬ 2025/12/30 - if(wrench_device.rotate_stop_count ++> 2 /*ROTATE_STOP_NUM_5MS*/) //Èç¹û¼ÆÊý³¬¹ý2,¼´Á¬ÐøÈý´Î¶¼´ïµ½Óû§É趨ѹÁ¦µÄ90%±íʾ³É¹¦ + if(wrench_device.rotate_stop_count ++> (2*5) /*ROTATE_STOP_NUM_5MS*/) //Èç¹û¼ÆÊý³¬¹ý2,¼´Á¬ÐøÈý´Î¶¼´ïµ½Óû§É趨ѹÁ¦µÄ90%±íʾ³É¹¦ { wrench_device.rotate_stop_count = 0; //ÇåÁã //Flash_RecordData(); @@ -613,7 +613,7 @@ void WrenchManage_MainTask(void) //״̬ else if( target_pressure >0.0 ) finish_compareFac = 0.90; //2BarÒÔϰ´%90¼ì²â #else - finish_compareFac = 0.80; //2BarÒÔϰ´%90¼ì²â + // finish_compareFac = 0.80; //2BarÒÔϰ´%90¼ì²â #endif //ret = WrenchMode_Select(ModifyVarStructVar.WorkMode); //ģʽѡÔñ -- 2.34.1