Skip to content

Commit

Permalink
do not run fw attitude controller when in rotary wing mode (VTOL)
Browse files Browse the repository at this point in the history
  • Loading branch information
tumbili committed May 30, 2015
1 parent 7cde535 commit 134c7d8
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 134c7d8

Please sign in to comment.