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

This commit is contained in:
Randy Mackay 2013-10-02 15:08:13 +09:00
parent 121e4932ea
commit 3c5797c479

View File

@ -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,