This repository should be used as a git submodule for the RF interface such as packet definition. The goal is to minimize the protocol interface difficulties encountered between the subsystems & boards. By having this git submodule repository shared between subsystems, no more interface documents are required as a git pull would be sufficient to be updated.
git clone --recurse-submodules https://github.com/MorgesHAB/XSTRATO.git
Follow this link or directly the instructions below.
Go in your main project folder, which is alreay a git repository, and run:
git submodule add https://github.com/EPFLRocketTeam/ERT_RF_Protocol_Interface.git
By default, it will create a folder name "ERT_RF_Protocol_Interface". You can add a different path at the end of the command if you want it to go elsewhere.
Then in your C++ code, you can simply do:
#include <XRF_interface/PacketDefinition.h>Now you can have access to the struct definitions in your code, see the example at the end.
You will need to run git pull but from the submodule directory
git pull
Once you made some modifications to the code of this submodule, you need to go in the submodule folder (ERT_RF_Protocol_Interface), then you can run git status to see if some changes are seen. If yes you need to add this files, commit with a message and finally push.
git add --all
git commit -m "uplink packet update"
git push
Note that as it is a private repository, you will need to connect to your account. You can read the next section for more infos.

