From 2981ece921e6020d11f9f19588a63d0be90e3bde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Mon, 27 Mar 2017 16:53:47 +0200 Subject: [PATCH] geofence: do not show an error for MAV_FRAME_GLOBAL_RELATIVE_ALT{,_INT} items Since the altitude is not used, we can ignore this as well. --- src/modules/navigator/geofence.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/navigator/geofence.cpp b/src/modules/navigator/geofence.cpp index b19ab1b788..83292f47a0 100644 --- a/src/modules/navigator/geofence.cpp +++ b/src/modules/navigator/geofence.cpp @@ -313,7 +313,9 @@ bool Geofence::insidePolygon(const PolygonInfo &polygon, double lat, double lon, break; } - if (temp_vertex_i.frame != MAV_FRAME_GLOBAL && temp_vertex_i.frame != MAV_FRAME_GLOBAL_INT) { + if (temp_vertex_i.frame != MAV_FRAME_GLOBAL && temp_vertex_i.frame != MAV_FRAME_GLOBAL_INT + && temp_vertex_i.frame != MAV_FRAME_GLOBAL_RELATIVE_ALT + && temp_vertex_i.frame != MAV_FRAME_GLOBAL_RELATIVE_ALT_INT) { // TODO: handle different frames PX4_ERR("Frame type %i not supported", (int)temp_vertex_i.frame); break;