diff options
author | Lorenz Meier <lm@qgroundcontrol.org> | 2014-09-30 14:50:26 +0200 |
---|---|---|
committer | Lorenz Meier <lm@qgroundcontrol.org> | 2014-09-30 14:50:26 +0200 |
commit | 76e9710d76971ae3eac76a3442f3ecf351ecbade (patch) | |
tree | a1588e8540b367c1103312a5e95d75f8ca8073d7 /src/modules/navigator/mission_feasibility_checker.cpp | |
parent | 8ced6bb49bf32128d2673e565cb112ca6d2f21eb (diff) | |
parent | d11f05b12c0b0c56703ab14303f91efd123b9dc6 (diff) | |
download | px4-firmware-76e9710d76971ae3eac76a3442f3ecf351ecbade.tar.gz px4-firmware-76e9710d76971ae3eac76a3442f3ecf351ecbade.tar.bz2 px4-firmware-76e9710d76971ae3eac76a3442f3ecf351ecbade.zip |
Merge pull request #1213 from PX4/obcfailsafe
Obc failsafe
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 7ae7f60cb..389cdd0d2 100644 --- a/src/modules/navigator/mission_feasibility_checker.cpp +++ b/src/modules/navigator/mission_feasibility_checker.cpp @@ -120,7 +120,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; } |