High Altitude Balloon Telemetry Library
Above: Spectrogram of the Horus Binary 4-FSK modem signal.
This repository contains:
In particular, this library provides a decoder for the 'Horus Binary' telemetry system, which is the primary tracking system used in Project Horus's High-Altitude Balloon launches.
The modem in this library can also decode the standard UKHAS RTTY telemetry used on many other high-altitude balloon flights.
For the latest information on how and why to use this library, please visit the wiki pages.
If you're looking for a way to decode telemetry from a Horus Binary (or even an old-school RTTY) High-Altitude Balloon payload, read the guides available here.
Written by:
The horusdemodlib Python library contains decoders for the different Project Horus telemetry formats, including:
It also contains a wrapper around the C library (mentioned above), which contains the Horus modem demodulators.
The easiest way to install horusdemodlib is within a virtual environment ('venv') using pip:
First make sure pip is available on your system. Many platforms will have it installed already (try running pip in a terminal). On debian-based systems this can be installed with sudo apt-get install python3-pip.
You may also need to install the python venv library, e.g. sudo apt-get install python3-venv
Note that we only support Python 3.9 or newer.
Clone this repository (while we'll be installing horusdemodlib from PyPi, we need some scripts and configuration files from here):
$ git clone https://github.com/projecthorus/horusdemodlib/
$ cd horusdemodlibCreate a virtual environment and then enter it by running:
$ python3 -m venv venv
$ . venv/bin/activateNow install this library by running:
$ pip install horusdemodlibIf you want to install directly from this repository, you can run:
$ pip install -e .At this point it's time to head over to the wiki pages for the latest setup steps.
If you have installed horusdemodlib via pypi, then you can run (from within your venv, if you are using one):
$ pip install -U horusdemodlibThis will also install any new dependencies.
If you have installed 'directly', then you will need to run:
$ git stash
$ git pull
$ pip install -e .This contains the demodulator portions of horuslib, which are written in C. This does not typically need to be installed, as the python packages now build and include the C libraries using CFFI.
If you have a reason to, and really want to install it, you can compile and install the library using the below commands. Be aware that this will install the horus_demod utility which may conflict with the python version of this.
The library can be built and installed using:
$ git clone https://github.com/projecthorus/horusdemodlib.git
$ cd horusdemodlib && mkdir build && cd build
$ cmake ..
$ makeThe libraries and internal utilites can be installed systemwide with sudo make install.
Refer to the install guide for a more complete guide, including what dependencies are required.
Unit tests for the various demodulators can be run using:
$ cd build
$ ctestIn most cases, you can update this library by running:
$ git stash
$ git pulland then following the build steps above from the cd horusdemodlib line.
The main demodulator API is horus_api.h. An example of it in use in a C program is available in horus_demod.c
A Python wrapper is also available (via the horusdemodlib Python library which is also part of this repository). An example of its use is available here.
Here are some links to projects and blog posts that use this code:
No open issues yet, or sync has not completed.