Skip to content

Commit

Permalink
AP_Scripting: added INS filters to revert list
Browse files Browse the repository at this point in the history
these may be changed in a tuning session
  • Loading branch information
tridge committed Oct 12, 2023
1 parent c858b72 commit 2cb1f9b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libraries/AP_Scripting/applets/revert_param.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2cb1f9b

Please sign in to comment.