浏览代码

optimize code

Chenyingjia 2 年之前
父节点
当前提交
bd317b4075
共有 1 个文件被更改,包括 24 次插入11 次删除
  1. 24 11
      hal/hal_battery/hal_battery_NoPowerEnPin.c

+ 24 - 11
hal/hal_battery/hal_battery_NoPowerEnPin.c

@@ -123,17 +123,30 @@ static float interp1(float x)
 
 #else
 
-#define BAT_100_P 	405.533003f
-#define BAT_90_P 	400.213597f
-#define BAT_80_P 	393.844613f
-#define BAT_70_P 	386.347668f
-#define BAT_60_P 	379.609008f
-#define BAT_50_P 	372.386100f
-#define BAT_40_P 	365.633721f
-#define BAT_30_P 	359.847035f
-#define BAT_20_P 	353.966445f
-#define BAT_10_P 	347.139688f
-#define BAT_0_P 	322.992736f
+
+#define BAT_100_P         401.073951f
+#define BAT_90_P         395.453010f
+#define BAT_80_P         389.242398f
+#define BAT_70_P         382.361362f
+#define BAT_60_P         376.311623f
+#define BAT_50_P         369.299206f
+#define BAT_40_P         363.746813f
+#define BAT_30_P         358.456566f
+#define BAT_20_P         353.006251f
+#define BAT_10_P         346.644176f
+#define BAT_0_P         322.992736f
+
+//#define BAT_100_P 	405.533003f
+//#define BAT_90_P 	400.213597f
+//#define BAT_80_P 	393.844613f
+//#define BAT_70_P 	386.347668f
+//#define BAT_60_P 	379.609008f
+//#define BAT_50_P 	372.386100f
+//#define BAT_40_P 	365.633721f
+//#define BAT_30_P 	359.847035f
+//#define BAT_20_P 	353.966445f
+//#define BAT_10_P 	347.139688f
+//#define BAT_0_P 	322.992736f
 
 //#define BAT_100_P 408.5f
 //#define BAT_90_P 402.6f