From 6bb05750e7b0c949e868d105da3a1c75e213e03b Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 4 Mar 2014 21:17:43 +0900 Subject: [PATCH] Copter: remove alt_in_cm from mavlink to cmd conversion --- ArduCopter/GCS_Mavlink.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduCopter/GCS_Mavlink.pde b/ArduCopter/GCS_Mavlink.pde index 83a59ae76b..434e91207e 100644 --- a/ArduCopter/GCS_Mavlink.pde +++ b/ArduCopter/GCS_Mavlink.pde @@ -1338,7 +1338,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg) } // convert mavlink packet to mission command - if (!AP_Mission::mavlink_to_mission_cmd(packet, cmd, true)) { + if (!AP_Mission::mavlink_to_mission_cmd(packet, cmd)) { result = MAV_MISSION_ERROR; goto mission_item_receive_failed; } @@ -1443,7 +1443,7 @@ mission_item_receive_failed: // convert mission command to mavlink mission item packet mavlink_mission_item_t ret_packet; memset(&ret_packet, 0, sizeof(ret_packet)); - if (!AP_Mission::mission_cmd_to_mavlink(cmd, ret_packet, true)) { + if (!AP_Mission::mission_cmd_to_mavlink(cmd, ret_packet)) { result = MAV_MISSION_ERROR; goto mission_item_send_failed; }