analog_battery: add option for filter (#23987)

This commit is contained in:
Alex Klimaj
2025-01-03 08:01:16 -07:00
committed by GitHub
parent f1a339e7c6
commit 1043aebf5d
4 changed files with 37 additions and 3 deletions
+3
View File
@@ -176,6 +176,9 @@
#define BOARD_BATTERY1_V_DIV (21.0f) // (20k + 1k) / 1k = 21
#define BOARD_BATTERY_ADC_VOLTAGE_FILTER_S 0.075f
#define BOARD_BATTERY_ADC_CURRENT_FILTER_S 0.125f
#define ADC_SCALED_PAYLOAD_SENSE ADC_SCALED_12V_CHANNEL
/* HW has to large of R termination on ADC todo:change when HW value is chosen */