From 68e7c1c0672a4ce958ba6c24bb10cf6bfcb3328d Mon Sep 17 00:00:00 2001 From: LM Date: Fri, 20 Apr 2012 16:59:08 +0200 Subject: [PATCH] Fixed accidentally commited hacks --- 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 d43f05591..75fb54d56 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -499,7 +499,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) mavlink_msg_attitude_decode(&message, &attitude); quint64 time = getUnixReferenceTime(attitude.time_boot_ms); - if (message.compid == 201) emit attitudeChanged(this, message.compid, QGC::limitAngleToPMPIf(attitude.roll), QGC::limitAngleToPMPIf(attitude.pitch), QGC::limitAngleToPMPIf(attitude.yaw), time); + emit attitudeChanged(this, message.compid, QGC::limitAngleToPMPIf(attitude.roll), QGC::limitAngleToPMPIf(attitude.pitch), QGC::limitAngleToPMPIf(attitude.yaw), time); if (!wrongComponent) { @@ -577,7 +577,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) quint64 time = getUnixTime(pos.time_boot_ms); // Emit position always with component ID - if (message.compid == 201) emit localPositionChanged(this, message.compid, pos.x, pos.y, pos.z, time); + emit localPositionChanged(this, message.compid, pos.x, pos.y, pos.z, time); if (!wrongComponent) -- 2.22.0