mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +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)
|
void taskMainPidLoop(void)
|
||||||
{
|
{
|
||||||
cycleTime = getTaskDeltaTime(TASK_SELF);
|
cycleTime = getTaskDeltaTime(TASK_SELF);
|
||||||
dT = (float)cycleTime * 0.000001f;
|
dT = (float)targetLooptime * 0.000001f;
|
||||||
|
|
||||||
// Calculate average cycle time and average jitter
|
// Calculate average cycle time and average jitter
|
||||||
filteredCycleTime = filterApplyPt1(cycleTime, &filteredCycleTimeState, 1, dT);
|
filteredCycleTime = filterApplyPt1(cycleTime, &filteredCycleTimeState, 1, dT);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue