geofence: make some functions private, correctly update params

This commit is contained in:
Thomas Gubler
2014-08-24 15:27:31 +02:00
parent c0975af375
commit bdccd69030
3 changed files with 7 additions and 4 deletions
@@ -109,7 +109,7 @@ bool MissionFeasibilityChecker::checkGeofence(dm_item_t dm_current, size_t nMiss
return false;
}
if (!geofence.inside(missionitem.lat, missionitem.lon, missionitem.altitude)) {
if (!geofence.inside_polygon(missionitem.lat, missionitem.lon, missionitem.altitude)) {
mavlink_log_info(_mavlink_fd, "#audio: Geofence violation waypoint %d", i);
return false;
}