- Install VSCode
- Install Git
- Make a GitHub account if you do not have one already
- In VSCode, click on "Extensions" on the left hand toolbar. Search for and install PlatformIO IDE.
- On the top toolbar, click "Terminal" and then "New Terminal". This should open a terminal at the bottom of your screen if it was not open already.
- In the terminal, type "git clone https://github.com/Alpha-CubeSat/oop-flight-code.git"
- Now at the bottom of your screen in the blue toolbar you should see a check, arrow, and serial monitor icon (it looks like an electrical cord). If you do not see the blue toolbar make sure you have the cloned git repo folder open.
- If you would just like to compile code but not upload to the teensy, press the check.
- If you would like to upload to the teensy, press the arrow.
- You can also use
pio run -e debug -t uploadto upload code with debugging print statements, orpio run -e teensy35 -t uploadto upload code without debugging print statements. - Use
pio testto run unit tests. - To view the serial monitor press the electrical cord icon.
This code is structured based on Lodestar, a small scale electric demonstrator for the belly-flop and tail-sitting control algorithms necessary for SpaceX's Starship.
Both ClockManager and TimedControlTask are from PAN.