1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 16:25:22 +03:00

Fixed configurator problems with 3.0.0.

This commit is contained in:
mikeller 2016-07-30 23:31:40 +12:00
parent 0c26117c56
commit 7cc9401d42

View file

@ -1535,7 +1535,7 @@ MSP.crunch = function (code) {
buffer.push(highByte(RX_CONFIG.rx_min_usec)); buffer.push(highByte(RX_CONFIG.rx_min_usec));
buffer.push(lowByte(RX_CONFIG.rx_max_usec)); buffer.push(lowByte(RX_CONFIG.rx_max_usec));
buffer.push(highByte(RX_CONFIG.rx_max_usec)); buffer.push(highByte(RX_CONFIG.rx_max_usec));
if (semver.lt(CONFIG.apiVersion, "1.20.0")) { if (semver.gte(CONFIG.apiVersion, "1.20.0")) {
buffer.push(RX_CONFIG.rcSmoothing); buffer.push(RX_CONFIG.rcSmoothing);
buffer.push(RX_CONFIG.rcSmoothInterval); buffer.push(RX_CONFIG.rcSmoothInterval);
buffer.push(lowByte(RX_CONFIG.airModeActivateThreshold)); buffer.push(lowByte(RX_CONFIG.airModeActivateThreshold));
@ -1658,7 +1658,7 @@ MSP.crunch = function (code) {
.push16(ADVANCED_TUNING.yawItermIgnoreRate) .push16(ADVANCED_TUNING.yawItermIgnoreRate)
.push16(ADVANCED_TUNING.yaw_p_limit) .push16(ADVANCED_TUNING.yaw_p_limit)
.push8(ADVANCED_TUNING.deltaMethod); .push8(ADVANCED_TUNING.deltaMethod);
if (semver.lt(CONFIG.apiVersion, "1.20.0")) { if (semver.gte(CONFIG.apiVersion, "1.20.0")) {
buffer.push8(ADVANCED_TUNING.vbatPidCompensation) buffer.push8(ADVANCED_TUNING.vbatPidCompensation)
.push8(ADVANCED_TUNING.ptermSetpointWeight) .push8(ADVANCED_TUNING.ptermSetpointWeight)
.push8(ADVANCED_TUNING.dtermSetpointWeight) .push8(ADVANCED_TUNING.dtermSetpointWeight)