Merge pull request #2040 from iNavFlight/dzikuvx-groundstation-activation

Activate groundstation when MSP switches to LTM
pull/2042/head
Paweł Spychalski 5 months ago committed by GitHub
commit a4fd2bce9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -91,7 +91,7 @@ GUI_control.prototype.log = function (message) {
GUI_control.prototype.tab_switch_cleanup = function (callback) {
MSP.callbacks_cleanup(); // we don't care about any old data that might or might not arrive
interval.killAll(['global_data_refresh', 'msp-load-update']);
interval.killAll(['global_data_refresh', 'msp-load-update', 'ltm-connection-check']);
mspBalancedInterval.flush();
if (this.active_tab) {

@ -111,6 +111,8 @@ var interval = function () {
publicScope.killAll = function (keep_array) {
var timers_killed = 0;
console.log('Killing all intervals except: ' + keep_array);
for (var i = (privateScope.intervals.length - 1); i >= 0; i--) { // reverse iteration
var keep = false;
if (keep_array) { // only run through the array if it exists
@ -131,6 +133,10 @@ var interval = function () {
return timers_killed;
};
publicScope.list = function () {
return privateScope.intervals;
};
return publicScope;
}();

@ -774,7 +774,7 @@ TABS.firmware_flasher.onValidFirmware = function() {
TABS.firmware_flasher.closeTempConnection = function() {
timeout.killAll();
interval.killAll(['global_data_refresh', 'msp-load-update']);
interval.killAll(['global_data_refresh', 'msp-load-update', 'ltm-connection-check']);
mspBalancedInterval.flush();
mspQueue.flush();

@ -105,7 +105,7 @@ TABS.logging.initialize = function (callback) {
GUI.log(i18n.getMessage('loggingErrorOneProperty'));
}
} else {
interval.killAll(['global_data_refresh', 'msp-load-update']);
interval.killAll(['global_data_refresh', 'msp-load-update', 'ltm-connection-check']);
mspBalancedInterval.flush();
$('.speed').prop('disabled', false);

@ -429,7 +429,7 @@ TABS.outputs.initialize = function (callback) {
$voltageHelper = $(".current-voltage");
// timer initialization
interval.killAll(['motor_and_status_pull', 'global_data_refresh', 'msp-load-update']);
interval.killAll(['motor_and_status_pull', 'global_data_refresh', 'msp-load-update', 'ltm-connection-check']);
mspBalancedInterval.flush();
interval.add('IMU_pull', function () {

@ -437,7 +437,7 @@ TABS.sensors.initialize = function (callback) {
});
// timer initialization
interval.killAll(['status_pull', 'global_data_refresh', 'msp-load-update']);
interval.killAll(['status_pull', 'global_data_refresh', 'msp-load-update', 'ltm-connection-check']);
// data pulling timers
if (checkboxes[0] || checkboxes[1] || checkboxes[2]) {

Loading…
Cancel
Save