mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Use peak tracking as default for task duration estimation rather than a moving average
This commit is contained in:
parent
bfd597a449
commit
29d221502e
23 changed files with 100 additions and 91 deletions
|
@ -96,7 +96,7 @@ void calculateEstimatedAltitude(timeUs_t currentTimeUs)
|
|||
|
||||
const uint32_t dTime = currentTimeUs - previousTimeUs;
|
||||
if (dTime < BARO_UPDATE_FREQUENCY_40HZ) {
|
||||
ignoreTaskExecTime();
|
||||
schedulerIgnoreTaskExecTime();
|
||||
return;
|
||||
}
|
||||
previousTimeUs = currentTimeUs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue