Skip to content

DAQ Server Support for the Stacklight Board - #75

Draft
R-Leano wants to merge 10 commits into
mainfrom
Leano/IntroDaqServerSupportStacklightBoard
Draft

R-Leano wants to merge 10 commits into
mainfrom
Leano/IntroDaqServerSupportStacklightBoard

Conversation

@R-Leano

@R-Leano R-Leano commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

Stacklight Board intro project - adds server-side support for the stacklight board.

Wrote a new service (stacklight_service) that watches the current state from the sequencer and sends the board a command telling it what color/buzzer to show. also added a card to the frontend status page so you can see it live on the dashboard too.

What I did:

  • New file: services/stacklight/stacklight_service_main.cpp - based this off heartbeat_service since it does something similar (reads state from elodin, sends udp). used the real create_stacklight_command_packet() helper instead of hand-packing bytes like heartbeat does
  • Added it to cmake so it builds with everything else
  • Added config.toml sections for the board + the service
  • Added a stacklight card to the status page frontend, same state -> light mapping just in typescript

Testing:

  • Compiles fine, binary runs and responds to --help
  • Frontend builds fine
  • Tested it live in sim mode - triggered a few real state changes (idle -> vent -> abort) and watched the card update colors correctly each time, buzzer pulses on abort/fire
  • Have NOT tested against the real board yet since it doesn't have an ip assigned

Questions for whoever reviews this:

  1. The color mapping (red/yellow/green/buzzer per state) is just my best guess based on standard industrial convention. would like someone to check it before this is actually used
  2. Board ip/id in config is a placeholder (192.168.2.70) until the real one gets assigned
  3. Not sure if abort/fire should blink instead of just staying solid red - open to feedback

Feel free to point out anything I did wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant