Browse Source

more low pass filtering for battery voltage

Thomas Buck 3 weeks ago
parent
commit
c69bb7816f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/adc.c

+ 1
- 1
src/adc.c View File

@@ -35,7 +35,7 @@
35 35
 #define BAT_R1 10000.0f
36 36
 #define BAT_R2 18000.0f
37 37
 
38
-#define FILTER_OLD 0.95f
38
+#define FILTER_OLD 0.999f
39 39
 #define FILTER_NEW (1.0f - FILTER_OLD)
40 40
 
41 41
 #ifndef LIPO_USE_PERCENTAGE_CURVE

Loading…
Cancel
Save