diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-15 21:15:19 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-15 21:15:19 +0200 |
commit | c9c1c9d58a6e5d17bbe572fd08f8200c6406affe (patch) | |
tree | e315343b7f3490e1af52d102adb9efd4ca2e39e3 /src | |
parent | ba88daf8f9517326b292c7cec4e68f02ebbfc9ef (diff) | |
download | px4-firmware-c9c1c9d58a6e5d17bbe572fd08f8200c6406affe.tar.gz px4-firmware-c9c1c9d58a6e5d17bbe572fd08f8200c6406affe.tar.bz2 px4-firmware-c9c1c9d58a6e5d17bbe572fd08f8200c6406affe.zip |
Fix #1789 - takeoff sideways on beginning of missions
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/navigator/mission.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/navigator/mission.cpp b/src/modules/navigator/mission.cpp index a94082d6f..c1763ba93 100644 --- a/src/modules/navigator/mission.cpp +++ b/src/modules/navigator/mission.cpp @@ -449,7 +449,7 @@ Mission::set_mission_items() } /* check if we already above takeoff altitude */ - if (_navigator->get_global_position()->alt < takeoff_alt - _navigator->get_acceptance_radius()) { + if (_navigator->get_global_position()->alt < takeoff_alt) { mavlink_log_critical(_navigator->get_mavlink_fd(), "takeoff to %.1f meters above home", (double)(takeoff_alt - _navigator->get_home_position()->alt)); _mission_item.nav_cmd = NAV_CMD_TAKEOFF; |