-
0
: Success -
1
: Missing required command line argument. -
2
: Help command was received; displayed help instead of running. -
3
: A file had a parsing error. Check your JSON. -
3
: No serial port for flight computer provided, or did not explicitly use--no-device
option to denote no explicit device. -
4
: Output File Path Invalid -
5
: Input File Could Not Be Opened
We recommend Windows users use Windows Subsystem for Linux (WSL). As of 4/3/2024, we have been unable to consistently get rpl-sim
working on Windows natively -- and even when we do, there is some odd behavior.
We use g++ as our primary compiler. Others should work, but using g++
is proven to work.
We use CMake as a build system. You can either install directly or use a package manager. Be sure to get version 3.22 or greater.
If you use apt-get
, the default registry has an older version as of 4/3/2024. You should follow the steps in this AskUbuntu thread.
Boost is a large C++ library that rpl-sim
uses for serial ports, ordinary differential equations, and more. Boost is not embedded inside of rpl-sim
and must be downloaded separately.
Follow the instructions on the Boost website to download the Boost library onto your machine. We use some libraries that require Boost to be built locally. Be sure to follow the entire guide, particularly section 5.
We do not recommend using a package manager for this dependency.
Follow Google's C++ style guidelines.
docker build -t rpl-sim .
docker run --rm rpl-sim