mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Added validation for Dterm notch filter settings.
This commit is contained in:
parent
f984838d27
commit
c71ef27104
1 changed files with 5 additions and 0 deletions
|
@ -1261,6 +1261,11 @@ void validateAndFixConfig(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Prevent invalid notch cutoff
|
||||||
|
if (currentProfile->pidProfile.dterm_notch_cutoff >= currentProfile->pidProfile.dterm_notch_hz) {
|
||||||
|
currentProfile->pidProfile.dterm_notch_hz = 0;
|
||||||
|
}
|
||||||
|
|
||||||
validateAndFixGyroConfig();
|
validateAndFixGyroConfig();
|
||||||
|
|
||||||
#if defined(TARGET_VALIDATECONFIG)
|
#if defined(TARGET_VALIDATECONFIG)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue