mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 09:45:37 +03:00
Add TASK_AGE_EXPEDITE_RX to ensure RX task is never starved of time
This commit is contained in:
parent
c05ad2ec9b
commit
4e47a792d8
3 changed files with 18 additions and 10 deletions
|
@ -396,7 +396,7 @@ TEST(SchedulerUnittest, TestTwoTasks)
|
|||
simulatedTime = startTime;
|
||||
tasks[TASK_ACCEL].lastExecutedAtUs = simulatedTime;
|
||||
tasks[TASK_ATTITUDE].lastExecutedAtUs = tasks[TASK_ACCEL].lastExecutedAtUs - TEST_UPDATE_ATTITUDE_TIME;
|
||||
EXPECT_EQ(0, tasks[TASK_ATTITUDE].taskAgeCycles);
|
||||
EXPECT_EQ(0, tasks[TASK_ATTITUDE].taskAgePeriods);
|
||||
// run the scheduler
|
||||
scheduler();
|
||||
// no tasks should have run, since neither task's desired time has elapsed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue