Keypad bindings in the UI (/keypad.html, after the Design canvas' GridBinding): the keypads drawn as can.json has them, a key or knob picked by a tap or by pressing it, what it drives (a screen action or an output), the output's mode, what it does in an open menu, its LEDs; saved per car in data/drive/bindings.json over the profile's (GET/PUT/DELETE /api/keypad/bindings, checked on the way in), drive mode takes them when it loads
This commit is contained in:
1 parent
d6af65f4ef
commit
e82b2236b5
7 files changed
+325
-8
No files matched your search
@@ -394,6 +394,15 @@ cyan magenta white), `led_on` while its screen key is on. `GET
|
||||
/api/keypad/leds` (`{"keypad": "pad", "on": {"K1": "cyan"}, "blink": {}}`)
|
||||
sets a PKP's key LEDs.
|
||||
|
||||
The bindings are edited in `/keypad.html` (after the Design canvas'
|
||||
GridBinding): the keypads drawn as can.json has them, a key or knob picked
|
||||
by a tap or by pressing it on the keypad, then what it drives (a screen
|
||||
key's action or an output), the output's mode, what it does in an open
|
||||
menu, its LEDs. Saved, they're this car's own, `data/drive/bindings.json`
|
||||
(`GET`/`PUT`/`DELETE /api/keypad/bindings`), and win over the profile's;
|
||||
"Back to the profile's" deletes the file. Drive mode takes them when it
|
||||
loads.
|
||||
|
||||
Outputs (`lib/maptool/outputs.rb`): relay modules on the bus, maptool the
|
||||
controller, nothing measured (no current, no feedback). A binding with an
|
||||
`output` in place of an `action` drives one channel:
|
||||
|
||||
Reference in new issue
Block a user