First Time Setup:¶
Make sure you have bazel installed Make sure you have your venv installed and ready to going Make sure you have elasticsearch instaled: This link worked for me on Ubuntu 20.04 (WSL2): https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-elasticsearch-on-ubuntu-20-04
Every Time Setup:¶
From the FSW repo: Make sure your submodules are up to date:
git submodule update --init --recursive
Make sure that PSim (within FSW):
pio run -e lib/common/psim
Make sure that the builds of fsw that you’re going to be using are built: For example:
pio run -e fsw_native_leader
pio run -e fsw_native_follower
pio run -e fsw_native_leader_autotelem
Spooling up the Stack:¶
Start ElasticSearch: If you don’t have systemd:
sudo -i service elasticsearch start
On MacOS:
elasticsearch
If you do have systemd, you can set elasticsearch to startup everytime with: https://www.elastic.co/guide/en/elasticsearch/reference/current/starting-elasticsearch.html
In a seperate terminal: Start TLM:
python -m tlm
In a seperate terminal: Start an AutonomousMissionController with:
python -m ptest runsim -c ptest/configs/amc.json -t AutonomousMissionController
In a seperate terminal: Start MCT inside FlightSoftware/MCT: Make sure to specify a ptest/config that uses a specific config:
cd MCT
npm start ptest/configs/hootl_hootl_autotelem.json