mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 00:05:22 +03:00
Add FF Interpolation Options
Sonar issues Move to Msp 1.44 and some fixes sonar sonar2 new sonar issues Suggested changes Default to AVG_2 Fix Indexation remove HEAD word fix API const and sonnar
This commit is contained in:
parent
27848ca94a
commit
f5410499dd
5 changed files with 99 additions and 2 deletions
|
@ -395,8 +395,6 @@ TABS.pid_tuning.initialize = function (callback) {
|
|||
$('.pid_filter input[name="rpmFilterHarmonics"]').val(FILTER_DEFAULT.gyro_rpm_notch_harmonics);
|
||||
}
|
||||
}).prop('checked', FILTER_CONFIG.gyro_rpm_notch_harmonics != 0).change();
|
||||
|
||||
|
||||
} else {
|
||||
$('.itermRelaxCutoff').hide();
|
||||
$('.dynamicNotch').hide();
|
||||
|
@ -438,6 +436,25 @@ TABS.pid_tuning.initialize = function (callback) {
|
|||
$('.rates_type').hide();
|
||||
}
|
||||
|
||||
if (semver.gte(CONFIG.apiVersion, API_VERSION_1_44)) {
|
||||
// FF Interpolate
|
||||
const ffInterpolateCheck = $('input[id="ffInterpolateSp"]');
|
||||
|
||||
ffInterpolateCheck.prop('checked', ADVANCED_TUNING.ff_interpolate_sp !== 0);
|
||||
$('select[id="ffInterpolate"]').val(ADVANCED_TUNING.ff_interpolate_sp > 0 ? ADVANCED_TUNING.ff_interpolate_sp : 2);
|
||||
$('input[name="ffSmoothFactor"]').val(ADVANCED_TUNING.ff_smooth_factor);
|
||||
$('input[name="ffBoost"]').val(ADVANCED_TUNING.ff_boost);
|
||||
|
||||
ffInterpolateCheck.change(function() {
|
||||
const checked = $(this).is(':checked');
|
||||
$('.ffInterpolateSp .suboption').toggle(checked);
|
||||
});
|
||||
ffInterpolateCheck.change();
|
||||
|
||||
} else {
|
||||
$('.ffInterpolateSp').hide();
|
||||
}
|
||||
|
||||
$('input[id="useIntegratedYaw"]').change(function() {
|
||||
var checked = $(this).is(':checked');
|
||||
$('#pidTuningIntegratedYawCaution').toggle(checked);
|
||||
|
@ -898,7 +915,11 @@ TABS.pid_tuning.initialize = function (callback) {
|
|||
|
||||
RC_tuning.rates_type = selectedRatesType;
|
||||
}
|
||||
|
||||
if (semver.gte(CONFIG.apiVersion, API_VERSION_1_44)) {
|
||||
ADVANCED_TUNING.ff_interpolate_sp = $('input[id="ffInterpolateSp"]').is(':checked') ? $('select[id="ffInterpolate"]').val() : 0;
|
||||
ADVANCED_TUNING.ff_smooth_factor = parseInt($('input[name="ffSmoothFactor"]').val());
|
||||
ADVANCED_TUNING.ff_boost = parseInt($('input[name="ffBoost"]').val());
|
||||
FILTER_CONFIG.dyn_lpf_curve_expo = parseInt($('.pid_filter input[name="dtermLowpassDynExpo"]').val());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue