From 65750f09dc05821f29ceee9f10854f082a0b0da3 Mon Sep 17 00:00:00 2001 From: ctzsnooze Date: Wed, 16 Jan 2019 09:00:38 -0700 Subject: [PATCH] Classic D values if no D_Cut At compile time, if D_CUT is not defined for a given target, the user will get lower default D values. --- src/main/flight/pid.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/flight/pid.c b/src/main/flight/pid.c index a58894855d..73724fec51 100644 --- a/src/main/flight/pid.c +++ b/src/main/flight/pid.c @@ -197,6 +197,10 @@ void resetPidProfile(pidProfile_t *pidProfile) pidProfile->dterm_filter_type = FILTER_BIQUAD; pidProfile->dterm_filter2_type = FILTER_BIQUAD; #endif +#ifndef USE_D_CUT + pidProfile->pid[PID_ROLL].D = 30; + pidProfile->pid[PID_PITCH].D = 32; +#endif } void pgResetFn_pidProfiles(pidProfile_t *pidProfiles)