Skip to content

Commit

Permalink
Merge pull request PX4#2258 from tumbili/VTOL_fix
Browse files Browse the repository at this point in the history
do not run fw attitude controller when in rotary wing mode (VTOL)
  • Loading branch information
LorenzMeier committed Jun 4, 2015
2 parents 9ce7fe4 + 134c7d8 commit b9e8fd5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/fw_att_control/fw_att_control_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b9e8fd5

Please sign in to comment.