From 3a4c70e93aa3a3d52f65e7b3c572e044e0eec362 Mon Sep 17 00:00:00 2001 From: TobiasSimon Date: Wed, 15 Feb 2012 20:56:36 +0100 Subject: [PATCH] fixed dropRateChanged: it was impossible to represent a drop rate > 1% --- src/uas/UAS.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 25749d956f..bc1b617d7d 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -429,8 +429,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) } // COMMUNICATIONS DROP RATE - // FIXME - emit dropRateChanged(this->getUASID(), state.drop_rate_comm/10000.0f); + emit dropRateChanged(this->getUASID(), 100.0 * state.drop_rate_comm/10000.0f); } break; case MAVLINK_MSG_ID_ATTITUDE: -- GitLab