diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-02-01 11:14:21 +0100 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-02-01 11:14:21 +0100 |
commit | 8897894b19e8de4ad7960a0fa552ed12fc2f0200 (patch) | |
tree | e39d9a7435333d75d7afa99509f2c231e400ab28 /src/modules/commander/state_machine_helper.cpp | |
parent | 542ec2d91d8b77a968de3b2474268126467b71a3 (diff) | |
download | px4-firmware-8897894b19e8de4ad7960a0fa552ed12fc2f0200.tar.gz px4-firmware-8897894b19e8de4ad7960a0fa552ed12fc2f0200.tar.bz2 px4-firmware-8897894b19e8de4ad7960a0fa552ed12fc2f0200.zip |
commander, navigator, mc_att_control, mc_pos_control: code style fixed
Diffstat (limited to 'src/modules/commander/state_machine_helper.cpp')
-rw-r--r-- | src/modules/commander/state_machine_helper.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/commander/state_machine_helper.cpp b/src/modules/commander/state_machine_helper.cpp index 43d0e023e..e5d77b246 100644 --- a/src/modules/commander/state_machine_helper.cpp +++ b/src/modules/commander/state_machine_helper.cpp @@ -382,6 +382,7 @@ transition_result_t failsafe_state_transition(struct vehicle_status_s *status, f break; case FAILSAFE_STATE_RTL: + /* global position and home position required for RTL */ if (status->condition_global_position_valid && status->condition_home_position_valid) { status->set_nav_state = NAV_STATE_RTL; @@ -392,6 +393,7 @@ transition_result_t failsafe_state_transition(struct vehicle_status_s *status, f break; case FAILSAFE_STATE_LAND: + /* at least relative altitude estimate required for landing */ if (status->condition_local_altitude_valid || status->condition_global_position_valid) { status->set_nav_state = NAV_STATE_LAND; |