From 26442d0a7818e84c624473da31abc870c328f257 Mon Sep 17 00:00:00 2001 From: Miguel Angel Mulero Martinez Date: Tue, 26 Jun 2018 09:09:53 +0200 Subject: [PATCH] Fix lpf zero --- src/js/msp/MSPHelper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/msp/MSPHelper.js b/src/js/msp/MSPHelper.js index 6a7cd692..65ba1407 100644 --- a/src/js/msp/MSPHelper.js +++ b/src/js/msp/MSPHelper.js @@ -843,7 +843,7 @@ MspHelper.prototype.process_data = function(dataHandler) { if (semver.gte(CONFIG.apiVersion, "1.39.0")) { FILTER_CONFIG.gyro_hardware_lpf = data.readU8(); FILTER_CONFIG.gyro_32khz_hardware_lpf = data.readU8(); - FILTER_CONFIG.gyro_soft_lpf_hz = data.readU16(); + FILTER_CONFIG.gyro_lowpass_hz = data.readU16(); FILTER_CONFIG.gyro_lowpass2_hz = data.readU16(); FILTER_CONFIG.gyro_lowpass_type = data.readU8(); FILTER_CONFIG.gyro_lowpass2_type = data.readU8(); @@ -1472,7 +1472,7 @@ MspHelper.prototype.crunch = function(code) { } break; case MSPCodes.MSP_SET_FILTER_CONFIG: - buffer.push8(FILTER_CONFIG.gyro_soft_lpf_hz) + buffer.push8(FILTER_CONFIG.gyro_lowpass_hz) .push16(FILTER_CONFIG.dterm_lowpass_hz) .push16(FILTER_CONFIG.yaw_lowpass_hz); if (semver.gte(CONFIG.apiVersion, "1.20.0")) {