1
0
Fork 0
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:
Steve Evans 2020-08-14 16:42:20 +01:00 committed by Steve Evans
parent bfd597a449
commit 29d221502e
23 changed files with 100 additions and 91 deletions

View file

@ -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;