From 2adb1f828fc21fabc377aebb4582cf1e403db7ff Mon Sep 17 00:00:00 2001 From: lm Date: Thu, 2 Dec 2010 12:37:44 +0100 Subject: [PATCH] Added updating of loss counter --- src/comm/MAVLinkProtocol.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comm/MAVLinkProtocol.cc b/src/comm/MAVLinkProtocol.cc index c81b004..ef2e0d7 100644 --- a/src/comm/MAVLinkProtocol.cc +++ b/src/comm/MAVLinkProtocol.cc @@ -258,7 +258,7 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b) //if () // If a new loss was detected or we just hit one 128th packet step - if (lastLoss != totalLossCounter || (totalReceiveCounter == 128)) + if (lastLoss != totalLossCounter || (totalReceiveCounter % 64 == 0)) { // Calculate new loss ratio // Receive loss