Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
Go to the source code of this file.
Functions | |
void | SchedulerInit (Scheduler *scheduler, Updateable *updatableArray[]) |
Initializes the scheduler with the given sensors. More... | |
void | SchedulerRun (Scheduler *scheduler) |
Runs the scheduler, executing tasks based on their priority. More... | |
void | SchedulerStop (Scheduler *scheduler) |
Stops the scheduler. More... | |
void SchedulerInit | ( | Scheduler * | scheduler, |
Updateable * | updatableArray[] | ||
) |
Initializes the scheduler with the given sensors.
Initializes the priority queue and schedules tasks based on the given sensors and their update frequencies. Limits the number of sensors to MAX_SENSORS.
Definition at line 14 of file Scheduler.c.
void SchedulerRun | ( | Scheduler * | scheduler | ) |
Runs the scheduler, executing tasks based on their priority.
Runs the scheduler, repeatedly executing tasks based on their scheduled execution times. Uses Sleep or usleep to avoid busy-waiting if no tasks are ready to execute.
Definition at line 43 of file Scheduler.c.
void SchedulerStop | ( | Scheduler * | scheduler | ) |
Stops the scheduler.
scheduler | Pointer to the Scheduler structure to stop. |
Definition at line 66 of file Scheduler.c.