mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 15:28:53 +08:00
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:
@@ -313,7 +313,9 @@ bool Geofence::insidePolygon(const PolygonInfo &polygon, double lat, double lon,
|
|||||||
break;
|
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
|
// TODO: handle different frames
|
||||||
PX4_ERR("Frame type %i not supported", (int)temp_vertex_i.frame);
|
PX4_ERR("Frame type %i not supported", (int)temp_vertex_i.frame);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user