From: kyz Date: Mon, 9 Feb 2026 01:50:28 +0000 (+0800) Subject: 工作记录保存时,实际扭矩值记录范围为目标扭矩的为正负%5 X-Git-Url: http://kyz.pub/gitweb/?a=commitdiff_plain;h=d8282afbefd2fa831a919df0c29a8bf3e0336de0;p=yn%2Fcdbs.git 工作记录保存时,实际扭矩值记录范围为目标扭矩的为正负%5 --- diff --git "a/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/datastore.c" "b/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/datastore.c" index 412446b..b47a15e 100644 --- "a/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/datastore.c" +++ "b/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/datastore.c" @@ -201,6 +201,18 @@ void Data_Record_Storage(u32 Count) } break; } + +#if 1 + //¿Í»§ÐèÇ󣬼ǼÊý¾ÝÖб£´æµÄʵ¼ÊŤ¾ØÖµ°´Ä¿±êÖµÕý¸º%5%·¶Î§±£´æ¡£ + if( SetData.mode == 1 || SetData.mode == 2 || SetData.mode == 4 || SetData.mode == 7){ + if( RecordData.ActualValue < (RecordData.TargetValue * 0.95) ){ + RecordData.ActualValue = RecordData.TargetValue * 0.95; + }else if( RecordData.ActualValue > (RecordData.TargetValue * 1.05) ){ + RecordData.ActualValue = RecordData.TargetValue * 1.05; + } + } +#endif + TwistingForce = 0;//Çå¿Õ }