diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-03-11 10:37:15 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-03-11 10:46:18 +0100 |
commit | e8efbc7f3fe22d2a11189fd83c7252347a6d7f04 (patch) | |
tree | 50dc202c6a9432045e3edb7f8d8ce7c96574a185 /src | |
parent | 40394c6744765d9383b5c2aa6d32162b32bda567 (diff) | |
download | px4-firmware-e8efbc7f3fe22d2a11189fd83c7252347a6d7f04.tar.gz px4-firmware-e8efbc7f3fe22d2a11189fd83c7252347a6d7f04.tar.bz2 px4-firmware-e8efbc7f3fe22d2a11189fd83c7252347a6d7f04.zip |
navigator: RTL: set normal waypoint instead of takeoff waypoint in RTL_STATE_CLIMB
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/navigator/navigator_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/navigator/navigator_main.cpp b/src/modules/navigator/navigator_main.cpp index 6b6f3f3ff..2f058b6c9 100644 --- a/src/modules/navigator/navigator_main.cpp +++ b/src/modules/navigator/navigator_main.cpp @@ -1315,7 +1315,7 @@ Navigator::set_rtl_item() _mission_item.yaw = NAN; _mission_item.loiter_radius = _parameters.loiter_radius; _mission_item.loiter_direction = 1; - _mission_item.nav_cmd = NAV_CMD_TAKEOFF; + _mission_item.nav_cmd = NAV_CMD_WAYPOINT; _mission_item.acceptance_radius = _parameters.acceptance_radius; _mission_item.time_inside = 0.0f; _mission_item.pitch_min = 0.0f; |