mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -04:00
Copter: sent current as -1 to GCS when can't be monitored
This commit is contained in:
parent
121e4932ea
commit
3c5797c479
@ -197,13 +197,6 @@ static NOINLINE void send_extended_status1(mavlink_channel_t chan, uint16_t pack
|
||||
battery_current = battery.current_amps() * 100;
|
||||
}
|
||||
|
||||
if (battery.monitoring() == AP_BATT_MONITOR_VOLTAGE_ONLY) {
|
||||
/*setting a out-of-range value.
|
||||
* It informs to external devices that
|
||||
* it cannot be calculated properly just by voltage*/
|
||||
battery_remaining = 150;
|
||||
}
|
||||
|
||||
mavlink_msg_sys_status_send(
|
||||
chan,
|
||||
control_sensors_present,
|
||||
|
Loading…
Reference in New Issue
Block a user