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

Report task rate/Hz based on execution of whole state machine, not individual states where appropriate

This commit is contained in:
Steve Evans 2021-03-31 22:57:04 +01:00
parent 07c32e7302
commit 3087d10f53
4 changed files with 18 additions and 13 deletions

View file

@ -353,6 +353,7 @@ TEST(SchedulerUnittest, TestSingleTask)
}
setTaskEnabled(TASK_ACCEL, true);
tasks[TASK_ACCEL].lastExecutedAtUs = 1000;
tasks[TASK_ACCEL].lastStatsAtUs = 1000;
simulatedTime = 2050;
// run the scheduler and check the task has executed
scheduler();