Rover: use get_current_nav_index()

This commit is contained in:
Andrew Tridgell 2014-04-22 11:38:10 +10:00
parent e15350f756
commit 05c59c757c

View File

@ -518,7 +518,7 @@ static void NOINLINE send_rangefinder(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)