mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 21:05:30 +03:00
Updating UI for interpolation / fixing alignment
This commit is contained in:
parent
763b279f8f
commit
9025430bee
5 changed files with 33 additions and 46 deletions
|
@ -764,9 +764,6 @@ MspHelper.prototype.process_data = function(dataHandler) {
|
|||
RX_CONFIG.spektrum_sat_bind = data.readU8();
|
||||
RX_CONFIG.rx_min_usec = data.readU16();
|
||||
RX_CONFIG.rx_max_usec = data.readU16();
|
||||
RX_CONFIG.rcInterpolation = 0;
|
||||
RX_CONFIG.rcInterpolationInterval = 0;
|
||||
RX_CONFIG.airModeActivateThreshold = 0;
|
||||
if (semver.gte(CONFIG.apiVersion, "1.20.0")) {
|
||||
RX_CONFIG.rcInterpolation = data.readU8();
|
||||
RX_CONFIG.rcInterpolationInterval = data.readU8();
|
||||
|
@ -784,8 +781,19 @@ MspHelper.prototype.process_data = function(dataHandler) {
|
|||
RX_CONFIG.rcSmoothingInputType = data.readU8();
|
||||
RX_CONFIG.rcSmoothingDerivativeType = data.readU8();
|
||||
}
|
||||
} else {
|
||||
RX_CONFIG.rxSpiProtocol = 0;
|
||||
RX_CONFIG.rxSpiId = 0;
|
||||
RX_CONFIG.rxSpiRfChannelCount = 0;
|
||||
RX_CONFIG.fpvCamAngleDegrees = 0;
|
||||
}
|
||||
} else {
|
||||
RX_CONFIG.rcInterpolation = 0;
|
||||
RX_CONFIG.rcInterpolationInterval = 0;
|
||||
RX_CONFIG.airModeActivateThreshold = 0;
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
|
||||
case MSPCodes.MSP_FAILSAFE_CONFIG:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue