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

Ignore duration of calcActiveAdjustmentRanges() and optimize RX_TASK_DECAY_SHIFT

This commit is contained in:
Steve Evans 2022-01-10 01:18:05 +00:00
parent 18ee33e7a8
commit 1526adfb44
3 changed files with 6 additions and 1 deletions

View file

@ -115,7 +115,7 @@
// taskUpdateRxMain() has occasional peaks in execution time so normal moving average duration estimation doesn't work
// Decay the estimated max task duration by 1/(1 << RX_TASK_DECAY_SHIFT) on every invocation
#define RX_TASK_DECAY_SHIFT 7
#define RX_TASK_DECAY_SHIFT 6
// Add a margin to the task duration estimation
#define RX_TASK_MARGIN 1