1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Static dT

This commit is contained in:
borisbstyle 2015-12-27 02:10:24 +01:00
parent 97ceb57eff
commit 6d4dfcf58c

View file

@ -647,7 +647,7 @@ static bool haveProcessedAnnexCodeOnce = false;
void taskMainPidLoop(void)
{
cycleTime = getTaskDeltaTime(TASK_SELF);
dT = (float)cycleTime * 0.000001f;
dT = (float)targetLooptime * 0.000001f;
// Calculate average cycle time and average jitter
filteredCycleTime = filterApplyPt1(cycleTime, &filteredCycleTimeState, 1, dT);