mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-15 12:25:13 +03:00
pulling main switch on compatibility (this should go live on November 1st 2014)
This commit is contained in:
parent
b35590f052
commit
81a2872360
4 changed files with 7 additions and 31 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
var CONFIGURATOR = {
|
var CONFIGURATOR = {
|
||||||
'releaseDate': 1412546773959, // new Date().getTime() - 10.06.2014
|
'releaseDate': 1412546773959, // new Date().getTime() - 10.06.2014
|
||||||
'firmwareVersionAccepted': 2.3,
|
'firmwareVersionAccepted': 2.31,
|
||||||
'connectionValid': false,
|
'connectionValid': false,
|
||||||
'cliActive': false,
|
'cliActive': false,
|
||||||
'cliValid': false
|
'cliValid': false
|
||||||
|
|
|
@ -139,32 +139,14 @@ function onOpen(openInfo) {
|
||||||
MSP.send_message(MSP_codes.MSP_IDENT, false, false, function () {
|
MSP.send_message(MSP_codes.MSP_IDENT, false, false, function () {
|
||||||
GUI.timeout_remove('connecting'); // kill connecting timer
|
GUI.timeout_remove('connecting'); // kill connecting timer
|
||||||
|
|
||||||
// TODO clean / remove this after compatibility period is over
|
if (CONFIG.version >= CONFIGURATOR.firmwareVersionAccepted) {
|
||||||
|
CONFIGURATOR.connectionValid = true;
|
||||||
|
|
||||||
if (!bit_check(CONFIG.capability, 30)) {
|
$('div#port-picker a.connect').text(chrome.i18n.getMessage('disconnect')).addClass('active');
|
||||||
GUI.log('Configurator detected that you are running an old version of the firmware and will operate in compatibility mode,\
|
$('#tabs li a:first').click();
|
||||||
to enjoy all of the recently implemented features, please <strong>update</strong> your firmware.');
|
|
||||||
|
|
||||||
if (CONFIG.version >= CONFIGURATOR.firmwareVersionAccepted) {
|
|
||||||
CONFIGURATOR.connectionValid = true;
|
|
||||||
|
|
||||||
$('div#port-picker a.connect').text(chrome.i18n.getMessage('disconnect')).addClass('active');
|
|
||||||
$('#tabs li a:first').click();
|
|
||||||
} else {
|
|
||||||
GUI.log(chrome.i18n.getMessage('firmwareVersionNotSupported', [CONFIGURATOR.firmwareVersionAccepted]));
|
|
||||||
$('div#port-picker a.connect').click(); // disconnect
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
MSP.send_message(MSP_codes.MSP_BUILDINFO, false, false, function () {
|
GUI.log(chrome.i18n.getMessage('firmwareVersionNotSupported', [CONFIGURATOR.firmwareVersionAccepted]));
|
||||||
googleAnalytics.sendEvent('Firmware', 'Using', CONFIG.buildInfo);
|
$('div#port-picker a.connect').click(); // disconnect
|
||||||
GUI.log('Running firmware released on: <strong>' + CONFIG.buildInfo + '</strong>');
|
|
||||||
|
|
||||||
// continue as usually
|
|
||||||
CONFIGURATOR.connectionValid = true;
|
|
||||||
|
|
||||||
$('div#port-picker a.connect').text(chrome.i18n.getMessage('disconnect')).addClass('active');
|
|
||||||
$('#tabs li a:first').click();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -169,7 +169,6 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.tab-motor_outputs .motor_testing {
|
.tab-motor_outputs .motor_testing {
|
||||||
display: none;
|
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
}
|
}
|
||||||
.tab-motor_outputs .motor_testing .left {
|
.tab-motor_outputs .motor_testing .left {
|
||||||
|
|
|
@ -233,11 +233,6 @@ TABS.motor_outputs.initialize = function (callback) {
|
||||||
accel_offset_established = false;
|
accel_offset_established = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
// if CAP_DYNBALANCE is true
|
|
||||||
if (bit_check(CONFIG.capability, 2)) {
|
|
||||||
$('div.motor_testing').show();
|
|
||||||
}
|
|
||||||
|
|
||||||
var number_of_valid_outputs = (MOTOR_DATA.indexOf(0) > -1) ? MOTOR_DATA.indexOf(0) : 8;
|
var number_of_valid_outputs = (MOTOR_DATA.indexOf(0) > -1) ? MOTOR_DATA.indexOf(0) : 8;
|
||||||
|
|
||||||
var motors_wrapper = $('.motors .bar-wrapper'),
|
var motors_wrapper = $('.motors .bar-wrapper'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue