From d3411e45bbba75f9509c907513a45dc40f45805f Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Sun, 27 Apr 2014 15:59:52 +0900 Subject: [PATCH] Copter: use get_current_nav_index() --- ArduCopter/GCS_Mavlink.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/GCS_Mavlink.pde b/ArduCopter/GCS_Mavlink.pde index aea34358ff..80f5050f4a 100644 --- a/ArduCopter/GCS_Mavlink.pde +++ b/ArduCopter/GCS_Mavlink.pde @@ -570,7 +570,7 @@ static void NOINLINE send_raw_imu3(mavlink_channel_t chan) static void NOINLINE send_current_waypoint(mavlink_channel_t chan) { - mavlink_msg_mission_current_send(chan, mission.get_current_nav_cmd().index); + mavlink_msg_mission_current_send(chan, mission.get_current_nav_index()); } static void NOINLINE send_statustext(mavlink_channel_t chan)