diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-08-24 15:27:31 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-08-24 15:27:31 +0200 |
commit | bdccd69030e56381d906afeabc8305dbe18e2de6 (patch) | |
tree | e1fca38e3078df487b1b9ed83d107cfdef517ab6 /src/modules/navigator/mission_feasibility_checker.cpp | |
parent | c0975af375c168be98804f025192bbb30710355d (diff) | |
download | px4-firmware-bdccd69030e56381d906afeabc8305dbe18e2de6.tar.gz px4-firmware-bdccd69030e56381d906afeabc8305dbe18e2de6.tar.bz2 px4-firmware-bdccd69030e56381d906afeabc8305dbe18e2de6.zip |
geofence: make some functions private, correctly update params
Diffstat (limited to 'src/modules/navigator/mission_feasibility_checker.cpp')
-rw-r--r-- | src/modules/navigator/mission_feasibility_checker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/navigator/mission_feasibility_checker.cpp b/src/modules/navigator/mission_feasibility_checker.cpp index 606521f20..937e4fa5a 100644 --- a/src/modules/navigator/mission_feasibility_checker.cpp +++ b/src/modules/navigator/mission_feasibility_checker.cpp @@ -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; } |