mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-21 23:10:35 +08:00
boards: move default battery calibration defines to parameter defaults
This commit is contained in:
@@ -3,5 +3,8 @@
|
||||
# board specific defaults
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
param set-default BAT1_V_DIV 10.14
|
||||
param set-default BAT1_A_PER_V 18.18
|
||||
|
||||
# don't probe external I2C
|
||||
param set-default SENS_EXT_I2C_PRB 0
|
||||
|
||||
@@ -83,10 +83,6 @@
|
||||
#define ADC_5V_RAIL_SENSE 4
|
||||
#define ADC_RC_RSSI_CHANNEL 11
|
||||
|
||||
/* Define Battery 1 Voltage Divider and A per V. */
|
||||
#define BOARD_BATTERY1_V_DIV (10.14f)
|
||||
#define BOARD_BATTERY1_A_PER_V (18.18f)
|
||||
|
||||
/* Power supply control and monitoring GPIOs. */
|
||||
#define GPIO_VDD_BRICK_VALID (GPIO_INPUT|GPIO_PULLUP|GPIO_PORTB|GPIO_PIN5)
|
||||
#define GPIO_VDD_USB_VALID (GPIO_INPUT|GPIO_PULLUP|GPIO_PORTC|GPIO_PIN0)
|
||||
|
||||
Reference in New Issue
Block a user