From 2cb1f9bbb9ec31177c2d4909cf4eb0b3632da8d9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 11 Oct 2023 09:49:36 +1100 Subject: [PATCH] AP_Scripting: added INS filters to revert list these may be changed in a tuning session --- libraries/AP_Scripting/applets/revert_param.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/AP_Scripting/applets/revert_param.lua b/libraries/AP_Scripting/applets/revert_param.lua index 6124d8353b413..b6cedcd227feb 100644 --- a/libraries/AP_Scripting/applets/revert_param.lua +++ b/libraries/AP_Scripting/applets/revert_param.lua @@ -57,6 +57,8 @@ local PID_prefixes = { "_RAT_RLL_", "_RAT_PIT_", "_RAT_YAW_" } local PID_suffixes = { "FF", "P", "I", "D", "IMAX", "FLTD", "FLTE", "FLTT", "SMAX" } local angle_axes = { "RLL", "PIT", "YAW" } local PSC_types = { "ACCZ", "VELZ", "POSZ", "VELXY", "POSXY" } +local OTHER_PARAMS = { "INS_GYRO_FILTER", "INS_ACCEL_FILTER" } + if PREV_ENABLE:get() == 0 then return end @@ -103,6 +105,11 @@ for _, psc in ipairs(PSC_prefixes) do end end +-- add in other parameters +for _, p in ipairs(OTHER_PARAMS) do + add_param(p) +end + local function revert_parameters() local count = 0