Merge pull request #2258 from tumbili/VTOL_fix

do not run fw attitude controller when in rotary wing mode (VTOL)
This commit is contained in:
Lorenz Meier 2015-06-04 21:08:58 +02:00
commit b9e8fd550a

View File

@ -796,6 +796,11 @@ FixedwingAttitudeControl::task_main()
//warnx("_actuators_airframe.control[1] = -1.0f;");
}
/* if we are in rotary wing mode, do nothing */
if (_vehicle_status.is_rotary_wing) {
continue;
}
/* decide if in stabilized or full manual control */
if (_vcontrol_mode.flag_control_attitude_enabled) {