17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-03 17:50:21 +01:00

Add vehicle graph core: .vhg loader, logic and cab blocks, -graph-run and -graph-catalog

This commit is contained in:
2026-10-13 10:55:53 +02:00
parent c26041f2e7
commit 70abf879b3
42 changed files with 4693 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
// expect: ok
// the same self-holding circuit as loop.vhg, closed through a unit delay
{ "format": "maszyna-vehicle-graph", "version": 2, "nodes": [
{ "id": "start", "type": "cab.switch" },
{ "id": "hold", "type": "logic.or" },
{ "id": "coil", "type": "logic.and" },
{ "id": "stop", "type": "logic.const", "params": { "value": 1 } },
{ "id": "contact", "type": "logic.delay" }
], "connections": [
{ "from": "start.pos", "to": "hold.a" },
{ "from": "contact.q", "to": "hold.b" },
{ "from": "hold.q", "to": "coil.a" },
{ "from": "stop.q", "to": "coil.b" },
{ "from": "coil.q", "to": "contact.a" }
] }