From 98cd741c888fc9dc4f9f3392b374c6dbcc8c87b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Izzo?= Date: Fri, 18 Dec 2020 17:46:04 +0100 Subject: [PATCH] Adjust voltage thresholds --- openrtx/src/battery.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openrtx/src/battery.c b/openrtx/src/battery.c index 65664a60..8cbf5a73 100644 --- a/openrtx/src/battery.c +++ b/openrtx/src/battery.c @@ -22,19 +22,19 @@ #include /* This array acts as a lookup table for converting Li-Po voltage into - * charge percentage, elements range from 0% to 100% (included) with 5% steps. + * charge percentage, elements range from 5% to 95% (included) with 5% steps. * Data is taken from (https://blog.ampow.com/lipo-voltage-chart/). */ #define V_LUT_STEPS 21 #if defined BAT_LIPO_1S float bat_v_min = 3.61f; -float bat_v_max = 4.20f; +float bat_v_max = 4.15f; #elif defined BAT_LIPO_2S float bat_v_min = 7.22f; -float bat_v_max = 8.40f; +float bat_v_max = 8.30f; #elif defined BAT_LIPO_3S float bat_v_min = 10.83; -float bat_v_max = 12.60; +float bat_v_max = 12.45; #else #error Please define a battery type into platform/targets/.../hwconfig.h #endif