mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-24 08:45:26 +03:00
On connect load in series, not in parallel
This commit is contained in:
parent
20e36b9b65
commit
9f9aa84170
1 changed files with 25 additions and 24 deletions
|
@ -454,35 +454,36 @@ var SerialBackend = (function () {
|
||||||
$('.mode-disconnected').hide();
|
$('.mode-disconnected').hide();
|
||||||
$('.mode-connected').show();
|
$('.mode-connected').show();
|
||||||
|
|
||||||
MSP.send_message(MSPCodes.MSP_DATAFLASH_SUMMARY, false, false);
|
MSP.send_message(MSPCodes.MSP_DATAFLASH_SUMMARY, false, false, function () {
|
||||||
|
$('#sensor-status').show();
|
||||||
|
$('#portsinput').hide();
|
||||||
|
$('#dataflash_wrapper_global').show();
|
||||||
|
|
||||||
$('#sensor-status').show();
|
/*
|
||||||
$('#portsinput').hide();
|
* Get BOXNAMES since it is used for some reason....
|
||||||
$('#dataflash_wrapper_global').show();
|
*/
|
||||||
|
MSP.send_message(MSPCodes.MSP_BOXNAMES, false, false, function () {
|
||||||
|
/*
|
||||||
|
* Init PIDs bank with a length that depends on the version
|
||||||
|
*/
|
||||||
|
let pidCount = 11;
|
||||||
|
|
||||||
/*
|
for (let i = 0; i < pidCount; i++) {
|
||||||
* Get BOXNAMES since it is used for some reason....
|
FC.PIDs.push(new Array(4));
|
||||||
*/
|
}
|
||||||
MSP.send_message(MSPCodes.MSP_BOXNAMES, false, false);
|
|
||||||
|
|
||||||
/*
|
interval.add('msp-load-update', function () {
|
||||||
* Init PIDs bank with a length that depends on the version
|
$('#msp-version').text("MSP version: " + MSP.protocolVersion.toFixed(0));
|
||||||
*/
|
$('#msp-load').text("MSP load: " + mspQueue.getLoad().toFixed(1));
|
||||||
let pidCount = 11;
|
$('#msp-roundtrip').text("MSP round trip: " + mspQueue.getRoundtrip().toFixed(0));
|
||||||
|
$('#hardware-roundtrip').text("HW round trip: " + mspQueue.getHardwareRoundtrip().toFixed(0));
|
||||||
|
$('#drop-rate').text("Drop ratio: " + mspQueue.getDropRatio().toFixed(0) + "%");
|
||||||
|
}, 100);
|
||||||
|
|
||||||
for (let i = 0; i < pidCount; i++) {
|
interval.add('global_data_refresh', periodicStatusUpdater.run, periodicStatusUpdater.getUpdateInterval(CONFIGURATOR.connection.bitrate), false);
|
||||||
FC.PIDs.push(new Array(4));
|
});
|
||||||
}
|
});
|
||||||
|
|
||||||
interval.add('msp-load-update', function () {
|
|
||||||
$('#msp-version').text("MSP version: " + MSP.protocolVersion.toFixed(0));
|
|
||||||
$('#msp-load').text("MSP load: " + mspQueue.getLoad().toFixed(1));
|
|
||||||
$('#msp-roundtrip').text("MSP round trip: " + mspQueue.getRoundtrip().toFixed(0));
|
|
||||||
$('#hardware-roundtrip').text("HW round trip: " + mspQueue.getHardwareRoundtrip().toFixed(0));
|
|
||||||
$('#drop-rate').text("Drop ratio: " + mspQueue.getDropRatio().toFixed(0) + "%");
|
|
||||||
}, 100);
|
|
||||||
|
|
||||||
interval.add('global_data_refresh', periodicStatusUpdater.run, periodicStatusUpdater.getUpdateInterval(CONFIGURATOR.connection.bitrate), false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
privateScope.onClosed = function (result) {
|
privateScope.onClosed = function (result) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue