AP_Scripting: added INS filters to revert list

these may be changed in a tuning session
This commit is contained in:
Andrew Tridgell 2023-10-11 09:49:36 +11:00
parent c858b7201d
commit 2cb1f9bbb9
1 changed files with 7 additions and 0 deletions

View File

@ -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