Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for multiple processes on capable microcontrollers #159

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

JonathanSafer
Copy link
Member

Description of Problem

All of our code currently assumes it is running in a single thread. In order to support multi-core microcontrollers, we'll need to modify each component to function in both a single and multi-thread context.

Solution

  • created a generic RocketController interface with common functions to be used in main.ino
  • created source files for single and dual core contexts to link with the controller header
  • shifted around certain libraries to facilitate correct linking
  • moved SD card backup calls to the 2nd core in the dual core implementation
  • labelled state as volatile so it can be used asynchronously

Testing

  • untested :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant