Bladeren bron

optimize code

Chenyingjia 2 jaren geleden
bovenliggende
commit
84d7664553
1 gewijzigde bestanden met toevoegingen van 23 en 11 verwijderingen
  1. 23 11
      hal/hal_battery/hal_battery_NoPowerEnPin.c

+ 23 - 11
hal/hal_battery/hal_battery_NoPowerEnPin.c

@@ -123,17 +123,29 @@ static float interp1(float x)
 
 #else
 
-#define BAT_100_P 408.5f
-#define BAT_90_P 402.6f
-#define BAT_80_P 393.4f
-#define BAT_70_P 388.0f
-#define BAT_60_P 382.0f
-#define BAT_50_P 372.0f
-#define BAT_40_P 365.0f
-#define BAT_30_P 361.0f
-#define BAT_20_P 354.0f
-#define BAT_10_P 345.0f
-#define BAT_0_P  320.0f
+#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
+//#define BAT_80_P 393.4f
+//#define BAT_70_P 388.0f
+//#define BAT_60_P 382.0f
+//#define BAT_50_P 372.0f
+//#define BAT_40_P 365.0f
+//#define BAT_30_P 361.0f
+//#define BAT_20_P 354.0f
+//#define BAT_10_P 345.0f
+//#define BAT_0_P  320.0f
 
 #define CHA_100_P 415.0f //408
 #define CHA_90_P 412.0f //402