mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 21:05:30 +03:00
Add rcsmoothing auto smoothness to UI
This commit is contained in:
parent
e3e79f6e81
commit
70464f5ff2
5 changed files with 77 additions and 4 deletions
|
@ -896,6 +896,10 @@ MspHelper.prototype.process_data = function(dataHandler) {
|
|||
RX_CONFIG.rcSmoothingDerivativeCutoff = data.readU8();
|
||||
RX_CONFIG.rcSmoothingInputType = data.readU8();
|
||||
RX_CONFIG.rcSmoothingDerivativeType = data.readU8();
|
||||
if (semver.gte(CONFIG.apiVersion, "1.42.0")) {
|
||||
RX_CONFIG.usbCdcHidType = data.readU8();
|
||||
RX_CONFIG.rcSmoothingAutoSmoothness = data.readU8();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
RX_CONFIG.rxSpiProtocol = 0;
|
||||
|
@ -1687,6 +1691,10 @@ MspHelper.prototype.crunch = function(code) {
|
|||
.push8(RX_CONFIG.rcSmoothingDerivativeCutoff)
|
||||
.push8(RX_CONFIG.rcSmoothingInputType)
|
||||
.push8(RX_CONFIG.rcSmoothingDerivativeType);
|
||||
if (semver.gte(CONFIG.apiVersion, "1.42.0")) {
|
||||
buffer.push8(RX_CONFIG.usbCdcHidType)
|
||||
.push8(RX_CONFIG.rcSmoothingAutoSmoothness);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue