mirror of https://github.com/ArduPilot/ardupilot
GCS_MAVLink: mission item support more mav frames
This commit is contained in:
parent
3b376e5af0
commit
0ac53a7df4
|
@ -64,7 +64,11 @@ uint16_t MissionItemProtocol_Fence::item_count() const
|
||||||
static MAV_MISSION_RESULT convert_MISSION_ITEM_INT_to_AC_PolyFenceItem(const mavlink_mission_item_int_t &mission_item_int, AC_PolyFenceItem &ret)
|
static MAV_MISSION_RESULT convert_MISSION_ITEM_INT_to_AC_PolyFenceItem(const mavlink_mission_item_int_t &mission_item_int, AC_PolyFenceItem &ret)
|
||||||
{
|
{
|
||||||
if (mission_item_int.frame != MAV_FRAME_GLOBAL &&
|
if (mission_item_int.frame != MAV_FRAME_GLOBAL &&
|
||||||
mission_item_int.frame != MAV_FRAME_GLOBAL_INT) {
|
mission_item_int.frame != MAV_FRAME_GLOBAL_INT &&
|
||||||
|
mission_item_int.frame != MAV_FRAME_GLOBAL_RELATIVE_ALT &&
|
||||||
|
mission_item_int.frame != MAV_FRAME_GLOBAL_RELATIVE_ALT_INT &&
|
||||||
|
mission_item_int.frame != MAV_FRAME_GLOBAL_TERRAIN_ALT &&
|
||||||
|
mission_item_int.frame != MAV_FRAME_GLOBAL_TERRAIN_ALT_INT) {
|
||||||
return MAV_MISSION_UNSUPPORTED_FRAME;
|
return MAV_MISSION_UNSUPPORTED_FRAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue