diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2013-12-14 11:02:16 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2013-12-14 11:02:16 +0100 |
commit | 367d5d0cf28d6c857fdcd6c4ad20809f9e52e310 (patch) | |
tree | 512e32aea5e19ac17b94f5ac12a2584bf0a1c77e /src/modules/commander/state_machine_helper.cpp | |
parent | c3cbaf5deb00577efa9198f246ebc6011284ff34 (diff) | |
download | px4-firmware-367d5d0cf28d6c857fdcd6c4ad20809f9e52e310.tar.gz px4-firmware-367d5d0cf28d6c857fdcd6c4ad20809f9e52e310.tar.bz2 px4-firmware-367d5d0cf28d6c857fdcd6c4ad20809f9e52e310.zip |
fix wrong usage of navigation state in flighttermination state machine
Diffstat (limited to 'src/modules/commander/state_machine_helper.cpp')
-rw-r--r-- | src/modules/commander/state_machine_helper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/commander/state_machine_helper.cpp b/src/modules/commander/state_machine_helper.cpp index 6c21dfab0..ca3ec94b8 100644 --- a/src/modules/commander/state_machine_helper.cpp +++ b/src/modules/commander/state_machine_helper.cpp @@ -544,7 +544,7 @@ transition_result_t flighttermination_state_transition(struct vehicle_status_s * transition_result_t ret = TRANSITION_DENIED; /* only check transition if the new state is actually different from the current one */ - if (new_flighttermination_state == status->navigation_state) { + if (new_flighttermination_state == status->flighttermination_state) { ret = TRANSITION_NOT_CHANGED; } else { |