mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 15:13:33 +08:00
Pr external battery monitoring (#4881)
* mavlink receiver: added handling of battery status handle incoming battery status messages in order to support external battery monitoring Signed-off-by: Roman <bapstr@ethz.ch> * sensor params: added parameter for battery monitoring source Signed-off-by: Roman <bapstr@ethz.ch> * sensors: only publish battery status if we don't have external battery monitoring activated Signed-off-by: Roman <bapstr@ethz.ch>
This commit is contained in:
committed by
Lorenz Meier
parent
9f95f457a9
commit
571798c318
@@ -2023,6 +2023,22 @@ PARAM_DEFINE_FLOAT(BAT_V_DIV, -1.0);
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(BAT_A_PER_V, -1.0);
|
||||
|
||||
/**
|
||||
* Battery monitoring source.
|
||||
*
|
||||
* This parameter controls the source of battery data. The value 'Power Module'
|
||||
* means that measurements are expected to come from a power module. If the value is set to
|
||||
* 'External' then the system expects to receive mavlink battery status messages.
|
||||
*
|
||||
* @min 0
|
||||
* @max 1
|
||||
* @value 0 Power Module
|
||||
* @value 1 External
|
||||
* @group Battery Calibration
|
||||
*/
|
||||
|
||||
PARAM_DEFINE_INT32(BAT_SOURCE, 0);
|
||||
|
||||
|
||||
/**
|
||||
* RC channel count
|
||||
|
||||
Reference in New Issue
Block a user