Plane: sent current as -1 to GCS when can't be monitored
This commit is contained in:
parent
3c5797c479
commit
21360aeebf
@ -221,13 +221,6 @@ static NOINLINE void send_extended_status1(mavlink_channel_t chan, uint16_t pack
|
|||||||
battery_current = battery.current_amps() * 100;
|
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(
|
mavlink_msg_sys_status_send(
|
||||||
chan,
|
chan,
|
||||||
control_sensors_present,
|
control_sensors_present,
|
||||||
|
Loading…
Reference in New Issue
Block a user