mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
batterry_status: fix checking default a_per_v
This commit is contained in:
@@ -116,7 +116,7 @@ AnalogBattery::updateParams()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_analog_params.a_per_v <= 0.0f) {
|
if (_analog_params.a_per_v < 0.0f) {
|
||||||
/* apply scaling according to defaults if set to default */
|
/* apply scaling according to defaults if set to default */
|
||||||
|
|
||||||
_analog_params.a_per_v = BOARD_BATTERY1_A_PER_V;
|
_analog_params.a_per_v = BOARD_BATTERY1_A_PER_V;
|
||||||
|
|||||||
Reference in New Issue
Block a user