mirror of https://github.com/ArduPilot/ardupilot
GCS_MAVLink: use voltage(x) instead of voltage2()
This commit is contained in:
parent
a1564bd337
commit
4e4bc0bee4
|
@ -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)
|
void GCS_MAVLINK::send_battery2(const AP_BattMonitor &battery)
|
||||||
{
|
{
|
||||||
if (battery.num_instances() > 1) {
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue