Skip to content

Getting started

Ajay Ramachandran edited this page Sep 24, 2021 · 23 revisions
  • If using Windows, install WSL: https://docs.microsoft.com/en-us/windows/wsl/install-win10#manual-installation-steps
    • Both WSL 1 or WSL 2 should work. However, when in doubt, WSL 1 is probably a better choice.
  • Download VSCode https://code.visualstudio.com/Download
  • Open the terminal
  • cd into the desired workspace
  • git clone https://github.com/uorocketry/rocket-code-2020.git --recurse-submodules
  • cd rocket-code-2020
  • Install the necessary libraries and build tools: ninja-build, cmake, gcc, make, boost, protobuf, libi2c
    • Command for Debian/Ubuntu: sudo apt update && sudo apt install ninja-build cmake gcc g++ make libboost-all-dev protobuf-compiler libi2c-dev
  • Compile the project with - ./build.sh
    • To run the Hotfire test code without a pi - USE_RADIO=0 USE_GPIO=0 USE_WIRING_PI=0 HOTFIRE_TEST=1 ./build.sh
  • You can now run the project locally with - ./run.sh

To update the github submodules

  • git submodule update --init --recursive

Once you are setup:

Clone this wiki locally