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

+14
View File
@@ -0,0 +1,14 @@
<%# The debug pages' switcher, on top of each (status, CAN, GNSS simulation). %>
<style>
.debug-nav { display: flex; flex-wrap: wrap; gap: 4px; margin: -16px -16px 12px; padding: 6px 12px; border-bottom: 1px solid color-mix(in srgb, CanvasText 15%, transparent); font-size: 0.9rem; }
.debug-nav a { padding: 6px 12px; border-radius: 6px; color: inherit; text-decoration: none; }
.debug-nav a:hover { background: color-mix(in srgb, CanvasText 8%, transparent); }
.debug-nav a[aria-current] { background: color-mix(in srgb, CanvasText 14%, transparent); font-weight: 600; }
.debug-nav .map { margin-left: auto; }
</style>
<nav class="debug-nav">
<% [["/status.html", "Server status"], ["/can.html", "CAN analyzer"], ["/sim.html", "GNSS simulation"]].each do |href, label| %>
<a href="<%= href %>"<%= ' aria-current="page"' if request.path == href %>><%= label %></a>
<% end %>
<a class="map" href="/" target="maptool">The map ↗</a>
</nav>