diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index cd3fc52a01d626bd872b43fe80a5bd57925f23ff..102f9b9ab0004845a9e55b694c9c2d745b127fbb 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -2857,9 +2857,9 @@ void UAS::setManual6DOFControlCommands(double x, double y, double z, double roll mavlink_message_t message; float q[4]; mavlink_euler_to_quaternion(roll, pitch, yaw, q); - quint8 mask; + // Do not control rates and throttle - mask |= (1 << 0) | (1 << 1) | (1 << 2); // ignore rates + quint8 mask = (1 << 0) | (1 << 1) | (1 << 2); // ignore rates mask |= (1 << 6); // ignore throttle mavlink_msg_set_attitude_target_pack(mavlink->getSystemId(), mavlink->getComponentId(), &message, QGC::groundTimeMilliseconds(), this->uasId, 0,