GCS_MAVLink: mission item support more mav frames

This commit is contained in:
Randy Mackay 2019-10-26 14:32:25 +09:00
parent 3b376e5af0
commit 0ac53a7df4
1 changed files with 5 additions and 1 deletions

View File

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