This contains a Procfile other setup info that can bring up the entire flight computer in a test environment in one command.
Make sure you have the flight computer code and the telemetry viewer
- FC: https://github.com/psas/av3-fc
- Telemetry: https://github.com/psas/telemetry
Make sure you can build and run the FC and telemtry framework on their own.
Edit the Makefile to point towards the location where you cloned the above on your machine.
$ make setup
Generate javascript for the test control panel. Make sure you have coffeescript
$ sudo apt-get install nodejs npm
$ sudo npm install coffee
$ make build
Make a virtual env and install the requirements
$ mkvirualenv fctest
(fctest)$ pip install -r requirements.txt
Once you have everything set up continue to develop back as normal. When you need to run the FC as a full test simply come here and run
$ ./run
And it will bring up everything. ctrl-c
will kill everything.
Open browser pages to:
- localhost:5000 (the control panel)
- localhost:8080 (telemetry)