Copter: remove alt_in_cm from mavlink to cmd conversion

This commit is contained in:
Randy Mackay 2014-03-04 21:17:43 +09:00
parent 601cde2a32
commit 6bb05750e7
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}