mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
Rover: send invalid batt curr if monitor unhealthy
This commit is contained in:
parent
d3663d43c1
commit
ab542de769
@ -177,7 +177,7 @@ static NOINLINE void send_extended_status1(mavlink_channel_t chan)
|
||||
int16_t battery_current = -1;
|
||||
int8_t battery_remaining = -1;
|
||||
|
||||
if (battery.has_current()) {
|
||||
if (battery.has_current() && battery.healthy()) {
|
||||
battery_remaining = battery.capacity_remaining_pct();
|
||||
battery_current = battery.current_amps() * 100;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user