mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 14:08:45 -04:00
AP_Mission: consider _INT frames equivalent to non _INT variants
AP_Mission: consider TERRAIN_ALT_INT equivalent to TERRAIN_ALT AP_Mission: consider RELATIVE_ALT_INT equivalent to RELATIVE_ALT AP_Mission: consider GLOBAL_INT equivalent to GLOBAL
This commit is contained in:
parent
e5521ce6c4
commit
b0ea662c9b
@ -1001,15 +1001,18 @@ MAV_MISSION_RESULT AP_Mission::mavlink_int_to_mission_cmd(const mavlink_mission_
|
||||
|
||||
case MAV_FRAME_MISSION:
|
||||
case MAV_FRAME_GLOBAL:
|
||||
case MAV_FRAME_GLOBAL_INT:
|
||||
cmd.content.location.relative_alt = 0;
|
||||
break;
|
||||
|
||||
case MAV_FRAME_GLOBAL_RELATIVE_ALT:
|
||||
case MAV_FRAME_GLOBAL_RELATIVE_ALT_INT:
|
||||
cmd.content.location.relative_alt = 1;
|
||||
break;
|
||||
|
||||
#if AP_TERRAIN_AVAILABLE
|
||||
case MAV_FRAME_GLOBAL_TERRAIN_ALT:
|
||||
case MAV_FRAME_GLOBAL_TERRAIN_ALT_INT:
|
||||
// we mark it as a relative altitude, as it doesn't have
|
||||
// home alt added
|
||||
cmd.content.location.relative_alt = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user