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.
This commit is contained in:
Beat Küng 2017-03-27 16:53:47 +02:00 committed by Lorenz Meier
parent e52491c023
commit 2981ece921
1 changed files with 3 additions and 1 deletions

View File

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