Expand description

embedded-flight-scheduler

Embedded flight real time scheduler library

For more check out the scheduler example on GitHub.

let clock = StandardClock::default();

let a: Task<(), Error> = Task::new(|_| {
   dbg!("A");
   Ok(())
});

let b: Task<(), Error> = Task::new(|_| {
   dbg!("B");
   Ok(())
});

let mut tasks = [a.with_hz(2.), b.with_hz(1.)];

let mut scheduler = Scheduler::new(&mut tasks, clock, 400);

loop {
   scheduler.run(&mut ())?;
}

Structs

An event containing the current time, available time, and state for a task.

Task scheduler for flight controllers

A task to run at specific frequency

Enums

A scheduler error caused by clock timing