소스 검색

more low pass filtering for battery voltage

Thomas Buck 1 개월 전
부모
커밋
c69bb7816f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      src/adc.c

+ 1
- 1
src/adc.c 파일 보기

@@ -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…
취소
저장