mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Static dT
This commit is contained in:
parent
97ceb57eff
commit
6d4dfcf58c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue