diff options
author | Julian Oes <julian@oes.ch> | 2014-11-11 10:28:24 +1000 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2014-11-11 10:28:24 +1000 |
commit | 3c9a73f3e41a379e5e7bbf6e98d67facc3b2b49f (patch) | |
tree | 656a564f96a34455dcbd3519e84d0f4a6ce7122e /src/modules | |
parent | fa5f3658828280f54a7fec3c33ec3e25e4198561 (diff) | |
download | px4-firmware-3c9a73f3e41a379e5e7bbf6e98d67facc3b2b49f.tar.gz px4-firmware-3c9a73f3e41a379e5e7bbf6e98d67facc3b2b49f.tar.bz2 px4-firmware-3c9a73f3e41a379e5e7bbf6e98d67facc3b2b49f.zip |
fixed empty if body
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/commander/state_machine_helper.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/modules/commander/state_machine_helper.cpp b/src/modules/commander/state_machine_helper.cpp index e1a626262..a9a5c4051 100644 --- a/src/modules/commander/state_machine_helper.cpp +++ b/src/modules/commander/state_machine_helper.cpp @@ -562,11 +562,8 @@ bool set_nav_state(struct vehicle_status_s *status, const bool data_link_loss_en status->nav_state = NAVIGATION_STATE_TERMINATION; } - /* stay where you are */ - } else if (stay_in_failsafe){ - - /* everything is perfect */ - } else { + /* stay where you are if you should stay in failsafe, otherwise everything is perfect */ + } else if (!stay_in_failsafe){ status->nav_state = NAVIGATION_STATE_AUTO_MISSION; } break; |