-
Notifications
You must be signed in to change notification settings - Fork 3
Getting started
Jonathan Papineau edited this page Oct 2, 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 2 is probably a better choice.
- Download VSCode https://code.visualstudio.com/Download
- Open the terminal (if on Windows, use a WSL 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:
sudo ./install-dependencies.sh
- At the time of writing, the
install-dependencies.sh
script only supports Debian-based distros (ex: Debian, Ubuntu, etc.)
- At the time of writing, the
- 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
- To run the Hotfire test code without a pi -
- You can now run the project locally with -
./run.sh
If on Windows, see Developing on Windows with VSCode
To update the github submodules
git submodule update --init --recursive
Once you are setup:
-
Try running the unit tests by running
./unitTest.sh
and make sure it all passes. Run the end-to-end test withcd ./tests/octoberSky/; bash ./run_test.sh "Unix Makefiles"
-
Check the stuff in the Next Up column in the GitHub project
-
Check out how to set up the environment variables with this wiki page https://github.com/uorocketry/rocket-code-2020/wiki/Environment-Variables
- Getting started
- Environment Variables
- Compiling the SBG Library on Linux\Unix\WSL
- Developing on Windows with VSCode
- Set Environment Variable In Vscode With The Cmake Plugin
- Creating Unit Tests
- Cross compiling for the Raspberry Pi
- Info and Error Logging in the Rocket Code
- Send Folder via SSH
Configuration:
Raspberry Pi Setup:
- Add a new wifi network on the Raspberry Pi
- Connect to Raspberry Pi via SSH
- Important Notes About Setting Up Raspberry Pi
- Running Emulation of Raspberry Pi
Logging Format: