mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-15 12:25:13 +03:00
Status updated changes
This commit is contained in:
parent
6b5440f437
commit
20e36b9b65
4 changed files with 1 additions and 18 deletions
|
@ -269,7 +269,7 @@ var MSP = {
|
||||||
*/
|
*/
|
||||||
timeout.add('delayedFreeHardLock', function() {
|
timeout.add('delayedFreeHardLock', function() {
|
||||||
mspQueue.freeHardLock();
|
mspQueue.freeHardLock();
|
||||||
}, 50);
|
}, 10);
|
||||||
|
|
||||||
// Reset variables
|
// Reset variables
|
||||||
this.message_length_received = 0;
|
this.message_length_received = 0;
|
||||||
|
|
|
@ -104,11 +104,6 @@ const mspQueue = require('./serial_queue');
|
||||||
|
|
||||||
if (!stoppped && GUI.active_tab != 'cli') {
|
if (!stoppped && GUI.active_tab != 'cli') {
|
||||||
|
|
||||||
if (mspQueue.shouldDropStatus()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
MSP.send_message(MSPCodes.MSP_SENSOR_STATUS, false, false);
|
MSP.send_message(MSPCodes.MSP_SENSOR_STATUS, false, false);
|
||||||
MSP.send_message(MSPCodes.MSPV2_INAV_STATUS, false, false);
|
MSP.send_message(MSPCodes.MSPV2_INAV_STATUS, false, false);
|
||||||
MSP.send_message(MSPCodes.MSP_ACTIVEBOXES, false, false);
|
MSP.send_message(MSPCodes.MSP_ACTIVEBOXES, false, false);
|
||||||
|
|
|
@ -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
|
* This method return periodic for polling interval that should populate queue in 80% or less
|
||||||
* @param {number} requestedInterval
|
* @param {number} requestedInterval
|
||||||
|
|
|
@ -341,10 +341,6 @@ TABS.mission_control.initialize = function (callback) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mspQueue.shouldDrop()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
get_raw_gps_data();
|
get_raw_gps_data();
|
||||||
}, 200);
|
}, 200);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue