From 5818baa41ef23b1b6b3b3c8b884e684eb4682beb Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 13 Aug 2014 17:48:55 +0200 Subject: [PATCH] UAS: please don't send global position to anyone without telling anyone --- src/uas/UAS.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 6cb68d5d7..599840f3a 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -905,7 +905,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) positionLock = true; isGlobalPositionKnown = true; //TODO fix this hack for forwarding of global position for patch antenna tracking - forwardMessage(message); + //forwardMessage(message); } break; case MAVLINK_MSG_ID_GPS_RAW_INT: @@ -2788,7 +2788,7 @@ 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); - + // Do not control rates and throttle quint8 mask = (1 << 0) | (1 << 1) | (1 << 2); // ignore rates mask |= (1 << 6); // ignore throttle -- 2.22.0