do not run fw attitude controller when in rotary wing mode (VTOL)

This commit is contained in:
tumbili
2015-05-30 15:39:37 +02:00
parent 7cde53597c
commit 134c7d87b8
@@ -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) {