uorocketry / rocket-code-2020

Flight computer code for 2019-2021
Other
11 stars 3 forks source link

Create the DESKTOP_COMPAT flag and move the default log path #189

Closed jonapap closed 2 years ago

jonapap commented 2 years ago

The goal of this PR is to reduce the amount of compile flags we need to run the code on a computer. To achieve this, I have added one flag called DESKTOP_COMPAT. If set, anything that can't run on a desktop should be disabled.

At the same time, I also moved the log file location. When running with ./run.sh, the log files will appear under the rocket-code-2020/sensor-data folder. This is fine when developing, only thing is we could look at changing it in the systemd file on the Pi. Maybe put it under /var/log/rocket-data?