Browse Source

Added updating of loss counter

QGC4.4
lm 15 years ago
parent
commit
2adb1f828f
  1. 2
      src/comm/MAVLinkProtocol.cc

2
src/comm/MAVLinkProtocol.cc

@ -258,7 +258,7 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b) @@ -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

Loading…
Cancel
Save