Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

106 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yamcs PyMDB

Warning

This software is in beta development status. Documentation is limited, and API is subject to change.

If you'd like to try it out, have a look at the examples which explain the base setup for either CCSDS or CSP-style packets. Other common formats will be added over time.

pip install yamcs-pymdb

Use this Python library to generate XTCE XML files for use with Yamcs Mission Control:

import yamcs.pymdb as Y

spacecraft = Y.System("Spacecraft")

param1 = Y.IntegerParameter(
    system=spacecraft,
    name="param1",
    signed=False,
    encoding=Y.uint8_t,
)

param2 = Y.EnumeratedParameter(
    system=spacecraft,
    name="param2",
    choices=[
        (0, "SUCCESS"),
        (-1, "ERROR"),
    ],
    encoding=Y.int8_t,
)

# Emit an XML that conforms to XTCE
print(spacecraft.dumps())

Using a local checkout as a dependency

Other projects (e.g. Hermes) may depend on this package via a local path instead of the PyPI release, useful for developing against unreleased changes. Reference it in the consuming project's requirements.txt as:

yamcs-pymdb @ file:///absolute/path/to/pymdb

To pick up edits without reinstalling after every change, install it in editable mode inside the consuming project's environment instead:

pip install -e /absolute/path/to/pymdb

License

LGPL-3.0. See LICENSE

About

Python library to generate XTCE XML

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages