Skip to content

Commit

Permalink
mission: fix current mission index
Browse files Browse the repository at this point in the history
This was wrong, we should only increment the index when a new waypoint
with a location is added.
  • Loading branch information
julianoes committed Sep 20, 2018
1 parent b7f5bd3 commit f8cd548
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions plugins/mission/mission_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,6 @@ void MissionImpl::assemble_mavlink_messages()
static_cast<int>(_mission_data.mavlink_mission_item_messages.size()),
item_i});
_mission_data.mavlink_mission_item_messages.push_back(message_gimbal_configure);

++item_i;
}

// The gimbal has changed, we need to add a gimbal command.
Expand Down

0 comments on commit f8cd548

Please sign in to comment.