From ede920f2934a4a918073e5ef4f15e4dfdd5dcee4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 3 Dec 2014 18:29:43 +1100 Subject: [PATCH] AP_Mission: ensure location options are zero at start of mavlink conversion --- libraries/AP_Mission/AP_Mission.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AP_Mission/AP_Mission.cpp b/libraries/AP_Mission/AP_Mission.cpp index 9f8d3f6b95..65cd2ee7b6 100644 --- a/libraries/AP_Mission/AP_Mission.cpp +++ b/libraries/AP_Mission/AP_Mission.cpp @@ -460,6 +460,7 @@ bool AP_Mission::mavlink_to_mission_cmd(const mavlink_mission_item_t& packet, AP // command's position in mission list and mavlink id cmd.index = packet.seq; cmd.id = packet.command; + cmd.content.location.options = 0; // command specific conversions from mavlink packet to mission command switch (cmd.id) {