Everything Stellar Control controls is a target: a satellite in orbit, a flatsat on a bench, a
laboratory power supply, an RF bench, an EGSE. A target implements a platform (a
catalogue version), is engaged in some environments, and is reached
through links. Targets are declared in topology.yaml, at the root of the
configuration repository: this file is the desired
state of the reconciler.
The topology file#
topology.yaml has four sections:
| Section | Content |
|---|---|
environments | The environments and their policies. See Environments and Policies. |
modes | The modes of operation, in their order, one of them the default. See Modes and parameters. |
targets | The targets, their platform, environments, links and parameter values. |
connectors | The output connectors and the data they subscribe to. See Output connectors. |
Its JSON Schema is printed by stellar schema topology; stellar check compiles it with the rest
of the repository.
Declaring a target#
From a topology.yaml:
targets:
sat-sim:
platform: cubesat-6u@1.0.0
environments: [SIM]
links:
sim: {driver: cubesat-6u-sim@1, gateway: sat-sim-gw-1, default: true}
flatsat-1:
platform: cubesat-6u@1.0.0
environments: [FLATSAT]
links:
can:
driver: cubesat-6u-csp@1
transport: csp1-can@1
gateway: flatsat-can-1
default: true
params: {csp_address: 10}
rf:
driver: cubesat-6u-csp@1
transport: csp1-kiss@1
gateway: gse-uhf-1
params: {csp_address: 9}
camera: {driver: hsc-100-csp@1, transport: csp1-can@1, gateway: bench-can-1, components: [camera, files], params: {csp_address: 10}}
psu-1:
platform: lab-psu@1.0.0
environments: [FLATSAT, FM]
links:
scpi: {driver: scpi-psu@1, gateway: lab-eth-1, default: true}
sat-fm-1:
platform: cubesat-6u@1.0.0
environments: [FM, in_orbit]
links:
sband:
driver: cubesat-6u-ccsds@1
transport: ccsds-tc@1
gateway: "any(tag: sband)"
default: true
params: {scid: 0x2C5, tm_length: 256}
umbilical:
driver: cubesat-6u-csp@1
transport: csp1-can@1
gateway: fm-umbilical-1
params: {csp_address: 11}| Key | Required | Meaning |
|---|---|---|
platform | yes | The catalogue the target implements, name@version: cubesat-6u@1.0.0. |
environments | yes | The environments the target can be engaged in, at least one. |
links | yes | The links to the target, by name; exactly one is default: true. See Links and Bindings. |
parameters | no | Values of the parameters of its components, for every mode or per mode. See Modes and parameters. |
overrides | no | By environment of the target, values of parameters that replace those of parameters. |
Rules checked by the compiler:
- A target name uses ASCII letters, digits,
_and-, starting with a letter (topology::invalid-name). - The platform resolves to a catalogue of the repository (
topology::unresolved-platform). Write an exact version: the target, its drivers and its procedures all refer to that version. - Each environment exists and is listed once (
topology::unknown-environment,topology::duplicate-environment); a target is engaged in at least one (topology::no-environment). - A
draftcatalogue is refused in an environment withoutallow_draft(topology::draft-not-allowed). - The catalogue does not use the names reserved by the standard
linkcomponent (topology::reserved-name).
Modes and parameters#
The topology declares the modes of operation, and each target gives the value of the
parameters of its catalogue in each mode. The current
mode of a target, configure and the ground chain are described in
Modes and Parameters.
modes:
Nominal: {description: Camera detector at 18 °C, default: true}
Cold: {description: Camera detector at 12 °C}
targets:
sat-sim:
platform: cubesat-6u@1.0.0
environments: [SIM]
# … links
parameters:
camera.detector_setpoint: {Nominal: 18 degC, Cold: 12 degC}
thermal.heater_on: false
thermal[BATTERY].heater_on: {Nominal: true}
sat-fm-1:
platform: cubesat-6u@1.0.0
environments: [FM, in_orbit]
# … links
parameters:
camera.detector_setpoint: {Nominal: 18 degC, Cold: 12 degC}
thermal.heater_on: false
# In orbit, the detector runs a little colder.
overrides:
in_orbit:
parameters:
camera.detector_setpoint: {Nominal: 15 degC}camera.detector_setpoint is the parameter of the camera. heater_on stands for a parameter of
the thermal zones of the CubeSat (one instance per thermal_zone), set by set_heater and read
back by the measure heater_on, as in Modes and Parameters.
modesis an ordered map of modes, each with an optionaldescription. When there are modes, exactly one hasdefault: true: the mode of a target whose mode was never set (topology::default-mode). Mode names are identifiers, as procedures write them (configure sat for Cold).- Keys name a parameter as procedures do:
component.parameter,component[instance].parameter, or the parameter alone on a platform of one component. On a multi-instance component, a key without instance (thermal.heater_on) holds for every instance, and the key of an instance (thermal[BATTERY].heater_on) wins for it. A key that names no component, instance or parameter of the catalogue is refused (topology::unknown-parameter). - Values are one value for every mode (
thermal.heater_on: false) or a map by mode, possibly partial: a mode left out has no value from that key. A mode must be declared (topology::unknown-mode). Each value is checked against the parameter: type, unit (converted,2.2 GHzfor a parameter in Hz), range and enum value (topology::invalid-parameter-value). overrides.<environment>.parametersreplaces values key by key and mode by mode in one environment of the target (topology::unknown-override-environmentfor an environment the target is not engaged in). Onsat-fm-1,camera.detector_setpointis 15 °C inNominalinin_orbit, 18 °C in FM, and 12 °C inColdeverywhere.
A parameter of an instance takes, in this order: the override of its own key, the value of its
own key, the override of the key without instance, the value of the key without instance. An
override of thermal.heater_on therefore does not change an instance that has a value of its own
in that mode.
Modes and parameters are optional. Without modes, targets have no mode: in a repository with a
topology, configure … for and param … in name an undeclared mode (procedure::unknown-mode),
and a param without in fails at run time.
The catalogue of a target#
The catalogue of a target is the catalogue of its platform, plus the standard link component
with one instance per declared link: sat-sim has link[sim], flatsat-1 has link[can],
link[rf] and link[camera]. See COP-1 and the Link Component.
GET /v1/targets/{target}/catalogue returns it, and the web console shows it on the page of the
target. See the monitoring API.
Readiness#
A target is ready when every link has a registered, healthy and compatible driver, transport
(when the link has one) and gateway, bound by the reconciler. The reconciler publishes the
readiness of each target in the state store, under stellar_readiness: ready, the configuration revision
the target runs with, and one reason per unbound link, for instance:
link `sband`: no driver `cubesat-6u-ccsds` registered
link `camera`: gateway `bench-can-1` is degraded: bus offA run checks that its targets are ready at launch; GET /v1/topology and the Topology view of the
web console show the reasons. See Links and Bindings for the
binding rules.
Configuration revisions#
Each target runs with one configuration revision, the hash of a compiled snapshot. When a new
snapshot is published (stellar compile --publish), the reconciler moves each target to it at its
next safe point: a target that holds a run lease, or whose pass is in progress, keeps its revision
until the run or the pass ends. The components bound to a target stamp its revision on their
messages (Stellar-Config). See Compilation, Snapshots and Locks.
Output connectors#
The topology also declares the output connectors, external processes that store or relay the data of Stellar Control:
connectors:
timeseries-db:
data: [tm_raw, measures, tc_events, run_events, alarms]
targets: [sat-fm-1, flatsat-1, sat-sim, psu-1]
partner-relay:
data: [files]
targets: [sat-fm-1]| Key | Meaning |
|---|---|
data | What the connector consumes, at least one, none twice: tm_raw, measures, tc_events, run_events, alarms, files, streams. |
targets | Targets of the topology whose data it consumes, at least one, none twice. |
See Output Connectors for delivery, lag and credentials.