mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-01 17:14:08 +08:00
fix wrong usage of navigation state in flighttermination state machine
This commit is contained in:
parent
c3cbaf5deb
commit
367d5d0cf2
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user