GCS_MAVLink: use voltage(x) instead of voltage2()

This commit is contained in:
Tom Pittenger 2016-06-02 15:08:30 -07:00
parent a1564bd337
commit 4e4bc0bee4
1 changed files with 1 additions and 1 deletions

View File

@ -1401,7 +1401,7 @@ void GCS_MAVLINK::send_parameter_value_all(const char *param_name, ap_var_type p
void GCS_MAVLINK::send_battery2(const AP_BattMonitor &battery)
{
if (battery.num_instances() > 1) {
mavlink_msg_battery2_send(chan, battery.voltage2()*1000, battery.current_amps(1));
mavlink_msg_battery2_send(chan, battery.voltage(1)*1000, battery.current_amps(1));
}
}