diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-12-29 11:18:49 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-12-29 11:18:49 +0100 |
commit | b240e31c1c25c07ffe046a3433d43fa8b862c136 (patch) | |
tree | b6b563e2c9d73c8f6089b8c5d4176e45fdf73d89 /apps/fixedwing_att_control | |
parent | c652f718c0d2ab78fd80f503d5932ecf526136a9 (diff) | |
download | px4-firmware-b240e31c1c25c07ffe046a3433d43fa8b862c136.tar.gz px4-firmware-b240e31c1c25c07ffe046a3433d43fa8b862c136.tar.bz2 px4-firmware-b240e31c1c25c07ffe046a3433d43fa8b862c136.zip |
Safer fixed wing mode switching
Diffstat (limited to 'apps/fixedwing_att_control')
-rw-r--r-- | apps/fixedwing_att_control/fixedwing_att_control_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/fixedwing_att_control/fixedwing_att_control_main.c b/apps/fixedwing_att_control/fixedwing_att_control_main.c index c51d06579..cd479d40d 100644 --- a/apps/fixedwing_att_control/fixedwing_att_control_main.c +++ b/apps/fixedwing_att_control/fixedwing_att_control_main.c @@ -240,7 +240,7 @@ int fixedwing_att_control_thread_main(int argc, char *argv[]) /* set flaps to zero */ actuators.control[4] = 0.0f; - } else { + } else if (vstatus.state_machine == SYSTEM_STATE_MANUAL) { if (vstatus.manual_control_mode == VEHICLE_MANUAL_CONTROL_MODE_SAS) { /* if the RC signal is lost, try to stay level and go slowly back down to ground */ |