APG (ASN.1 Parser and Generator) is a tool that allows conversion of ASN.1 data files into a number of formats such as:
- NASA core Flight System TM/TC C header files
- COSMOS/OpenC3 TM/TC text configuration files
- C structs
- Binary files
The most supported and most implemented use case: from the ASN.1 data definitions, generate cFS and OpenC3 TM/TC definitions simultaneously and by doing this, have the ASN.1 TM/TC database automatically synchronised between the embedded software running NASA cFS and developer machine running COSMOS/OpenC3.
Note: The APN is early alpha quality and has not been used in any production projects. Further development is still needed.
Install dependencies:
pip3 install -r requirements.txt
Run the tool:
python3 asn1_parser/main.py --help
Run the lints and tests:
invoke lint
invoke test
Documentation can be built and read by running:
pip3 install -r requirements.txt
invoke docs-all
APS is licensed under the BSD 4-clause license, please see the LICENSE file.
Copyright (c) Planetary Transportation Systems GmbH 2023.