1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 15:25:36 +03:00

Merge pull request #11269 from SteveCEvans/rx_timing

Ignore duration of calcActiveAdjustmentRanges() and optimize RX_TASK_DECAY_SHIFT
This commit is contained in:
haslinghuis 2022-01-11 17:28:23 +01:00 committed by GitHub
commit 8d52a36150
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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