# omega-space-group/rslab-cubesat-testbed architecture

> Architecture diagram of the GitHub repository omega-space-group/rslab-cubesat-testbed, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/omega-space-group/rslab-cubesat-testbed
- Repository: https://github.com/omega-space-group/rslab-cubesat-testbed

## Overview

RSLab CubeSat Flatsat Testbed is a ground-based platform for validating satellite avionics, AI payload processing, and end-to-end mission flows. Its documented workflow runs payload processing alongside C&DH and EPS control, carries commands and telemetry over CSP/CAN, and transfers larger payload products over Zenoh/GigE toward communications and the ground segment. The graph preserves the documented hardware, simulation, and ground-control branches. Most subsystem implementations are represented only by directory-level paths; the sole sampled source is the payload CAN heartbeat utility, so implementation-level wiring is limited.

Main entry points: [`flight-software/cdh`](https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/flight-software/cdh) (C&DH), [`flight-software/payload`](https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/flight-software/payload) (AI payload), [`hardware`](https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/hardware) (Hardware design), [`flight-software/eps`](https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/flight-software/eps) (EPS)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_flight["Flight software"]
  node_cdh["C&amp;DH"]
  node_eps["EPS"]
  node_comms["Communications"]
  node_heartbeat["Payload heartbeat"]
  node_can{{"CSP over CAN"}}
end

subgraph group_data["Payload data"]
  node_payload["AI payload"]
  node_interfaces["Payload interfaces"]
  node_zenoh{{"Zenoh over GigE"}}
end

subgraph group_ground["Ground segment"]
  node_groundstation["Ground station"]
  node_missioncontrol["Mission control"]
end

subgraph group_platform["Testbed platform"]
  node_simulation["Simulation"]
  node_hardware["Hardware design"]
end

node_operator(("Mission operator"))
node_sensors(("Sensors"))

node_sensors -->|"provides inputs"| node_payload
node_cdh -->|"commands"| node_payload
node_cdh -->|"commands"| node_eps
node_payload -->|"sends telemetry"| node_cdh
node_eps -->|"sends telemetry"| node_cdh
node_cdh -->|"uses control link"| node_can
node_eps -->|"uses control link"| node_can
node_payload -->|"uses control link"| node_can
node_payload -->|"transfers data"| node_zenoh
node_zenoh -->|"delivers products"| node_cdh
node_heartbeat -->|"sends heartbeat"| node_can
node_payload -.->|"uses interfaces"| node_interfaces
node_cdh -->|"exchanges control"| node_comms
node_comms -->|"relays over RF"| node_groundstation
node_operator -.->|"operates"| node_missioncontrol
node_groundstation -.->|"provides ground link"| node_missioncontrol
node_simulation -.->|"supports validation"| node_cdh
node_hardware -->|"hosts avionics"| node_cdh
node_hardware -->|"hosts avionics"| node_eps
node_hardware -->|"hosts processing"| node_payload
node_hardware -->|"hosts radio"| node_comms

click node_cdh "https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/flight-software/cdh"
click node_eps "https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/flight-software/eps"
click node_comms "https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/flight-software/comms"
click node_heartbeat "https://github.com/omega-space-group/rslab-cubesat-testbed/blob/main/flight-software/payload/jetson/utils/payload_heartbeat_can.py"
click node_payload "https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/flight-software/payload"
click node_interfaces "https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/middleware/interfaces"
click node_groundstation "https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/ground-segment"
click node_missioncontrol "https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/ground-segment/mission-control"
click node_simulation "https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/simulation"
click node_hardware "https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/hardware"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cdh,node_eps,node_comms,node_heartbeat,node_can toneBlue
class node_payload,node_interfaces,node_zenoh toneAmber
class node_groundstation,node_missioncontrol toneMint
class node_simulation,node_hardware toneRose
class node_operator,node_sensors toneIndigo
```

## Components

### Flight software

- [C&DH](https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/flight-software/cdh): `flight-software/cdh`
- [EPS](https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/flight-software/eps): `flight-software/eps`
- [Communications](https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/flight-software/comms): `flight-software/comms`
- [Payload heartbeat](https://github.com/omega-space-group/rslab-cubesat-testbed/blob/main/flight-software/payload/jetson/utils/payload_heartbeat_can.py): `flight-software/payload/jetson/utils/payload_heartbeat_can.py`
- **CSP over CAN**

### Payload data

- [AI payload](https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/flight-software/payload): `flight-software/payload`
- [Payload interfaces](https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/middleware/interfaces): `middleware/interfaces`
- **Zenoh over GigE**

### Ground segment

- [Ground station](https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/ground-segment): `ground-segment`
- [Mission control](https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/ground-segment/mission-control): `ground-segment/mission-control`

### Testbed platform

- [Simulation](https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/simulation): `simulation`
- [Hardware design](https://github.com/omega-space-group/rslab-cubesat-testbed/tree/main/hardware): `hardware`

### Other components

- **Mission operator**
- **Sensors**

## Connections

- Sensors → AI payload: provides inputs (evidence: `README.md`)
- C&DH → AI payload: commands (evidence: `README.md`)
- C&DH → EPS: commands (evidence: `README.md`)
- AI payload → C&DH: sends telemetry (evidence: `README.md`)
- EPS → C&DH: sends telemetry (evidence: `README.md`)
- C&DH → CSP over CAN: uses control link (evidence: `README.md`)
- EPS → CSP over CAN: uses control link (evidence: `README.md`)
- AI payload → CSP over CAN: uses control link (evidence: `README.md`)
- AI payload → Zenoh over GigE: transfers data (evidence: `README.md`)
- Zenoh over GigE → C&DH: delivers products (evidence: `README.md`)
- Payload heartbeat → CSP over CAN: sends heartbeat (evidence: `flight-software/payload/jetson/utils/payload_heartbeat_can.py`)
- AI payload → Payload interfaces: uses interfaces
- C&DH → Communications: exchanges control (evidence: `README.md`)
- Communications → Ground station: relays over RF (evidence: `README.md`)
- Mission operator → Mission control: operates
- Ground station → Mission control: provides ground link
- Simulation → C&DH: supports validation
- Hardware design → C&DH: hosts avionics (evidence: `README.md`)
- Hardware design → EPS: hosts avionics (evidence: `README.md`)
- Hardware design → AI payload: hosts processing (evidence: `README.md`)
- Hardware design → Communications: hosts radio (evidence: `README.md`)
