There is a prebuilt version of the software available on the github. This is configured for the Inspire live event and related demos. However the software is designed to be flexible, with a main thread that you can change to fit however you need, as well as adding new sensors and methods of communication.
The easiest way to build the software for the raspberry pi, is to just run the compiler on the pi, and so, all you have to do is clone the github repo.
https://github.com/ThatOllieo/qec
And then ensure the compiler is installed.
sudo apt install meson ninja-build
Make any changes you need and then ensure you are in the root directory of the repo, run:
meson setup builddir --wipe
meson compile -C builddir
The output file will be located at ./builddir/uk, this can be moved elsewhere, such as /usr/bin/uk
Lastly, for automatic running of this file on boot, add a system service.
# /etc/systemd/system/uk.service
[Unit]
Description=Starts juk sat on network up. (Groundstation requires internet conn.)
Wants=network-online.target
After=network-online.target NetworkManager-wait-online.service
[Service]
Type=simple
User=pi
Group=pi
WorkingDirectory=/home/pi
Environment=HOME=/home/pi
Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
ExecStart=/usr/bin/uk
Restart=on-failure
[Install]
WantedBy=multi-user.target
The version of the satellite software run for inspire live used a basic scp command for file transfer, this however requires a ssh key to be setup for connecting to the ground station. This was done for the base Pi user, hence why in the service, we use this user to run the software and use its home directory for working directory and environment.