mirror of https://github.com/ArduPilot/ardupilot
Copter: remove alt_in_cm from mavlink to cmd conversion
This commit is contained in:
parent
601cde2a32
commit
6bb05750e7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue