Native CAN (the van's final setup, MQTT the stopgap): SocketCAN on any number of interfaces, CANopen frame roles, heartbeat states and NMT start, signals decoded by data/can.json (id/mask, byte/bit, type, scale/offset, unit); gnss.* signals feed the GNSS control, GET /api/can; tested over vcan0
CI / check (push) Successful in 20s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-11-27 22:48:46 +01:00
1 parent 78bdc7f6f0
commit 850a5946ad
5 files changed
+299 -5

No files matched your search

+5
View File
@@ -137,6 +137,11 @@ class AppTest < Minitest::Test
assert_equal 401, request.get("/api/live").status
end
def test_can_requires_login_and_is_off_without_a_config
assert_equal 401, request.get("/api/can").status
assert_equal({ "interfaces" => {}, "nodes" => {}, "signals" => {}, "available" => false }, json_body(request.get("/api/can", **logged_in_env)))
end
# MQTT messages land in the tracker / ITS-G5 parts of /api/live.
def test_live_routes_topics_into_the_snapshot
app = Maptool::App