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:
parent
07c32e7302
commit
3087d10f53
4 changed files with 18 additions and 13 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue