|
|
|
@ -177,7 +177,7 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link)
@@ -177,7 +177,7 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link)
|
|
|
|
|
//if ()
|
|
|
|
|
|
|
|
|
|
// If a new loss was detected or we just hit one 128th packet step
|
|
|
|
|
if (lastLoss != totalLossCounter || (totalReceiveCounter & 0b1111111) == 0) |
|
|
|
|
if (lastLoss != totalLossCounter || (totalReceiveCounter & 0x7F) == 0) |
|
|
|
|
{ |
|
|
|
|
// Calculate new loss ratio
|
|
|
|
|
// Receive loss
|
|
|
|
|