mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-17 05:15:21 +03:00
Add support for "Auto" RC Smoothing derivative type
This commit is contained in:
parent
49d0793c97
commit
f3cefcef81
2 changed files with 9 additions and 1 deletions
|
@ -1625,7 +1625,7 @@
|
||||||
"message": "The channels smoothing applies to"
|
"message": "The channels smoothing applies to"
|
||||||
},
|
},
|
||||||
"rcSmoothingDerivativeTypeHelp": {
|
"rcSmoothingDerivativeTypeHelp": {
|
||||||
"message": "The type of filtering method used for the setpoint derivative. Most users should use the default \"BIQUAD\" value as it provides a good balance between smoothness and delay. \"PT1\" reduces the delay slightly but provides less smoothing."
|
"message": "The type of filtering method used for the setpoint derivative. Starting with 4.2 the default value of \"Auto\" is recommended. For 4.1 and earlier most users should use the default \"BIQUAD\" value as it provides a good balance between smoothness and delay. \"PT1\" reduces the delay slightly but provides less smoothing."
|
||||||
},
|
},
|
||||||
"rcSmoothingInputTypeHelp": {
|
"rcSmoothingInputTypeHelp": {
|
||||||
"message": "The type of filtering method used for the input. Most users should use the default \"BIQUAD\" value as it provides a good balance between smoothness and delay. \"PT1\" reduces the delay slightly but provides less smoothing."
|
"message": "The type of filtering method used for the input. Most users should use the default \"BIQUAD\" value as it provides a good balance between smoothness and delay. \"PT1\" reduces the delay slightly but provides less smoothing."
|
||||||
|
@ -1651,6 +1651,9 @@
|
||||||
"receiverRcSmoothingDerivativeTypeOff": {
|
"receiverRcSmoothingDerivativeTypeOff": {
|
||||||
"message": "Off"
|
"message": "Off"
|
||||||
},
|
},
|
||||||
|
"receiverRcSmoothingDerivativeTypeAuto": {
|
||||||
|
"message": "Auto"
|
||||||
|
},
|
||||||
"receiverRcSmoothingChannel": {
|
"receiverRcSmoothingChannel": {
|
||||||
"message": "Channels Smoothed"
|
"message": "Channels Smoothed"
|
||||||
},
|
},
|
||||||
|
|
|
@ -383,6 +383,11 @@ TABS.receiver.initialize = function (callback) {
|
||||||
});
|
});
|
||||||
rcSmoothingnDerivativeNumberElement.val(RX_CONFIG.rcSmoothingDerivativeCutoff);
|
rcSmoothingnDerivativeNumberElement.val(RX_CONFIG.rcSmoothingDerivativeCutoff);
|
||||||
var rc_smoothing_derivative_type = $('select[name="rcSmoothingDerivativeType-select"]');
|
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 () {
|
rc_smoothing_derivative_type.change(function () {
|
||||||
RX_CONFIG.rcSmoothingDerivativeType = $(this).val();
|
RX_CONFIG.rcSmoothingDerivativeType = $(this).val();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue