mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Remove filter unnecessery code // Simplify selection
This commit is contained in:
parent
e490564815
commit
6f4d741cd0
5 changed files with 11 additions and 19 deletions
|
@ -175,7 +175,7 @@ static void resetPidProfile(pidProfile_t *pidProfile)
|
|||
pidProfile->I8[PIDVEL] = 45;
|
||||
pidProfile->D8[PIDVEL] = 1;
|
||||
|
||||
pidProfile->gyro_soft_lpf = 1; // LOW filtering by default
|
||||
pidProfile->gyro_soft_lpf = 1; // filtering ON by default
|
||||
pidProfile->dterm_cut_hz = 40;
|
||||
pidProfile->yaw_pterm_cut_hz = 50;
|
||||
|
||||
|
@ -695,7 +695,7 @@ void activateConfig(void)
|
|||
);
|
||||
|
||||
if (currentProfile->pidProfile.gyro_soft_lpf) {
|
||||
useGyroConfig(&masterConfig.gyroConfig, filterGetFIRCoefficientsTable(currentProfile->pidProfile.gyro_soft_lpf));
|
||||
useGyroConfig(&masterConfig.gyroConfig, filterGetFIRCoefficientsTable()); // Leave this for more coefficients in the future
|
||||
}
|
||||
|
||||
#ifdef TELEMETRY
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue