- Notifications
You must be signed in to change notification settings - Fork1
CHESS-mission/05_FS
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is the main repository of the CHESS flight software. It uses theNASA F' framework.
ReadF´ Discerning User’s Guide to discover the framework.Tutorials are a very good way to understand it.
More resources (Community Forum, Reference Application, F' Architecture Overview) are available onnasa.github.io/fprime
Follow this guide to start with CHESS FS development :Quick start guide
- Linux based OS (Ubuntu 18.04 viaWSL2 in our case)
- GCC compiler GCC 7.5.0
- CMake 3.5 or newer (3.10.2 used)
- Python 3.5+, PIP and Python Virtual Environment
SeeQuick start guide for details.
F' tools installation
python3 -m venv ./fprime-venv. ./fprime-venv/bin/activatepython3 -m pip install --upgrade wheel setuptools pipcd fprimepython3 -m pip install ./Fw/Python ./Gds
F' compilation
Before compiling, you need to know if the flight sofrware will be used with the FPrime GDS or PUS demonstrator
In ./App/CMakeLists.txt comment and uncomment your choice
add_definitions(-D_PUS) # to use PUS with GS#add_definitions(-D_GDS) # to use F' GDS (without PUS)
fprime-util generatefprime-util build
Launch F' and GDS (Ground Software simulator)Prerequisites1. Run ADCS simulator2. Run EPS simulator
fprime-gds
## simulators### ADCS#### Installing```bashpip install python-statemachine
python3 ./simulators/ADCS/TcpMain.py
pip install python-statemachinesudo apt install libsocketcan-dev pkg-config libzmq3-dev
sudo chmod +x ./simulators/EPS/zmqproxysudo ./simulators/EPS/zmqproxy&export LD_LIBRARY_PATH=./simulators/EPS/packages/csp/lib&& python3 ./simulators/EPS/CspMain.py
- Run ADCS simulator
- Run EPS simulator
./gs/gs
The demonstrator is a TCP server. It will wait for a connection from Flight software and then, start sending and receiving packets
./App/build-artifacts/Linux/bin/App -a 127.0.0.1 -p 27015
In05_FS/App
run
fprime-util check --all
FS can be build and deployed on a Raspberry Pi with
fprime-util generate raspberrypifprime-util build raspberrypi
You will needRaspberry Pi toolchain in/opt/rpi
.
Binary generated inApp/bin/arm-linux-gnueabihf/App
can be launched on the Pi after having started GDS without application on Linux
fprime-gds -n
SeeGPS tutorial for details.
F' also provide a custom topology RPI to test it on a Raspberry Pi, seehere.
- Jonathan Michel -HES-SO Master student -@jonathanmichel
- Charles-Lewis Jaggi -HES-SO Master student -@lewisjaggi
- Maxime Welcklen -HES-SO Bachelor student -@maximewel