From: kyz Date: Mon, 9 Feb 2026 01:50:28 +0000 (+0800) Subject: v3.3 工作记录保存时,实际扭矩值记录范围为目标扭矩的为正负%5 X-Git-Url: http://kyz.pub/gitweb/?a=commitdiff_plain;h=c622d36fd33a883fd3243141b7d30654b8d9ffb1;p=yn%2Fcdbs.git v3.3 工作记录保存时,实际扭矩值记录范围为目标扭矩的为正负%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/API/lcdshow.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/API/lcdshow.c" index f29a27a..bb13506 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/API/lcdshow.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/API/lcdshow.c" @@ -3,7 +3,7 @@ #include "lcdfont.h" #include "delay.h" -char Version[] = "V3.2"; //ÆÁÄ»ÏÔʾÈí¼þ°æ±¾ +char Version[] = "V3.3"; //ÆÁÄ»ÏÔʾÈí¼þ°æ±¾ //1.54´çTFTÆÁ240*240 /****************************************************************************** º¯Êý˵Ã÷£ºÔÚÖ¸¶¨ÇøÓòÌî³äÑÕÉ« 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 f584e08..32195b3 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" @@ -216,6 +216,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;//Çå¿Õ }