Nodes describe themselves: an SDO client (Can::Sdo) reads each esphome-canopen node's TPDOs and entities (type, name, unit, range) on its first heartbeat, cached by the TPDO layout hash, decoded with no hand-written signals — can.json keeps aliases (with unit conversion) and foreign devices; design doc (NPS planning, cockpit instruments, Unigrid band) with color tokens, the dashboard in cockpit colors; starting the simulation turns the GNSS follow on, the GNSS position an arrow by its course
CI / check (push) Successful in 23s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-11-30 19:51:03 +01:00
1 parent ce290f2162
commit e92f01db12
12 files changed
+713 -76

No files matched your search

+12
View File
@@ -135,6 +135,18 @@ export function onReroute(callback) {
document.addEventListener(REROUTE_EVENT, (event) => callback(event.detail));
}
// Something that moves the GNSS position (the simulation) wants the map
// to follow it: the GNSS control turns itself on.
const GNSS_FOLLOW_EVENT = "gnss-follow";
export function requestGnssFollow() {
document.dispatchEvent(new CustomEvent(GNSS_FOLLOW_EVENT));
}
export function onGnssFollow(callback) {
document.addEventListener(GNSS_FOLLOW_EVENT, callback);
}
export function onRouteChanged(callback) {
document.addEventListener(ROUTE_CHANGED_EVENT, (event) => callback(event.detail));
return currentRoute;