1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 11:29:53 +03:00

Status updated changes

This commit is contained in:
Pawel Spychalski (DzikuVx) 2024-04-26 21:36:02 +02:00
parent 6b5440f437
commit 20e36b9b65
4 changed files with 1 additions and 18 deletions

View file

@ -313,14 +313,6 @@ var mspQueue = function () {
};
publicScope.shouldDrop = function () {
return (Math.round(Math.random()*100) < privateScope.dropRatio);
};
publicScope.shouldDropStatus = function () {
return (Math.round(Math.random()*100) < (privateScope.dropRatio * privateScope.statusDropFactor));
};
/**
* This method return periodic for polling interval that should populate queue in 80% or less
* @param {number} requestedInterval