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
This commit is contained in:
1 parent
ce290f2162
commit
e92f01db12
12 files changed
+713
-76
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user