From 11efad885a4b5b1564905cc3c0fb33c11be1a84e Mon Sep 17 00:00:00 2001 From: bkleiner Date: Sun, 11 Aug 2024 20:03:48 +0200 Subject: [PATCH] add config define for dynamic notch --- src/config/config.h | 2 ++ src/core/profile.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/config/config.h b/src/config/config.h index fa7f86ebd..1ed8c27e7 100644 --- a/src/config/config.h +++ b/src/config/config.h @@ -161,6 +161,8 @@ #define GYRO_PASS2_TYPE FILTER_NONE #define GYRO_PASS2_FREQ 0 +// #define GYRO_DYNAMIC_NOTCH + // Dynamic D term filter // a pt1 filter that moves up in cut hz with a parabolic relationship to applied throttle. The theory here is // that propwash is most likely to occur as throttle is applied in dirty air - and propwash is most significantly diff --git a/src/core/profile.c b/src/core/profile.c index bd9f9050f..46564a6e2 100644 --- a/src/core/profile.c +++ b/src/core/profile.c @@ -213,7 +213,11 @@ const profile_t default_profile = { #ifdef DTERM_DYNAMIC_FREQ_MAX .dterm_dynamic_max = DTERM_DYNAMIC_FREQ_MAX, #endif +#ifdef GYRO_DYNAMIC_NOTCH + .gyro_dynamic_notch_enable = 1, +#else .gyro_dynamic_notch_enable = 0, +#endif }, .rate = {