Skip to content

Scheduler/EventQueue based flight code for liquid bipropellant rockets, built with Arduino and PlatformIO.

Notifications You must be signed in to change notification settings

andycate/flight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flight

This is an experimental codebase with an EventQueue/Scheduler architecture for rocket control. The ideafor using this architecture is the ease of configuring flight hardware on the go.

Overview

All configuration is done in the main.cpp file. First the main EventLoop object is defined. Then, Interfaces and Sensors are defined. Next, Subsystems are defined and added to the EventLoop. Finally, Comms classes are defined and added to the EventLoop.

At the end of the main function, the EventLoop::eloop function is called repeatedly. This runs the program.

There are four general types of classes. The first is Interface classes. Interfaces are physical buses that the code interacts with. The second is Sensor classes. Sensors provide code to interact with multiple interfaces to read data from hardware. The third is Subsystem classes. Subsystems define code that needs to run repeatedly and/or respond to events and received packets. They can also talk to interfaces and sensors. The fourth is Comms classes. Comms classes provide code to read and write packets.

About

Scheduler/EventQueue based flight code for liquid bipropellant rockets, built with Arduino and PlatformIO.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published