Debug pages switch between each other: one tab bar on top of /status.html, /can.html and /sim.html (views/_debug_nav.erb). CAN analyzer: a trace of every frame as it came (the server keeps the last 1000, GET /api/can?since=<seq> gives the new ones), each byte colored by what it is and decoded by its CANopen role — SDO command, index:subindex, expedited payload, segments, abort codes, byte 0 in bits; NMT, heartbeat, EMCY, SYNC, PDOs; who sent it, Δ ms, pause, clear, the frame filter
CI / check (push) Successful in 22s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-12-02 18:22:16 +01:00
1 parent 7901d75ff1
commit 7fdc0114e6
7 files changed
+153 -9

No files matched your search

+1 -1
View File
@@ -1364,7 +1364,7 @@ module Maptool
# CANopen node (heartbeat state, last seen) and each configured signal.
get "/api/can" do
require_login!
snapshot = CAN_STORE.snapshot
snapshot = CAN_STORE.snapshot(since: params[:since]&.to_i)
units = CAN_DECODER ? CAN_DECODER.units : {}
snapshot[:signals] = snapshot[:signals].to_h { |name, signal| [name, units[name] ? signal.merge(unit: units[name]) : signal] }
# simulated: the GNSS simulation (/sim.html) stands in for gnss.*