forked from Archive/PX4-Autopilot
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:
parent
e52491c023
commit
2981ece921
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue