OSRBOT
OSRCORE LEARN
Open lesson
Skip to content

08 · Run multiple tasks ​

Open this interactive lesson and device downloads

Goal ​

Observe two independent periodic tasks without robot drivers or sensor initialization.

Simulation and hardware ​

Task A defaults to 500 ms and B to 1000 ms. Run the browser timeline first. After installing this lesson and connecting over USB, change their periods and select “Apply to controller”. Real logs show task names and increasing counters.

vTaskDelayUntil() schedules relative to the previous wake time. The browser models periods, not dual-core scheduling or execution time. Simultaneous prints have no guaranteed order.

Try equal periods, then 300 ms and 700 ms. Source: 08_freertos/main/main.c.

Exercise ​

Compare one parameter change at a time and record the observed hardware result.

Code ​

Each task counts and prints. Main creates the tasks; OSR_TASK_A_MS and OSR_TASK_B_MS supply their periods.

Verification ​

Compare count ratios over a longer interval rather than inferring missed tasks from adjacent log lines.


Learn, build and control robots with OSRCORE.