|
|
|
@ -39,6 +39,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
|
|
|
|
mspHelper.loadINAVPidConfig,
|
|
|
|
|
mspHelper.loadSensorConfig,
|
|
|
|
|
mspHelper.loadVTXConfig,
|
|
|
|
|
mspHelper.loadMixerConfig,
|
|
|
|
|
loadCraftName
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
@ -544,7 +545,8 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
|
|
|
|
$asyncMode = $('#async-mode'),
|
|
|
|
|
$gyroFrequency = $('#gyro-frequency'),
|
|
|
|
|
$accelerometerFrequency = $('#accelerometer-frequency'),
|
|
|
|
|
$attitudeFrequency = $('#attitude-frequency');
|
|
|
|
|
$attitudeFrequency = $('#attitude-frequency'),
|
|
|
|
|
$gyroLpfMessage = $('#gyrolpf-info');
|
|
|
|
|
|
|
|
|
|
var values = FC.getGyroLpfValues();
|
|
|
|
|
|
|
|
|
@ -573,6 +575,44 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
|
|
|
|
GUI.fillSelect($gyroFrequency, FC.getGyroFrequencies()[FC.getGyroLpfValues()[INAV_PID_CONFIG.gyroscopeLpf].tick].looptimes);
|
|
|
|
|
$gyroFrequency.val(FC.getLooptimes()[FC.getGyroLpfValues()[INAV_PID_CONFIG.gyroscopeLpf].tick].defaultLooptime);
|
|
|
|
|
$gyroFrequency.change();
|
|
|
|
|
|
|
|
|
|
$gyroLpfMessage.hide();
|
|
|
|
|
$gyroLpfMessage.removeClass('ok-box');
|
|
|
|
|
$gyroLpfMessage.removeClass('info-box');
|
|
|
|
|
$gyroLpfMessage.removeClass('warning-box');
|
|
|
|
|
|
|
|
|
|
if (MIXER_CONFIG.platformType == PLATFORM_MULTIROTOR || MIXER_CONFIG.platformType == PLATFORM_TRICOPTER) {
|
|
|
|
|
console.log($gyroLpfMessage);
|
|
|
|
|
switch (parseInt(INAV_PID_CONFIG.gyroscopeLpf, 10)) {
|
|
|
|
|
case 0:
|
|
|
|
|
$gyroLpfMessage.html(chrome.i18n.getMessage('gyroLpfSuggestedMessage'));
|
|
|
|
|
$gyroLpfMessage.addClass('ok-box');
|
|
|
|
|
$gyroLpfMessage.show();
|
|
|
|
|
break;
|
|
|
|
|
case 1:
|
|
|
|
|
$gyroLpfMessage.html(chrome.i18n.getMessage('gyroLpfWhyNotHigherMessage'));
|
|
|
|
|
$gyroLpfMessage.addClass('info-box');
|
|
|
|
|
$gyroLpfMessage.show();
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
$gyroLpfMessage.html(chrome.i18n.getMessage('gyroLpfWhyNotSlightlyHigherMessage'));
|
|
|
|
|
$gyroLpfMessage.addClass('info-box');
|
|
|
|
|
$gyroLpfMessage.show();
|
|
|
|
|
break
|
|
|
|
|
case 3:
|
|
|
|
|
$gyroLpfMessage.html(chrome.i18n.getMessage('gyroLpfNotAdvisedMessage'));
|
|
|
|
|
$gyroLpfMessage.addClass('info-box');
|
|
|
|
|
$gyroLpfMessage.show();
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
case 5:
|
|
|
|
|
$gyroLpfMessage.html(chrome.i18n.getMessage('gyroLpfNotFlyableMessage'));
|
|
|
|
|
$gyroLpfMessage.addClass('warning-box');
|
|
|
|
|
$gyroLpfMessage.show();
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$gyroLpf.change();
|
|
|
|
|