From f88f0b7d81911b0e47377f73d25ac64571d33014 Mon Sep 17 00:00:00 2001 From: "Pawel Spychalski (DzikuVx)" Date: Tue, 8 Nov 2016 12:00:23 +0100 Subject: [PATCH] accSoftLpfHz --- js/fc.js | 3 ++- js/msp.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/js/fc.js b/js/fc.js index 79a9a305..a658f6a7 100644 --- a/js/fc.js +++ b/js/fc.js @@ -218,7 +218,8 @@ var FC = { magHoldRateLimit: null, magHoldErrorLpfFrequency: null, yawJumpPreventionLimit: null, - gyroscopeLpf: null + gyroscopeLpf: null, + accSoftLpfHz: null } _3D = { diff --git a/js/msp.js b/js/msp.js index 2fc70274..73103fba 100644 --- a/js/msp.js +++ b/js/msp.js @@ -1106,6 +1106,7 @@ var MSP = { INAV_PID_CONFIG.magHoldErrorLpfFrequency = data.getUint8(6); INAV_PID_CONFIG.yawJumpPreventionLimit = data.getUint16(7); INAV_PID_CONFIG.gyroscopeLpf = data.getUint8(9); + INAV_PID_CONFIG.accSoftLpfHz = data.getUint8(10); break; case MSP_codes.MSP_SET_INAV_PID: @@ -1527,12 +1528,12 @@ MSP.crunch = function (code) { buffer.push(highByte(INAV_PID_CONFIG.yawJumpPreventionLimit)); buffer.push(INAV_PID_CONFIG.gyroscopeLpf); + buffer.push(INAV_PID_CONFIG.accSoftLpfHz); buffer.push(0); //reserved buffer.push(0); //reserved buffer.push(0); //reserved buffer.push(0); //reserved - buffer.push(0); //reserved break; default: