Add support for "Auto" RC Smoothing derivative type
parent
49d0793c97
commit
f3cefcef81
|
@ -1625,7 +1625,7 @@
|
|||
"message": "The channels smoothing applies to"
|
||||
},
|
||||
"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": {
|
||||
"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": {
|
||||
"message": "Off"
|
||||
},
|
||||
"receiverRcSmoothingDerivativeTypeAuto": {
|
||||
"message": "Auto"
|
||||
},
|
||||
"receiverRcSmoothingChannel": {
|
||||
"message": "Channels Smoothed"
|
||||
},
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue