GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - nunorc/minscs: minscs — minimalist spacecraft simulator

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
common
common
 
 
config
config
 
 
containers
containers
 
 
docs
docs
 
 
egse
egse
 
 
hub
hub
 
 
include
include
 
 
mdb
mdb
 
 
nodes
nodes
 
 
sim
sim
 
 
tests
tests
 
 
tools
tools
 
 
yamcs
yamcs
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
run_sim.sh
run_sim.sh
 
 

Repository files navigation

minscs — minimalist spacecraft simulator

Five spacecraft subsystems — DHS, TTC, ADCS, EPS and PAYLOAD — each built as an independent FreeRTOS binary, talking over a simulated multi-drop CAN bus, plus a ground-segment EGSE you can drive over TCP. Nodes share no memory: the only thing that crosses a subsystem boundary is an 8-byte CAN frame — except bulk science, which crosses a second bus, a point-to-point SpaceWire link carrying RMAP writes from the payload straight into the DHS's mass memory. The spacecraft/ground boundary is a TCP stream of CCSDS Space Packets with ECSS PUS-C headers.

        ┌─────────┐   ┌─────────┐   ┌─────────┐   ┌─────────┐   ┌─────────┐
        │   DHS   │   │   TTC   │   │  ADCS   │   │   EPS   │   │ PAYLOAD │
        │  0x1    │   │  0x2    │   │  0x3    │   │  0x4    │   │  0x5    │
        └──┬───┬──┘   └──┬──┬───┘   └────┬────┘   └────┬────┘   └──┬───┬──┘
           │   └─────────┴──┼────┬───────┴─────────────┴───────────┘   │
           │                │    │  UDP :20000  (CAN backplane)        │
           │                │  ┌─┴─────────┐                           │
           │                │  │  can_hub  │  routing table, learned   │
           │                │  └───────────┘  at runtime               │
           └────────────────┼──────────────────────────────────────────┘
              UDP :20100    │   SpaceWire: RMAP bulk science, one way
                            │
              TCP :21000    │                      ── spacecraft ──
        ════════════════════╪══════════════════════════════════════
                            │                      ──── ground ────
                      ┌─────┴─────┐  TCP :21001    ┌──────────┐
                      │   egse    │ ──── stream ──▶│ egse_tm  │ decode TM
                      │  (relay)  │ ◀─── TC ───────│ egse_tc  │ build TC
                      └───────────┘                └──────────┘

Quickstart

Build the project using cmake and then run the complete platform using the ./run_sim.sh script:

$ cmake -B build && cmake --build build -j     # fetches FreeRTOS-Kernel V11.3.0
$ ./run_sim.sh                                 # Ctrl+C stops the platform
$ ./build/bin/egse_tm                          # watch decoded telemetry, in another terminal
$ ./build/bin/egse_tc DHS PING                 # send a command, in a third

Or using docker:

$ docker compose up --build

Documentation

The documentation is available from: https://nunorc.github.io/minscs/, the source is available from docs/.

About

minscs — minimalist spacecraft simulator

nunorc.github.io/minscs/

Topics

freertosspacecraftspacecraft-designspacecraft-operationsspacecraft-simulation

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.