Plane: sent current as -1 to GCS when can't be monitored

This commit is contained in:
Randy Mackay 2013-10-02 15:08:20 +09:00
parent 3c5797c479
commit 21360aeebf

View File

@ -221,13 +221,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,