boards: move default battery calibration defines to parameter defaults

This commit is contained in:
Daniel Agar
2022-01-08 15:10:52 -05:00
parent 78b3d22471
commit daa925137c
63 changed files with 141 additions and 190 deletions
@@ -0,0 +1,7 @@
#!/bin/sh
#
# board specific defaults
#------------------------------------------------------------------------------
# 1K + 4.7K
param set-default BAT1_V_DIV 5.7
@@ -56,7 +56,6 @@
#define ADC_BATTERY_CURRENT_CHANNEL -1
#define ADC_AIRSPEED_VOLTAGE_CHANNEL 2
#define BOARD_BATTERY1_V_DIV 5.7f // 1K + 4.7K
#define ADC_DP_V_DIV 1.0f
#define BOARD_ADC_OPEN_CIRCUIT_V 5.3f // Powered from USB