mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-24 00:35:20 +03:00
Init
This commit is contained in:
parent
939f5af04b
commit
f24ccfc637
96 changed files with 16438 additions and 8058 deletions
|
@ -6,13 +6,12 @@ TABS.advanced_tuning.initialize = function (callback) {
|
|||
|
||||
if (GUI.active_tab != 'advanced_tuning') {
|
||||
GUI.active_tab = 'advanced_tuning';
|
||||
googleAnalytics.sendAppView('AdvancedTuning');
|
||||
}
|
||||
|
||||
loadHtml();
|
||||
|
||||
function loadHtml() {
|
||||
GUI.load("./tabs/advanced_tuning.html", Settings.processHtml(function () {
|
||||
GUI.load(path.join(__dirname, "tabs/advanced_tuning.html"), Settings.processHtml(function () {
|
||||
|
||||
if (FC.isAirplane()) {
|
||||
$('.airplaneTuning').show();
|
||||
|
@ -36,7 +35,7 @@ TABS.advanced_tuning.initialize = function (callback) {
|
|||
|
||||
GUI.simpleBind();
|
||||
|
||||
localize();
|
||||
localization.localize();;
|
||||
|
||||
// Set up required field warnings
|
||||
$('#launchIdleThr').keyup(function() {
|
||||
|
@ -78,7 +77,7 @@ TABS.advanced_tuning.initialize = function (callback) {
|
|||
|
||||
function reboot() {
|
||||
//noinspection JSUnresolvedVariable
|
||||
GUI.log(chrome.i18n.getMessage('configurationEepromSaved'));
|
||||
GUI.log(localization.getMessage('configurationEepromSaved'));
|
||||
GUI.tab_switch_cleanup(function () {
|
||||
MSP.send_message(MSPCodes.MSP_SET_REBOOT, false, false, reinitialize);
|
||||
});
|
||||
|
@ -86,12 +85,11 @@ TABS.advanced_tuning.initialize = function (callback) {
|
|||
|
||||
function reinitialize() {
|
||||
//noinspection JSUnresolvedVariable
|
||||
GUI.log(chrome.i18n.getMessage('deviceRebooting'));
|
||||
GUI.log(localization.getMessage('deviceRebooting'));
|
||||
GUI.handleReconnect($('.tab_advanced_tuning a'));
|
||||
}
|
||||
};
|
||||
|
||||
$incLD = 0;
|
||||
|
||||
TABS.advanced_tuning.checkRequirements_IdleThrottle = function() {
|
||||
let idleThrottle = $('#launchIdleThr');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue