mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 05:03:35 +08:00
Board_config.h will provide the BOARD_BATTERYx_V_DIV
Prep to distrubte the magic numbers assgined in parameters.cpp
to the board_config.h
common/board_common.h will define:
1) BOARD_BATTERY[1|2]_V_DIV as 0.0f if not defined to ensure
the missing default trips a low voltage lockdown
2) BOARD_BATTERY[1|2]_A_PER_V as 0.0f if not defined to ensure
the default leads to an unrealistic current value.
This commit is contained in:
committed by
Lorenz Meier
parent
1c3ebadb85
commit
a8b9c906f6
@@ -132,6 +132,29 @@
|
||||
# define BOARD_EEPROM_WP_CTRL(on_true)
|
||||
#endif
|
||||
|
||||
/* Define an overridable default of 0.0f V for batery v div
|
||||
* This is done to ensure the missing default trips a low
|
||||
* voltage lockdown
|
||||
*/
|
||||
#if !defined(BOARD_BATTERY1_V_DIV)
|
||||
#define BOARD_BATTERY1_V_DIV 0.0f
|
||||
#endif
|
||||
|
||||
#if !defined(BOARD_BATTERY2_V_DIV)
|
||||
#define BOARD_BATTERY2_V_DIV 0.0f
|
||||
#endif
|
||||
|
||||
/* Define an overridable default of 0.0f for A per V
|
||||
* This is done to ensure the default leads to an
|
||||
* unrealistic current value
|
||||
*/
|
||||
#if !defined(BOARD_BATTERY1_A_PER_V)
|
||||
#define BOARD_BATTERY1_A_PER_V 0.0f
|
||||
#endif
|
||||
|
||||
#if !defined(BOARD_BATTERY2_A_PER_V)
|
||||
#define BOARD_BATTERY2_A_PER_V 0.0f
|
||||
#endif
|
||||
|
||||
/* Conditional use of FMU GPIO
|
||||
* If the board use the PX4FMU driver and the board provides
|
||||
|
||||
Reference in New Issue
Block a user