design.adoc: screen profiles (road / terrain / planning, every grid field configurable, the terrain view switching itself on off-road or past 10° and back, menu: automatic / by hand) and switches and the keypad — how Garmin PowerSwitch, OnDeck, MaxxECU, ECUMaster PMU do it, maptool as the controller (bindings per profile, modes, the LED colour line under a key, fail-safe), the interim keypad's 8 keys and 8 encoders

This commit is contained in:
randy committed 2026-12-03 01:29:12 +01:00
1 parent 97d1bda09c
commit f161243c61
1 file changed
+114 -1
+114 -1
View File
@@ -267,7 +267,8 @@ comes from, is one too) of *16 × 10 cells of 80 px* on the navigator's
* top row: the manoeuvre (4 cells), then fields (2 cells each); * top row: the manoeuvre (4 cells), then fields (2 cells each);
* the map 13 × 8 cells, nothing over it; * the map 13 × 8 cells, nothing over it;
* right column 3 cells wide: the next stop, km and ETA, the rest to the * right column 3 cells wide: the next stop, km and ETA, the rest to the
end, the inclinometer (3 cells), a small compass (1 cell); end, the elevation ahead (3 cells; the inclinometer moved to the
Terrain profile, below), a small compass (1 cell);
* bottom row: the menu's tabs (Trip, Points, Layers, Search, Menu), the * bottom row: the menu's tabs (Trip, Points, Layers, Search, Menu), the
map keys (−, +, 3D, Follow), day/dusk/night — all 80 px, the map keys (−, +, 3D, Follow), day/dusk/night — all 80 px, the
Android Auto 76 px at least; Android Auto 76 px at least;
@@ -284,6 +285,118 @@ Sources: OpenCPN manuals — Dashboard
(opencpn-manuals.github.io/main/dashboard), inland ECDIS getting started; (opencpn-manuals.github.io/main/dashboard), inland ECDIS getting started;
the photos of the bridge and the plotter. the photos of the bridge and the plotter.
=== Screen profiles (2026-12-02)
The grid's cells belong to a *profile*: planning (standing, a big map and
the trip), road (the Grid above), terrain, later others. A profile is
its cells — `{area, widget, options}`, the widget a value field (any
signal from the bus or GNSS, label, unit, decimals, amber/red limits), a
dial (inclinometer, compass), a chart (elevation), a list (stops), the
map, a menu panel or a row of keys — plus the condition that switches it
on. Every cell is configurable; the grid differs per screen (16″
1280×800 is 16 × 10), so profiles are per screen type. Edited in the app,
standing only: tap a cell → widget and signal, drag a corner → its size.
*Terrain* (artboard GridTerrain): the inclinometer only off-road — on
the road its cells show the elevation ahead. A 7 × 8 panel like a menu,
the map 9 × 8: roll (a rear view) and pitch (a side view), each with
amber past 20° / 25° and red past 1.5× (as `dashboard.js`), the maximum
held until reset; heading, the climb and the side slope ahead (DEM), the
elevation of the next 2 km; the surface in the top row in place of the
limit; "Level here" (the node levels itself, SDO, `/can.html`'s action
already), "Reset max", "Road view". It switches itself on when the car
leaves paved road (OSM `surface`, `tracktype` ≥ 2, or off any road) or
roll/pitch stay past 10° for 10 s, back after 2 km of paved road or by
hand; the menu has "Terrain view: automatic / by hand" (automatic by
default).
=== Switches and the keypad: how others do it (research, 2026-12-02)
Relay modules and lights on the CANopen bus, keys and rotary encoders on
a CANopen keypad (RGB LED per key), all driven by maptool.
[cols="1,3"]
|===
|Who |How
|Garmin PowerSwitch (app, custom layouts)
|A button: label, icon, colour. Actions per switch: *Toggle*, *Turn On*,
*Turn Off*. Button modes: *Normal* (one touch), *Momentary* (on only
while touched), *Strobe* (on and off at a chosen interval). A brightness
slider for lights.
|Garmin OnDeck (ActiveCaptain / chartplotter)
|*Latching* (on until turned off) or *Momentary* for a selected
*duration*; a name, an icon, a switch can be hidden.
|MaxxECU PDM, CAN keypads (Blink Marine, Grayhill/MoTeC)
|Button steps: *Momentary* or *2 to 6 positions* (each press moves to the
next state). *Keep state* at power loss: keep the last state or reset to
off. LED: a colour per state, a *fault indication* (blinks red on any or
a given fault), *user colours* on a condition; only green, orange and red
on the Grayhill/MoTeC keypads. Encoders: steps 0–255, LED pattern single
LED / bar graph / one + first/last. Backlight always on or with the
ignition (with an off delay), dimmed with the lights.
|ECUMaster PMU (5x3MT, RacePad)
|RGB, 7 colours. Encoder modes: *encoder* (a channel's value, first /
last / default state, autosaved), *changer* (pages, wrap from last to
first), *parameter controller* with buttons as *parameter selectors*
(radio buttons choosing what the knob changes; pressing the selected one
again releases the knob). 16 LEDs around each encoder show its value
(start offset, inverted, bi-directional from the centre).
|PDM and marine practice (not in the pages above)
|Timers (auto-off), exclusive *interlock* groups (winch in ⟂ out),
conditions (ignition, engine running, speed), a defined state when
communication is lost, a confirmation for dangerous circuits.
|===
What it means for us:
* *maptool is the whole controller*: keypads, relay modules and lights
are I/O; the modes, timers, strobe, interlocks, conditions and LED
colours run in maptool — unless a device has its own firmware for that
function, which is outside our scope.
* *A binding* = an input (keypad node, key or encoder) + a mode + a
target: an output (a relay or light channel, SDO/RPDO) or a screen
function (zoom, the next profile, the next stop). Bindings live in the
screen profile, so a key can do something else off-road.
* *Modes*: Toggle, On, Off, Hold (momentary), Pulse (on for a duration),
Positions 1..N, Strobe (interval), Dimmer (a level, an encoder turns
it); per binding an interlock group, "only when", a long press, a
confirmation, the state at power-on and when maptool or the keypad is
lost.
* *The LED colour on the screen*: a thin line in the key's LED colour
under the tile or screen key it drives — dim off, full on, blinking red
on a fault — so it's clear which key controls what.
* *Fail-safe*: a Hold output goes off when the keypad or maptool goes
silent; a relay node needs a heartbeat consumer on maptool and its own
safe state.
* *Encoders*: a value (dimmer, volume), a changer (profiles, wrap) or a
parameter controller. The interim (Blink Marine style) keypad has 8
keys and 8 encoders: two move the map, one zooms, the rest are bound
per profile. *Moving with a knob* instead of dragging: press to grab
the selected row (a stop, a point, a layer), turn to move it up or
down the list or into a folder, press again to drop it — no dragging
on a bumpy road. Ours have one LED each, no ring: the value could
show for a moment on the keypad's other LEDs while the knob turns (a
bar across the keys, then back to their own colours) — to be worked
out.
Mockups: the Design canvas, artboards GridSwitches (tiles: icon, name,
state, mode, the key, the LED line) and GridBinding (the keypad, a key's
target, mode, options, LED colours).
Sources: Garmin PowerSwitch manual, "Adding a Button to a Custom Layout"
(www8.garmin.com/manuals/webhelp, Tread Overland Edition); Garmin OnDeck
manual, "Configuring the Switches with a Mobile Device" and "…with a
Chartplotter"; MaxxECU help, CAN keypad settings
(maxxecu.com/webhelp/settings-can_keypad-keypad_settings.html);
ECUMaster, "How-to Set Up Keyboards with Encoders in PMU" (v1.0,
2026-01-09); ECUMaster USA, CAN keypads with the PMU16; HP Academy, PDM
control pad setup.
== Typography == Typography
* Planning UI: the system sans; *National Park* (the router-carved * Planning UI: the system sans; *National Park* (the router-carved