diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-03-11 10:40:08 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-03-11 10:46:08 +0100 |
commit | 40394c6744765d9383b5c2aa6d32162b32bda567 (patch) | |
tree | e1d7b314d8a9b606890a8d6304f8f25f3f1f5b47 /src | |
parent | b6a087e92183ef9cca513357919b96ea2812d298 (diff) | |
download | px4-firmware-40394c6744765d9383b5c2aa6d32162b32bda567.tar.gz px4-firmware-40394c6744765d9383b5c2aa6d32162b32bda567.tar.bz2 px4-firmware-40394c6744765d9383b5c2aa6d32162b32bda567.zip |
navigator: RTL: set loiter wp instead of normal waypoint in RTL_STATE_DESCEND
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 16eca8d79..6b6f3f3ff 100644 --- a/src/modules/navigator/navigator_main.cpp +++ b/src/modules/navigator/navigator_main.cpp @@ -1375,7 +1375,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_WAYPOINT; + _mission_item.nav_cmd = NAV_CMD_LOITER_TIME_LIMIT; _mission_item.acceptance_radius = _parameters.acceptance_radius; _mission_item.time_inside = _parameters.rtl_land_delay < 0.0f ? 0.0f : _parameters.rtl_land_delay; _mission_item.pitch_min = 0.0f; |