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

index 412446be6f4eaef0c141c68d06720c0428a05d5a..b47a15e45f5b8c5671a73d9c0ccef2aabd905838 100644 (file)
@@ -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;//Çå¿Õ
 }