Explorar el Código

more low pass filtering for battery voltage

Thomas Buck hace 1 mes
padre
commit
c69bb7816f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/adc.c

+ 1
- 1
src/adc.c Ver fichero

@@ -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…
Cancelar
Guardar