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/navigator/navigator_main.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/navigator/navigator_main.cpp')
-rw-r--r-- | src/modules/navigator/navigator_main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/navigator/navigator_main.cpp b/src/modules/navigator/navigator_main.cpp index e961a8f94..6e4b5f0a0 100644 --- a/src/modules/navigator/navigator_main.cpp +++ b/src/modules/navigator/navigator_main.cpp @@ -689,7 +689,7 @@ Navigator::task_main() if (_vstatus.return_switch == RETURN_SWITCH_RETURN) { /* switch to RTL if not already landed after RTL and home position set */ if (!(_rtl_state == RTL_STATE_DESCEND && (myState == NAV_STATE_READY || myState == NAV_STATE_LAND)) && - _vstatus.condition_home_position_valid) { + _vstatus.condition_home_position_valid) { dispatch(EVENT_RTL_REQUESTED); } @@ -747,7 +747,7 @@ Navigator::task_main() case NAV_STATE_RTL: if (!(_rtl_state == RTL_STATE_DESCEND && (myState == NAV_STATE_READY || myState == NAV_STATE_LAND)) && - _vstatus.condition_home_position_valid) { + _vstatus.condition_home_position_valid) { dispatch(EVENT_RTL_REQUESTED); } @@ -1575,6 +1575,7 @@ Navigator::on_mission_item_reached() if (_rtl_state == RTL_STATE_DESCEND) { /* hovering above home position, land if needed or loiter */ mavlink_log_info(_mavlink_fd, "[navigator] RTL completed"); + if (_mission_item.autocontinue) { dispatch(EVENT_LAND_REQUESTED); |