1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Added validation for Dterm notch filter settings.

This commit is contained in:
mikeller 2017-03-01 00:23:24 +13:00 committed by Martin Budden
parent f984838d27
commit c71ef27104

View file

@ -1261,6 +1261,11 @@ void validateAndFixConfig(void)
}
#endif
// Prevent invalid notch cutoff
if (currentProfile->pidProfile.dterm_notch_cutoff >= currentProfile->pidProfile.dterm_notch_hz) {
currentProfile->pidProfile.dterm_notch_hz = 0;
}
validateAndFixGyroConfig();
#if defined(TARGET_VALIDATECONFIG)