Keypads as channels and bindings, the PDMs' way (lib/maptool/keypad.rb): can.json's keypads (a Blink Marine PKP by its protocol, or any signals as inputs) give channels pad.K1, pad.E3, pad.E3 press; the drive profile's bindings give each a screen action, a knob action (zoom, pan, rows), another in an open menu and its LED colour, sent back to the PKP. Outputs (lib/maptool/outputs.rb): relay modules (simulated, no current measured), a binding's output with toggle/on/off/hold/pulse, hold off when the keypad goes silent, the state re-sent every 100 ms; /sim.html switches them by hand. CANopen TIME from maptool while no other node sends it (lib/maptool/can_time.rb), shown in /can.html
This commit is contained in:
1 parent
bf90f4cf23
commit
38fb06853e
14 files changed
+785
-24
No files matched your search
@@ -4947,6 +4947,15 @@ html.driving #app,
|
||||
border-radius: var(--drive-radius);
|
||||
}
|
||||
html.driving .app-body { border-radius: calc(var(--drive-radius) + 2px); overflow: hidden; }
|
||||
|
||||
/* The CAN keypad on the bus (html.drive-keypad, driving.js): the corner
|
||||
labels its keys (none = touch only), a line under the key in its LED colour */
|
||||
html.driving.drive-keypad [data-key]::after { content: attr(data-keypad); }
|
||||
html.driving.drive-keypad [data-key]:not([data-keypad])::after { display: none; }
|
||||
html.driving.drive-keypad [data-led] { box-shadow: inset 0 calc(-4px * var(--s, 1)) 0 var(--led); }
|
||||
[data-led="cyan"] { --led: #22c3d6; }
|
||||
[data-led="white"] { --led: #e8e6df; }
|
||||
[data-led="yellow"] { --led: #f0a020; }
|
||||
.drive-rec__cutrow { flex: none; height: calc(var(--cell, 80px) / 2); display: flex; align-items: center; gap: 10px; padding-left: 28px; background: var(--band); color: var(--drive-muted); font-size: calc(14px * var(--s, 1)); }
|
||||
.drive-rec__cutrow span:nth-child(2) { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.drive-panel .drive-rec__cutrow button { height: 100%; padding: 0 16px; background: none; border-left: 1px solid var(--drive-line); font-size: calc(14px * var(--s, 1)); font-weight: 700; }
|
||||
|
||||
Reference in new issue
Block a user