diff options
author | Matt Beall <matt.beall@greypointcorp.com> | 2015-02-25 12:12:14 -0700 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2015-02-28 15:19:16 +0100 |
commit | d7dc3a3ee85e3a3c28d97ef49d53026f254d3650 (patch) | |
tree | 837dce0b9ab80a19abf4529dae5d265c554e4d33 /src/modules/commander | |
parent | b0e878dbae1f471ddf0d3c063f238260124f9d5a (diff) | |
download | px4-firmware-d7dc3a3ee85e3a3c28d97ef49d53026f254d3650.tar.gz px4-firmware-d7dc3a3ee85e3a3c28d97ef49d53026f254d3650.tar.bz2 px4-firmware-d7dc3a3ee85e3a3c28d97ef49d53026f254d3650.zip |
Cleaned up some chunky code
Diffstat (limited to 'src/modules/commander')
-rw-r--r-- | src/modules/commander/commander.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index e688b8fa5..024e6c18a 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -2453,13 +2453,13 @@ set_control_mode() control_mode.flag_control_altitude_enabled = !offboard_control_mode.ignore_position; - control_mode.flag_control_offboard_actuator_control_enabled = offboard_control_mode.ignore_thrust && - offboard_control_mode.ignore_attitude && - offboard_control_mode.ignore_bodyrate && - offboard_control_mode.ignore_position && - offboard_control_mode.ignore_velocity && - offboard_control_mode.ignore_acceleration_force && - offboard_control_mode.actuator_control_mode; + control_mode.flag_control_offboard_actuator_control_enabled = offboard_control_mode.ignore_thrust && + offboard_control_mode.ignore_attitude && + offboard_control_mode.ignore_bodyrate && + offboard_control_mode.ignore_position && + offboard_control_mode.ignore_velocity && + offboard_control_mode.ignore_acceleration_force && + offboard_control_mode.actuator_control_mode; break; |