1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 12:55:14 +03:00

Add support for "Auto" RC Smoothing derivative type

This commit is contained in:
Bruce Luckcuck 2019-11-30 10:08:18 -05:00
parent 49d0793c97
commit f3cefcef81
2 changed files with 9 additions and 1 deletions

View file

@ -383,6 +383,11 @@ TABS.receiver.initialize = function (callback) {
});
rcSmoothingnDerivativeNumberElement.val(RX_CONFIG.rcSmoothingDerivativeCutoff);
var rc_smoothing_derivative_type = $('select[name="rcSmoothingDerivativeType-select"]');
if (semver.gte(CONFIG.apiVersion, "1.43.0")) {
rc_smoothing_derivative_type.append($(`<option value="3">${i18n.getMessage("receiverRcSmoothingDerivativeTypeAuto")}</option>`));
}
rc_smoothing_derivative_type.change(function () {
RX_CONFIG.rcSmoothingDerivativeType = $(this).val();
});