v3.3 工作记录保存时,实际扭矩值记录范围为目标扭矩的为正负%5
authorkyz <kongyuzhong@google.com>
Mon, 9 Feb 2026 01:50:28 +0000 (09:50 +0800)
committerkyz <kongyuzhong@google.com>
Mon, 9 Feb 2026 01:50:28 +0000 (09:50 +0800)
20240801完整版/扳手下位机软件/cpbs-202103-20240423/API/lcdshow.c
20240801完整版/扳手下位机软件/cpbs-202103-20240423/APP/datastore.c

index f29a27ad440ba5d502c804b1ac3ee456aa3768d5..bb13506eb3891be1bb307d533086629e19cf7310 100644 (file)
@@ -3,7 +3,7 @@
 #include "lcdfont.h"
 #include "delay.h"
 
-char Version[] = "V3.2";    //ÆÁÄ»ÏÔʾÈí¼þ°æ±¾
+char Version[] = "V3.3";    //ÆÁÄ»ÏÔʾÈí¼þ°æ±¾
 //1.54´çTFTÆÁ240*240
 /******************************************************************************
       º¯Êý˵Ã÷£ºÔÚÖ¸¶¨ÇøÓòÌî³äÑÕÉ«
index f584e088cfcc9ea1a83939338f5d96c8e7c1e3f8..32195b3c770a75d8f4a60b9d74d468ad75360941 100644 (file)
@@ -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;//Çå¿Õ
 }