aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorMatt Beall <matt.beall@greypointcorp.com>2015-02-24 16:52:50 -0700
committerThomas Gubler <thomasgubler@gmail.com>2015-02-28 15:19:16 +0100
commitfd4fd4eaaa39330d4a1cf1154100e6d1201e847f (patch)
treef97c5db4d2b309b59fef3eae632f2984ceab8089 /src/modules
parente2de72b882d7c74cdaafcfc74ab7176ef94a4455 (diff)
downloadpx4-firmware-fd4fd4eaaa39330d4a1cf1154100e6d1201e847f.tar.gz
px4-firmware-fd4fd4eaaa39330d4a1cf1154100e6d1201e847f.tar.bz2
px4-firmware-fd4fd4eaaa39330d4a1cf1154100e6d1201e847f.zip
Set the actuator control flag in receiver
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/mavlink/mavlink_receiver.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/mavlink/mavlink_receiver.cpp b/src/modules/mavlink/mavlink_receiver.cpp
index 48866f036..8291f2006 100644
--- a/src/modules/mavlink/mavlink_receiver.cpp
+++ b/src/modules/mavlink/mavlink_receiver.cpp
@@ -674,6 +674,8 @@ MavlinkReceiver::handle_message_set_actuator_control_target(mavlink_message_t *m
offboard_control_mode.ignore_position = true;
offboard_control_mode.ignore_velocity = true;
offboard_control_mode.ignore_acceleration_force = true;
+
+ offboard_control_mode.actuator_control_mode = false;
offboard_control_mode.timestamp = hrt_absolute_time();