A catalogue describes a platform model, not one satellite: every target that implements
hsc-100@1.0.0 shares its components, measures, derived measures, telecommands, alarms,
files and streams. Stellar Control only ever handles this semantic view; the bytes stay inside the
drivers.
A catalogue is a YAML file, packages/<name>/catalogue.yaml in the
configuration repository. YAML is an exchange format
as much as an input format: a subsystem team can generate its catalogue in CI from its types, its
ICD or its TM/TC database, and publish it as a versioned package. The compiler checks a generated
catalogue exactly like a hand-written one.
A first catalogue#
The catalogue of the HSC-100 hyperspectral camera of the
Payload integration use case
(packages/hsc-100/catalogue.yaml), shortened:
# HSC-100 hyperspectral camera, from its ICD: icd/hsc-100.md (NLO-ICD-HSC100-001, issue 2.1).
package: hsc-100
version: 1.0.0
status: released
enums:
camera_mode: [BOOT, STANDBY, COOLING, READY, IMAGING, SAFE] # ICD §4
components:
camera:
description: The HSC-100 camera, CSP address 6.
measures:
responding: {type: bool, max_age: 60s, description: Whether it answered the last ping.}
mode:
raw: u8
type: camera_mode
calibration: {enum: {0: BOOT, 1: STANDBY, 2: COOLING, 3: READY, 4: IMAGING, 5: SAFE}}
max_age: 30s
description: Operating mode.
input_voltage:
raw: u16
type: f32
unit: V
calibration: {polynomial: [0.0, 0.001]} # mV
limits: {soft: [10.8 V, 13.2 V], hard: [10.5 V, 14.0 V]}
max_age: 30s
description: Supply voltage, from the EPS.
telecommands:
housekeeping:
description: Asks for the housekeeping record (port 10).
changes_state: false
verify: [{responding: true, within: 5s}]
set_mode:
description: "STANDBY, or READY through COOLING (port 11). From SAFE, STANDBY only, once the faults have gone."
args:
mode: {type: camera_mode, description: STANDBY or READY.}
requires:
- "args.mode is STANDBY or args.mode is READY"
- "mode is not BOOT and mode is not IMAGING"
- "not faulty"
verify: [{mode: args.mode, within: 130s}]The full catalogue also has derived measures (faulty, can_acquire…), alarms, a parameter,
the other telecommands of the ICD and the standard files component.
Top-level keys#
| Key | Required | Meaning |
|---|---|---|
package | yes | Package name: ASCII letters, digits, _ and -, starting with a letter (hsc-100). |
version | yes | Semantic version of the package (1.0.0). |
status | no | draft (default) or released. |
uses | no | Catalogue packages whose components are imported, with a version requirement. See Importing Components. |
enums | no | Named enumerations, shared by instances, measures and arguments. |
components | no | The components of the platform, by name. |
Unknown keys are errors: every mapping of the catalogue refuses fields it does not know.
Status#
status is a policy, applied by the environments, not a workflow. A target engaged in an
environment without allow_draft must implement a released catalogue
(topology::draft-not-allowed at compile time), and a run refuses draft packages there
(run::draft-not-allowed). How a draft becomes released (merge request, approvals) is the review
process of the team on the Git repository: Stellar Control imposes no editing or validation role.
See Environments and Policies.
Enums#
# packages/cubesat-eps/catalogue.yaml, Satellite integration use case
enums:
eps_mode: [NOMINAL, POWER_SAVING, CRITICAL]
eps_channel: [ADCS, COMMS_TX, PAYLOAD, HEATERS, AUX]- Enum names and values are identifiers: a letter, then letters, digits and
_. - An enum has at least one value, and no value twice.
- An enum lists the instances of a component (
instances: eps_channel), or types a measure or an argument (type: camera_mode). - No anonymous duplicate. A measure or argument may declare an inline enum with
type: enumandvalues: [A, B], but only when no named enum has these values: otherwise the compiler refuses it (catalogue::anonymous-enum) and asks fortype: <named enum>. One source of truth per enum.
Components and instances#
A component groups measures, derived measures, telecommands and alarms. It carries its
instances: with instances: eps_channel, everything in the component is indexed by the values
of the enum. The switched channels of the EPS of the 6U CubeSat of the
Satellite integration use case (shortened):
components:
channel:
description: A switched output of the power distribution unit; the OBC and the radio receiver are always on.
instances: eps_channel
measures:
enabled: {type: bool, max_age: 60s, description: Whether the channel is on.}
current:
raw: u16
type: f32
unit: A
calibration: {polynomial: [0.0, 0.001]}
limits: {hard: [0 A, 2.0 A]}
description: Current drawn on the channel.
tripped: {type: bool, description: Over-current protection tripped.}
alarms:
channel_tripped: {severity: critical, when: tripped, description: The over-current protection of the channel tripped.}
telecommands:
switch_on:
description: Powers the channel.
verify: [{enabled: true, within: 3s}]| Key | Meaning |
|---|---|
description | Free text for operators. |
instances | Name of the enum listing the instances; absent for a single-instance component. |
measures | Measures received from the platform. See Measures, Limits and Calibration. |
derived | Measures computed by Stellar Control. See Derived Measures. |
telecommands | Telecommands accepted by the platform. See Telecommands and Verification. |
alarms | Named alarms. See Alarms. |
parameters | On-board settings whose value depends on the mode of the target. See Parameters. |
from | Imports the component from another package. See Importing Components. |
file_types, transfer | Only on the standard files component. See Files and Streams. |
streams | Only on the standard stream component. See Files and Streams. |
Procedures address a measure as role.component[instance].measure and a telecommand target as
role.component[instance]: sat.channel[PAYLOAD].current, send switch_on to sat.channel[channel].
For a single-instance component, the index is omitted: cam.camera.mode. See
Syntax and Names.
One namespace per component#
Measures, derived measures, telecommands and alarms of a component share one namespace: a
name cannot be both a measure and a telecommand (catalogue::name-collision). The reason is the
alarm of the limits of a measure, which bears the name of the measure
(channel[PAYLOAD].current).
Reserved names#
Stellar Control generates standard components and enums:
| Name | Kind | Generated for |
|---|---|---|
link | component | Every target: COP-1 state of each of its links. See COP-1. |
link_id, fop_state | enums | The link component. |
files.file_type, files.transfer | enums | The files component, when declared. |
stream.stream_id | enum | The stream component, when declared. |
A catalogue that defines a component link, or an enum link_id or fop_state, cannot be
used by a target (topology::reserved-name).
Descriptions#
Components, measures, derived measures, telecommands, arguments and alarms accept a
description in free text:
components:
camera:
description: The HSC-100 camera, CSP address 6.
measures:
responding: {type: bool, max_age: 60s, description: Whether it answered the last ping.}Editor hovers, the web console and GET /v1/targets/{target}/catalogue show them. A description
is not part of the compiled catalogue: rewording it changes neither the hash of the catalogue
nor the binding of the drivers, only the configuration revision.
Types, units and durations#
| Type | Values |
|---|---|
bool | true, false |
i8, i16, i32, i64, u8, u16, u32, u64 | Integers |
f32, f64 | Floating-point numbers |
bytes | Byte strings (the display format belongs to the interface, not to the catalogue) |
<enum name> | A value of a named enum |
enum with values | An inline enum |
Units apply to numeric types only (catalogue::unit-on-non-numeric). A unit is a symbol with
an optional prefix, combined with * (or ·), / and integer powers ^:
| Symbols | Dimension |
|---|---|
m, g, s, min, h, d, A, K, mol, cd | SI base units, and minutes, hours, days |
degC (or °C) | Temperature, affine: alone only, never in a compound unit |
bit, B, bps | Information, and bits per second |
rad, deg (or °) | Angle |
Hz, N, Pa, J, W, C, V, Ohm (or Ω), F | Derived SI units |
% | Percent |
Prefixes n, u (or µ), m, k, M and G apply to the SI symbols (mV, kHz,
Mbit/s, MHz), not to min, h, d, degC, deg or %. Examples: V/s, m/s^2,
kbit/s, Mbps.
Units are checked by dimension: subtracting degC from V is a compile error, and a quantity is
converted when its unit is compatible (300 mV into V).
Quantities are written as a number, a space and a unit: 5 V, 10 V/s, -20 degC,
256 kbit/s. Durations are a number followed by d, h, min, s, ms, us or ns,
with or without a space: 30s, 10 s, 3 min.
Checking a catalogue#
The catalogue is validated by a JSON Schema generated from the types of the compiler, then by the compiler itself:
stellar schema catalogue > catalogue.schema.json # for editors and CI
stellar check . # every catalogue, topology and procedureDiagnostics are written for operators, with a stable code (catalogue::unknown-type), the faulty
line and, where possible, a suggestion. The VS Code extension shows them
live and completes the keys from the same schema.