# johnathanburchill/simple_sat_ops architecture

> Architecture diagram of the GitHub repository johnathanburchill/simple_sat_ops, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/johnathanburchill/simple_sat_ops
- Repository: https://github.com/johnathanburchill/simple_sat_ops

## Overview

Simple Satellite Operations is a C tool suite centered on `simple_sat_ops`: an operator selects or schedules a satellite pass, the program predicts and tracks it, receives and decodes the downlink, stores packets, and can transmit telecommands while steering the antenna. The README documents these capabilities; sampled source confirms key orchestration, RX-session setup, packet-database registration, and IPC behavior. The graph preserves documented tools and optional hardware branches; unsampled subsystem internals are represented at their exact source directories.

Main entry points: [`apps/main.c`](https://github.com/johnathanburchill/simple_sat_ops/blob/main/apps/main.c) (Live operator app), [`src/pipeline/decode_loop.c`](https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/pipeline/decode_loop.c) (Frame decoding), [`src/pipeline/rx_session.c`](https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/pipeline/rx_session.c) (Receive session), [`src/hw/sdr_backend.c`](https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/hw/sdr_backend.c) (SDR backends)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_operation["Pass operations"]
  node_main["Live operator app<br/>[main.c]"]
  node_cli["CLI configuration<br/>[cli_args.c]"]
  node_orbit["Pass prediction<br/>[prediction.c]"]
  node_pass["Pass session<br/>[pass_session.c]"]
  node_tracking["Antenna tracking<br/>[tracking.c]"]
  node_rotator["Rotator control<br/>[antenna_rotator.c]"]
end

subgraph group_radio["RF and decoding"]
  node_sdr["SDR backends<br/>[sdr_backend.c]"]
  node_rx_session["Receive session<br/>[rx_session.c]"]
  node_decoder["Frame decoding<br/>[decode_loop.c]"]
  node_dsp["Signal processing<br/>[modem.c]"]
  node_audio["Audio I/O<br/>[audio_io.c]"]
end

subgraph group_data["Packets and commands"]
  node_tx_ui["Telecommand UI<br/>[auto_tcmd.c]"]
  node_tx_burst["TX burst<br/>[tx_burst.c]"]
  node_protocol["AX100 and CSP<br/>[ax100.c]"]
  node_beacon["Beacon telemetry<br/>[beacon_cts1.c]"]
  node_packet_db[("Packet database<br/>[packet_db.c]")]
end

subgraph group_operator["Operator and tools"]
  node_operator_ui["Terminal interface<br/>[panels.c]"]
  node_ipc["Viewer IPC<br/>[sso_ipc_server.c]"]
  node_packet_tools["Packet browser and query<br/>[packet_query.c]"]
  node_offline_tools["Offline decode tools<br/>[rx_replay.c]"]
  node_orbit_tools["Orbit utilities<br/>[next_in_queue.c]"]
end

node_operator_user(("Ground operator"))
node_viewer(("Read-only viewers"))
node_ground_hardware["SDR and antenna"]

node_operator_user -->|"operates"| node_main
node_main -->|"configures"| node_cli
node_main -->|"predicts passes"| node_orbit
node_main -->|"sets up pass"| node_pass
node_main -->|"tracks satellite"| node_tracking
node_tracking -->|"points antenna"| node_rotator
node_ground_hardware -->|"provides RF"| node_sdr
node_main -->|"selects backend"| node_sdr
node_sdr -->|"receives samples"| node_rx_session
node_rx_session -->|"decodes stream"| node_decoder
node_decoder -->|"processes signal"| node_dsp
node_rx_session -->|"registers packets"| node_packet_db
node_decoder -->|"decodes frames"| node_protocol
node_decoder -->|"extracts telemetry"| node_beacon
node_main -->|"offers telecommands"| node_tx_ui
node_tx_ui -->|"queues commands"| node_tx_burst
node_tx_burst -->|"builds frames"| node_protocol
node_tx_burst -->|"transmits burst"| node_sdr
node_main -->|"renders status"| node_operator_ui
node_main -->|"broadcasts state"| node_ipc
node_ipc -->|"fans out updates"| node_viewer
node_packet_tools -->|"queries packets"| node_packet_db
node_offline_tools -->|"replays recordings"| node_decoder
node_orbit_tools -->|"lists overpasses"| node_orbit
node_rx_session -.->|"provides audio"| node_audio

click node_main "https://github.com/johnathanburchill/simple_sat_ops/blob/main/apps/main.c"
click node_cli "https://github.com/johnathanburchill/simple_sat_ops/blob/main/apps/cli_args.c"
click node_orbit "https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/orbit/prediction.c"
click node_pass "https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/control/pass_session.c"
click node_tracking "https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/control/tracking.c"
click node_rotator "https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/hw/antenna_rotator.c"
click node_sdr "https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/hw/sdr_backend.c"
click node_rx_session "https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/pipeline/rx_session.c"
click node_decoder "https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/pipeline/decode_loop.c"
click node_dsp "https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/dsp/modem.c"
click node_audio "https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/audio/audio_io.c"
click node_tx_ui "https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/ui/auto_tcmd.c"
click node_tx_burst "https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/pipeline/tx_burst.c"
click node_protocol "https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/proto/ax100.c"
click node_beacon "https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/beacon/beacon_cts1.c"
click node_packet_db "https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/db/packet_db.c"
click node_operator_ui "https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/ui/panels.c"
click node_ipc "https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/ipc/sso_ipc_server.c"
click node_packet_tools "https://github.com/johnathanburchill/simple_sat_ops/blob/main/utils/packet_query.c"
click node_offline_tools "https://github.com/johnathanburchill/simple_sat_ops/blob/main/utils/rx_replay.c"
click node_orbit_tools "https://github.com/johnathanburchill/simple_sat_ops/blob/main/apps/next_in_queue.c"

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_main,node_cli,node_orbit,node_pass,node_tracking,node_rotator,node_viewer toneBlue
class node_sdr,node_rx_session,node_decoder,node_dsp,node_audio toneAmber
class node_tx_ui,node_tx_burst,node_protocol,node_beacon,node_packet_db toneMint
class node_operator_ui,node_ipc,node_packet_tools,node_offline_tools,node_orbit_tools toneRose
class node_operator_user,node_ground_hardware toneIndigo
```

## Components

### Pass operations

- [Live operator app](https://github.com/johnathanburchill/simple_sat_ops/blob/main/apps/main.c): `apps/main.c`
- [CLI configuration](https://github.com/johnathanburchill/simple_sat_ops/blob/main/apps/cli_args.c): `apps/cli_args.c`
- [Pass prediction](https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/orbit/prediction.c): `src/orbit/prediction.c`
- [Pass session](https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/control/pass_session.c): `src/control/pass_session.c`
- [Antenna tracking](https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/control/tracking.c): `src/control/tracking.c`
- [Rotator control](https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/hw/antenna_rotator.c): `src/hw/antenna_rotator.c`

### RF and decoding

- [SDR backends](https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/hw/sdr_backend.c): `src/hw/sdr_backend.c`
- [Receive session](https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/pipeline/rx_session.c): `src/pipeline/rx_session.c`
- [Frame decoding](https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/pipeline/decode_loop.c): `src/pipeline/decode_loop.c`
- [Signal processing](https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/dsp/modem.c): `src/dsp/modem.c`
- [Audio I/O](https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/audio/audio_io.c): `src/audio/audio_io.c`

### Packets and commands

- [Telecommand UI](https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/ui/auto_tcmd.c): `src/ui/auto_tcmd.c`
- [TX burst](https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/pipeline/tx_burst.c): `src/pipeline/tx_burst.c`
- [AX100 and CSP](https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/proto/ax100.c): `src/proto/ax100.c`
- [Beacon telemetry](https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/beacon/beacon_cts1.c): `src/beacon/beacon_cts1.c`
- [Packet database](https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/db/packet_db.c): `src/db/packet_db.c`

### Operator and tools

- [Terminal interface](https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/ui/panels.c): `src/ui/panels.c`
- [Viewer IPC](https://github.com/johnathanburchill/simple_sat_ops/blob/main/src/ipc/sso_ipc_server.c): `src/ipc/sso_ipc_server.c`
- [Packet browser and query](https://github.com/johnathanburchill/simple_sat_ops/blob/main/utils/packet_query.c): `utils/packet_query.c`
- [Offline decode tools](https://github.com/johnathanburchill/simple_sat_ops/blob/main/utils/rx_replay.c): `utils/rx_replay.c`
- [Orbit utilities](https://github.com/johnathanburchill/simple_sat_ops/blob/main/apps/next_in_queue.c): `apps/next_in_queue.c`

### Other components

- **Ground operator**
- **Read-only viewers**
- **SDR and antenna**

## Connections

- Ground operator → Live operator app: operates
- Live operator app → CLI configuration: configures (evidence: `apps/main.c`)
- Live operator app → Pass prediction: predicts passes
- Live operator app → Pass session: sets up pass (evidence: `src/control/pass_session.c`)
- Live operator app → Antenna tracking: tracks satellite
- Antenna tracking → Rotator control: points antenna
- SDR and antenna → SDR backends: provides RF
- Live operator app → SDR backends: selects backend
- SDR backends → Receive session: receives samples
- Receive session → Frame decoding: decodes stream (evidence: `src/pipeline/rx_session.c`)
- Frame decoding → Signal processing: processes signal
- Receive session → Packet database: registers packets (evidence: `src/pipeline/rx_session.c`)
- Frame decoding → AX100 and CSP: decodes frames
- Frame decoding → Beacon telemetry: extracts telemetry
- Live operator app → Telecommand UI: offers telecommands
- Telecommand UI → TX burst: queues commands
- TX burst → AX100 and CSP: builds frames
- TX burst → SDR backends: transmits burst
- Live operator app → Terminal interface: renders status (evidence: `apps/main.c`)
- Live operator app → Viewer IPC: broadcasts state (evidence: `apps/main.c`)
- Viewer IPC → Read-only viewers: fans out updates
- Packet browser and query → Packet database: queries packets (evidence: `utils/packet_query.c`)
- Offline decode tools → Frame decoding: replays recordings
- Orbit utilities → Pass prediction: lists overpasses
- Receive session → Audio I/O: provides audio
