xtce

command
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2026 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Example: Decoding telemetry from a mission database

The other examples hand-write a struct for every packet, which means the packet layout lives in Go code. A real mission keeps it in a database instead, and the ground system learns the layout by reading the file.

This example shows both halves of that:

Loading:
  1. Parse mission.xml
  2. Check that its references resolve
  3. Look at what it declares

Decoding:
  1. Extract a packet whose type you already know
  2. Match a packet whose type you do not

The database describes the CCSDS primary header once, as an abstract container, then two packet types that extend it. Each says which APID selects it, which is what makes matching possible.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL