diff options
author | Julian Oes <julian@oes.ch> | 2014-03-01 11:05:07 +0100 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2014-03-01 11:05:07 +0100 |
commit | eac00a71ea8f0b10d446be752f6fef737f850956 (patch) | |
tree | cfbe4931c5294797362254a85c3bbf7e0f1af75f /src/modules/navigator/navigator_main.cpp | |
parent | 4912a4af995f820008f9467b0be7af6a487e6e77 (diff) | |
download | px4-firmware-eac00a71ea8f0b10d446be752f6fef737f850956.tar.gz px4-firmware-eac00a71ea8f0b10d446be752f6fef737f850956.tar.bz2 px4-firmware-eac00a71ea8f0b10d446be752f6fef737f850956.zip |
navigator: don't enter AUTO_READY for fixedwing because we don't have a land detector yet
Diffstat (limited to 'src/modules/navigator/navigator_main.cpp')
-rw-r--r-- | src/modules/navigator/navigator_main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/navigator/navigator_main.cpp b/src/modules/navigator/navigator_main.cpp index 04f87d4ca..8d0710e91 100644 --- a/src/modules/navigator/navigator_main.cpp +++ b/src/modules/navigator/navigator_main.cpp @@ -1386,7 +1386,8 @@ Navigator::set_rtl_item() void Navigator::request_loiter_or_ready() { - if (_vstatus.condition_landed) { + /* XXX workaround: no landing detector for fixedwing yet */ + if (_vstatus.condition_landed && _vstatus.is_rotary_wing) { dispatch(EVENT_READY_REQUESTED); } else { |