From 303c33411f33bca33d69a6d18dba14028b9ce422 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 19 Feb 2024 08:50:38 +1100 Subject: [PATCH] AP_Scripting: fixed pitch param reversion in revert_param.lua --- libraries/AP_Scripting/applets/revert_param.lua | 4 ++-- libraries/AP_Scripting/applets/revert_param.md | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/libraries/AP_Scripting/applets/revert_param.lua b/libraries/AP_Scripting/applets/revert_param.lua index 9eb8938596b85..27dc9cc943bcf 100644 --- a/libraries/AP_Scripting/applets/revert_param.lua +++ b/libraries/AP_Scripting/applets/revert_param.lua @@ -57,7 +57,7 @@ local PID_prefixes = { "_RAT_RLL_", "_RAT_PIT_", "_RAT_YAW_" } local PID_suffixes = { "FF", "P", "I", "D", "D_FF", "PDMX", "NEF", "NTF", "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" } +local OTHER_PARAMS = { "INS_GYRO_FILTER", "INS_ACCEL_FILTER", "PTCH2SRV_TCONST", "RLL2SRV_TCONST" } if PREV_ENABLE:get() == 0 then return @@ -92,7 +92,7 @@ end -- add fixed wing tuning for _, suffix in ipairs(PID_suffixes) do add_param("RLL_RATE_" .. suffix) - add_param("PIT_RATE_" .. suffix) + add_param("PTCH_RATE_" .. suffix) add_param("YAW_RATE_" .. suffix) end diff --git a/libraries/AP_Scripting/applets/revert_param.md b/libraries/AP_Scripting/applets/revert_param.md index c2dc5835d0e5c..63d564db7b490 100644 --- a/libraries/AP_Scripting/applets/revert_param.md +++ b/libraries/AP_Scripting/applets/revert_param.md @@ -47,9 +47,6 @@ The script covers the following parameters on quadplanes: - Q_A_ANG_RLL_P - Q_A_ANG_PIT_P - Q_A_ANG_YAW_P - - RLL_RATE_* - - PTCH_RATE_* - - YAW_RATE_* - Q_P_ACCZ_* - Q_P_VELZ_* - Q_P_POSZ_* @@ -69,3 +66,10 @@ The script covers the following parameters on copters: - PSC_POSZ_* - PSC_VELXY_* - PSC_POSXY_* + +For fixed wing the following parameters are covered: + + - RLL_RATE_* + - PTCH_RATE_* + - RLL2SRV_TCONST + - PTCH2SRV_TCONST