From bd5eb93bc991e24f09dc75b8da733cccd00be102 Mon Sep 17 00:00:00 2001 From: "Pawel Spychalski (DzikuVx)" Date: Fri, 18 Dec 2020 14:06:05 +0100 Subject: [PATCH] Remove gyro_hardware_lpf from GUI --- js/defaults_dialog.js | 24 ++++++++++++++ js/preset_definitions.js | 72 ++++++++++++++++++++++++++++++++++++++++ tabs/configuration.html | 4 +-- 3 files changed, 98 insertions(+), 2 deletions(-) diff --git a/js/defaults_dialog.js b/js/defaults_dialog.js index a680c48c..5d2770ba 100644 --- a/js/defaults_dialog.js +++ b/js/defaults_dialog.js @@ -201,6 +201,18 @@ helper.defaultsDialog = (function() { "id": 3, "reboot": true, "settings": [ + { + key: "gyro_hardware_lpf", + value: "256HZ" + }, + { + key: "gyro_lpf_hz", + value: 40 + }, + { + key: "gyro_lpf_type", + value: "BIQUAD" + }, { key: "motor_pwm_protocol", value: "STANDARD" @@ -270,6 +282,18 @@ helper.defaultsDialog = (function() { "notRecommended": false, "reboot": true, "settings": [ + { + key: "gyro_hardware_lpf", + value: "256HZ" + }, + { + key: "gyro_lpf_hz", + value: 10 + }, + { + key: "gyro_lpf_type", + value: "BIQUAD" + }, { key: "motor_pwm_protocol", value: "STANDARD" diff --git a/js/preset_definitions.js b/js/preset_definitions.js index 0154fa86..a93d0af7 100644 --- a/js/preset_definitions.js +++ b/js/preset_definitions.js @@ -1257,6 +1257,18 @@ presets.presets = [ presets.elementHelper("INAV_PID_CONFIG", "gyroscopeLpf", 1) ], settings: [ + { + key: "gyro_hardware_lpf", + value: "256HZ" + }, + { + key: "gyro_lpf_hz", + value: 40 + }, + { + key: "gyro_lpf_type", + value: "BIQUAD" + }, { key: "platform_type", value: "AIRPLANE" @@ -1289,6 +1301,18 @@ presets.presets = [ presets.elementHelper("INAV_PID_CONFIG", "gyroscopeLpf", 4) ], settings: [ + { + key: "gyro_hardware_lpf", + value: "256HZ" + }, + { + key: "gyro_lpf_hz", + value: 40 + }, + { + key: "gyro_lpf_type", + value: "BIQUAD" + }, { key: "platform_type", value: "AIRPLANE" @@ -1346,6 +1370,18 @@ presets.presets = [ presets.elementHelper("RC_tuning", "dynamic_THR_breakpoint", 1600) ], settings: [ + { + key: "gyro_hardware_lpf", + value: "256HZ" + }, + { + key: "gyro_lpf_hz", + value: 40 + }, + { + key: "gyro_lpf_type", + value: "BIQUAD" + }, { key: "platform_type", value: "AIRPLANE" @@ -1403,6 +1439,18 @@ presets.presets = [ presets.elementHelper("RC_tuning", "dynamic_THR_breakpoint", 1550) ], settings: [ + { + key: "gyro_hardware_lpf", + value: "256HZ" + }, + { + key: "gyro_lpf_hz", + value: 40 + }, + { + key: "gyro_lpf_type", + value: "BIQUAD" + }, { key: "platform_type", value: "AIRPLANE" @@ -1460,6 +1508,18 @@ presets.presets = [ presets.elementHelper("RC_tuning", "dynamic_THR_breakpoint", 1500) ], settings: [ + { + key: "gyro_hardware_lpf", + value: "256HZ" + }, + { + key: "gyro_lpf_hz", + value: 40 + }, + { + key: "gyro_lpf_type", + value: "BIQUAD" + }, { key: "platform_type", value: "AIRPLANE" @@ -1519,6 +1579,18 @@ presets.presets = [ presets.elementHelper("RC_tuning", "pitch_rate", 120) ], settings: [ + { + key: "gyro_hardware_lpf", + value: "256HZ" + }, + { + key: "gyro_lpf_hz", + value: 40 + }, + { + key: "gyro_lpf_type", + value: "BIQUAD" + }, { key: "platform_type", value: "AIRPLANE" diff --git a/tabs/configuration.html b/tabs/configuration.html index 83a5e817..29eec03f 100644 --- a/tabs/configuration.html +++ b/tabs/configuration.html @@ -12,8 +12,8 @@
-
-
+ +