mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
boards: move default battery calibration defines to parameter defaults
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user