From: kyz Date: Fri, 16 Jan 2026 03:38:40 +0000 (+0800) Subject: 修改扳手状态侦测状态机,去掉等待气压恢复状态 X-Git-Url: http://kyz.pub/gitweb/?a=commitdiff_plain;h=85ea84ac896d26889a7d587cc0c37b7218546217;p=yn%2Fyn-qdbs.git 修改扳手状态侦测状态机,去掉等待气压恢复状态 --- diff --git a/QiDong/System/WrenchManage.c b/QiDong/System/WrenchManage.c index 8a53885..a09ac4e 100644 --- a/QiDong/System/WrenchManage.c +++ b/QiDong/System/WrenchManage.c @@ -207,9 +207,14 @@ static void Machine_DoPress(void) //״̬ switch(machine_step) { case 0: //״̬0£¬ÆøÑ¹µÍµÈ´ýÆøÑ¹»Ö¸´Õý³£×´Ì¬ +#if 1 + //¿Í»§·´À¡²»ÐèÒªµÈ´ý»Ö¸´£¬Èç¹ûÆøÑ¹µÍ¾ÍÊÇһֱѭ»·´ò 2026/1/16 + Matchine_SetMachine(1); +#else if( qiya > temppress * compareFac ){ Matchine_SetMachine(1); } +#endif break; case 1: if(qiya < (temppress) * compareFac && SleepState == 1 && niujupress == 0 && Adjusting_torque_flag == 1) //°âÊÖ°´Ï ÕâÀïÈç¹ûÏÖ³¡ÆøÑ¹Ò»Ö±±È½ÏµÍ£¬ÉèÖõÄѹÁ¦Èç¹û¸ß ¾ÍûÓа취¼ì²âµ½°âÊÖ°´ÏµÄ״̬