1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Trigger gyro SPI DMA reads in EXTI handler if supported and lock gyroTask loop to gyro to eliminate missed updates and jitter

This commit is contained in:
Steve Evans 2020-08-14 16:42:20 +01:00 committed by Michael Keller
parent 415d4db5aa
commit d5f62be013
63 changed files with 755 additions and 379 deletions

View file

@ -1066,8 +1066,8 @@ static void applyStatusProfile(timeUs_t now) {
}
if (!timActive) {
// Call ignoreTaskTime() unless data is being processed
ignoreTaskTime();
// Call ignoreTaskShortExecTime() unless data is being processed
ignoreTaskShortExecTime();
return; // no change this update, keep old state
}
@ -1253,8 +1253,8 @@ void ledStripUpdate(timeUs_t currentTimeUs)
#endif
if (!isWS2811LedStripReady()) {
// Call ignoreTaskTime() unless data is being processed
ignoreTaskTime();
// Call ignoreTaskShortExecTime() unless data is being processed
ignoreTaskShortExecTime();
return;
}
@ -1282,8 +1282,8 @@ void ledStripUpdate(timeUs_t currentTimeUs)
break;
}
} else {
// Call ignoreTaskTime() unless data is being processed
ignoreTaskTime();
// Call ignoreTaskShortExecTime() unless data is being processed
ignoreTaskShortExecTime();
}
}