From 6ddaf81439cee1ce46f7aa5dc6ca1086a377ffdf Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Fri, 23 Aug 2019 15:28:03 +0900 Subject: [PATCH] Copter: param conversion for INS_NOTCH_FREQ and BW --- ArduCopter/Parameters.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ArduCopter/Parameters.cpp b/ArduCopter/Parameters.cpp index 0d27463eb1..e81bccaa9f 100644 --- a/ArduCopter/Parameters.cpp +++ b/ArduCopter/Parameters.cpp @@ -1237,6 +1237,16 @@ void Copter::convert_pid_parameters(void) AP_Param::convert_old_parameters(&ff_and_filt_conversion_info[i], 1.0f); } + // notch filter parameter conversions (changed position and type) for Copter-3.7 + const AP_Param::ConversionInfo notchfilt_conversion_info[] = { + { Parameters::k_param_ins, 165, AP_PARAM_INT16, "INS_NOTCH_FREQ" }, + { Parameters::k_param_ins, 229, AP_PARAM_INT16, "INS_NOTCH_BW" }, + }; + uint8_t notchfilt_table_size = ARRAY_SIZE(notchfilt_conversion_info); + for (uint8_t i=0; i