From e52491c0232b849452bf53de3b992394fb9fdb8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Mon, 27 Mar 2017 14:31:16 +0200 Subject: [PATCH] geofence: there is no altitude for geofence vertices, remove the TODO --- src/modules/navigator/geofence.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/modules/navigator/geofence.cpp b/src/modules/navigator/geofence.cpp index 4314030a79..b19ab1b788 100644 --- a/src/modules/navigator/geofence.cpp +++ b/src/modules/navigator/geofence.cpp @@ -324,8 +324,6 @@ bool Geofence::insidePolygon(const PolygonInfo &polygon, double lat, double lon, (double)(temp_vertex_j.lon - temp_vertex_i.lon) + (double)temp_vertex_i.lat)) { c = !c; } - - // TODO: handle altitude } return c; @@ -385,7 +383,7 @@ Geofence::loadFromFile(const char *filename) vertex.frame = MAV_FRAME_GLOBAL; vertex.nav_cmd = MAV_CMD_NAV_FENCE_POLYGON_VERTEX_INCLUSION; vertex.vertex_count = 0; // this will be filled in a second pass - vertex.alt = 0; // TODO: does this make sense? + vertex.alt = 0; // alt is not used /* if the line starts with DMS, this means that the coordinate is given as degree minute second instead of decimal degrees */ if (line[textStart] == 'D' && line[textStart + 1] == 'M' && line[textStart + 2] == 'S') {