1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 09:45:37 +03:00

increase possible Q to 30, default Q to 10 and set scheduler optimize rate policy by default

This commit is contained in:
Thorsten Laux 2019-01-27 08:59:22 +01:00
parent aaaf313747
commit 81a514c9ac
4 changed files with 21 additions and 19 deletions

View file

@ -63,6 +63,7 @@
#include "sensors/acceleration.h"
#include "sensors/battery.h"
#include "sensors/gyro.h"
#include "sensors/rpm_filter.h"
#include "scheduler/scheduler.h"
@ -337,6 +338,11 @@ static void validateAndFixConfig(void)
}
#endif
#if defined(USE_DSHOT_TELEMETRY)
systemConfigMutable()->schedulerOptimizeRate = systemConfigMutable()->schedulerOptimizeRate ||
(rpmFilterConfig()->gyro_rpm_notch_harmonics + rpmFilterConfig()->dterm_rpm_notch_harmonics);
#endif
// clear features that are not supported.
// I have kept them all here in one place, some could be moved to sections of code above.