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:
parent
aaaf313747
commit
81a514c9ac
4 changed files with 21 additions and 19 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue