- Add a four-second arcade-style boot sequence followed by the Character / Nickname introduction. - Separate cabinet power-on from RFID credit and player Start. - Add operator Power on control and cabinet power-state reporting. - Prevent repeated power commands from restarting boot or gameplay. - Ignore RFID scans received before the cabinet is ready. - Add power-state, RFID, controller, and GPIO feedback regression tests. - Expand the master walkthrough with export, packaging, file transfer, fresh-Pi setup, RFID compilation, and end-to-end testing instructions. - Correct tester hardware documentation: BCM23/J20 drives an LED; physical buttons connect through a separate I2C1 input board. - Document operator-triggered power-on as the current test workflow and retain the temporary 2.4 configuration compatibility notes. - Record successful physical testing of power-on, RFID credit, and player Start. - Add an Odin integration README describing the proposed Rust/NATS bridge, shared messages, Flutter GM interface, autopilot sequencing, hardware ownership, and Starfish SSH-management role. - Define migration milestones and information needed from the framework owner; link the integration guide from the root README. Validation: 69 controller tests, 10 GPIO tests, Pac-Man power/RFID checks, managed-cabinet lifecycle checks, and visual screen inspection.
508 lines
8.6 KiB
JSON
508 lines
8.6 KiB
JSON
{
|
|
"cabinets": {
|
|
"cabinet_01": {
|
|
"actions": [
|
|
"coin_slot_1",
|
|
"lock_released"
|
|
],
|
|
"capabilities": [
|
|
"joystick_4way",
|
|
"start_button",
|
|
"select_button"
|
|
],
|
|
"devices": [
|
|
{
|
|
"id": "cab1_btn_red",
|
|
"kind": "input",
|
|
"name": "Red Button",
|
|
"port": "J17",
|
|
"pull_up": true
|
|
},
|
|
{
|
|
"id": "cab1_btn_grn",
|
|
"kind": "input",
|
|
"name": "Green Button",
|
|
"port": "J18",
|
|
"pull_up": true
|
|
},
|
|
{
|
|
"id": "cab1_btn_blue",
|
|
"kind": "input",
|
|
"name": "Blue Button",
|
|
"port": "J19",
|
|
"pull_up": true
|
|
},
|
|
{
|
|
"id": "cab1_btn_ylw",
|
|
"kind": "input",
|
|
"name": "Yellow Btn",
|
|
"port": "J20",
|
|
"pull_up": true
|
|
},
|
|
{
|
|
"id": "cab1_rfid2",
|
|
"kind": "rfid",
|
|
"name": "RFID Reader 2",
|
|
"port": "J2",
|
|
"pull_up": true
|
|
},
|
|
{
|
|
"id": "cab1_rfid1",
|
|
"kind": "rfid",
|
|
"name": "RFID Reader 1",
|
|
"port": "J1",
|
|
"pull_up": true
|
|
}
|
|
],
|
|
"name": "Cabinet 01",
|
|
"position": [
|
|
-6.55779981613159,
|
|
1.98219990730286
|
|
]
|
|
},
|
|
"cabinet_02": {
|
|
"actions": [
|
|
"coin_release",
|
|
"lock_released"
|
|
],
|
|
"capabilities": [
|
|
"joystick_horizontal",
|
|
"start_button",
|
|
"select_button",
|
|
"button_1"
|
|
],
|
|
"devices": [
|
|
{
|
|
"id": "cab1_btn_red",
|
|
"kind": "input",
|
|
"name": "Red Button",
|
|
"port": "J17",
|
|
"pull_up": true
|
|
},
|
|
{
|
|
"id": "cab1_btn_grn",
|
|
"kind": "input",
|
|
"name": "Green Button",
|
|
"port": "J18",
|
|
"pull_up": true
|
|
},
|
|
{
|
|
"id": "cab1_btn_blue",
|
|
"kind": "input",
|
|
"name": "Blue Button",
|
|
"port": "J19",
|
|
"pull_up": true
|
|
},
|
|
{
|
|
"id": "cab1_btn_ylw",
|
|
"kind": "input",
|
|
"name": "Yellow Btn",
|
|
"port": "J20",
|
|
"pull_up": true
|
|
},
|
|
{
|
|
"id": "cab1_rfid2",
|
|
"kind": "rfid",
|
|
"name": "RFID Reader 2",
|
|
"port": "J2",
|
|
"pull_up": true
|
|
},
|
|
{
|
|
"id": "cab1_rfid1",
|
|
"kind": "rfid",
|
|
"name": "RFID Reader 1",
|
|
"port": "J1",
|
|
"pull_up": true
|
|
}
|
|
],
|
|
"name": "Cabinet 02",
|
|
"position": [
|
|
-2.89779996871948,
|
|
1.98219990730286
|
|
]
|
|
},
|
|
"cabinet_03": {
|
|
"actions": [
|
|
"coin_slot_1",
|
|
"lock_released"
|
|
],
|
|
"capabilities": [
|
|
"spinner",
|
|
"button_1",
|
|
"start_button",
|
|
"select_button"
|
|
],
|
|
"devices": [],
|
|
"name": "Cabinet 03",
|
|
"position": [
|
|
-2.89779996871948,
|
|
3.20219993591309
|
|
]
|
|
},
|
|
"cabinet_04": {
|
|
"actions": [
|
|
"coin_slot_1",
|
|
"lock_released"
|
|
],
|
|
"capabilities": [
|
|
"roller",
|
|
"button_1",
|
|
"button_2",
|
|
"button_3",
|
|
"select_button",
|
|
"start_button"
|
|
],
|
|
"devices": [],
|
|
"name": "Cabinet 4",
|
|
"position": [
|
|
-6.55779981613159,
|
|
3.20219993591309
|
|
]
|
|
}
|
|
},
|
|
"games": {
|
|
"frogger": {
|
|
"alternatives": [],
|
|
"name": "Frogger",
|
|
"requirements": [
|
|
"joystick_4way",
|
|
"start_button"
|
|
]
|
|
},
|
|
"galaga": {
|
|
"alternatives": [],
|
|
"name": "Galaga",
|
|
"requirements": [
|
|
"joystick_horizontal",
|
|
"button_1",
|
|
"start_button"
|
|
]
|
|
},
|
|
"missile_command": {
|
|
"alternatives": [],
|
|
"name": "Missile Command",
|
|
"requirements": [
|
|
"trackball",
|
|
"button_1",
|
|
"button_2",
|
|
"button_3",
|
|
"start_button"
|
|
]
|
|
},
|
|
"pacman": {
|
|
"alternatives": [],
|
|
"name": "Pac-Man",
|
|
"requirements": [
|
|
"joystick_4way",
|
|
"start_button"
|
|
]
|
|
},
|
|
"robotron": {
|
|
"alternatives": [
|
|
[
|
|
"dual_joystick_8way"
|
|
],
|
|
[
|
|
"joystick_8way",
|
|
"button_1",
|
|
"button_2",
|
|
"button_3",
|
|
"button_4"
|
|
]
|
|
],
|
|
"name": "Robotron 2084",
|
|
"requirements": [
|
|
"start_button"
|
|
]
|
|
},
|
|
"space_invaders": {
|
|
"alternatives": [],
|
|
"name": "Space Invaders",
|
|
"requirements": [
|
|
"joystick_horizontal",
|
|
"button_1",
|
|
"start_button"
|
|
]
|
|
},
|
|
"tempest": {
|
|
"alternatives": [
|
|
[
|
|
"joystick_horizontal"
|
|
],
|
|
[
|
|
"spinner"
|
|
],
|
|
[
|
|
"trackball"
|
|
]
|
|
],
|
|
"name": "Tempest",
|
|
"requirements": [
|
|
"button_1",
|
|
"button_2",
|
|
"start_button"
|
|
]
|
|
}
|
|
},
|
|
"layout": {
|
|
"boundary": [
|
|
[
|
|
-7.31519985198975,
|
|
-0.609600007534027
|
|
],
|
|
[
|
|
-2.13359999656677,
|
|
-0.609600007534027
|
|
],
|
|
[
|
|
-2.13359999656677,
|
|
7.61999988555908
|
|
],
|
|
[
|
|
-7.31519985198975,
|
|
7.61999988555908
|
|
]
|
|
],
|
|
"devices": [
|
|
{
|
|
"id": "coin_release_a",
|
|
"name": "Coin Release A",
|
|
"position": [
|
|
-6.0149998664856,
|
|
0.555000007152557
|
|
]
|
|
},
|
|
{
|
|
"id": "coin_release_b",
|
|
"name": "Coin Release B",
|
|
"position": [
|
|
-3.57996416091919,
|
|
0.568386673927307
|
|
]
|
|
},
|
|
{
|
|
"id": "light_a",
|
|
"name": "Light A",
|
|
"position": [
|
|
-6.46999979019165,
|
|
0.560000002384186
|
|
]
|
|
},
|
|
{
|
|
"id": "light_b",
|
|
"name": "Light B",
|
|
"position": [
|
|
-4.0322380065918,
|
|
0.576531648635864
|
|
]
|
|
},
|
|
{
|
|
"id": "glitch_code",
|
|
"name": "Glitch Code",
|
|
"position": [
|
|
-2.75500297546387,
|
|
1.51234555244446
|
|
]
|
|
}
|
|
],
|
|
"walls": [
|
|
[
|
|
[
|
|
-7.01039981842041,
|
|
-0.304800003767014
|
|
],
|
|
[
|
|
-2.43840003013611,
|
|
-0.304800003767014
|
|
]
|
|
],
|
|
[
|
|
[
|
|
-2.43840003013611,
|
|
-0.304800003767014
|
|
],
|
|
[
|
|
-2.43840003013611,
|
|
7.31519985198975
|
|
]
|
|
],
|
|
[
|
|
[
|
|
-2.43840003013611,
|
|
7.31519985198975
|
|
],
|
|
[
|
|
-7.01039981842041,
|
|
7.31519985198975
|
|
]
|
|
],
|
|
[
|
|
[
|
|
-7.01039981842041,
|
|
7.31519985198975
|
|
],
|
|
[
|
|
-7.01039981842041,
|
|
-0.304800003767014
|
|
]
|
|
]
|
|
]
|
|
},
|
|
"scenarios": {
|
|
"cabinet_chain_test": {
|
|
"assignments": [
|
|
{
|
|
"activate_after_win": "",
|
|
"cabinet": "cabinet_01",
|
|
"game": "pacman",
|
|
"game_config": {},
|
|
"mappings": {},
|
|
"variant": "standard"
|
|
},
|
|
{
|
|
"activate_after_win": "cabinet_01",
|
|
"cabinet": "cabinet_02",
|
|
"game": "galaga",
|
|
"game_config": {},
|
|
"mappings": {},
|
|
"variant": "standard"
|
|
}
|
|
],
|
|
"name": "Cabinet 1 -> Cabinet 2"
|
|
},
|
|
"eg_glitch": {
|
|
"assignments": [
|
|
{
|
|
"activate_after_win": "",
|
|
"cabinet": "cabinet_01",
|
|
"game": "pacman",
|
|
"game_config": {},
|
|
"mappings": {},
|
|
"variant": "standard"
|
|
},
|
|
{
|
|
"activate_after_win": "",
|
|
"cabinet": "cabinet_02",
|
|
"game": "galaga",
|
|
"game_config": {},
|
|
"mappings": {},
|
|
"variant": "standard"
|
|
},
|
|
{
|
|
"activate_after_win": "",
|
|
"cabinet": "cabinet_03",
|
|
"game": "tempest",
|
|
"game_config": {},
|
|
"mappings": {},
|
|
"variant": "standard"
|
|
},
|
|
{
|
|
"activate_after_win": "",
|
|
"cabinet": "cabinet_04",
|
|
"game": "missile_command",
|
|
"game_config": {},
|
|
"mappings": {},
|
|
"variant": "standard"
|
|
}
|
|
],
|
|
"name": "Glitch: The Dark Machine"
|
|
},
|
|
"pacman_rfid_credit_test": {
|
|
"assignments": [
|
|
{
|
|
"activate_after_win": "",
|
|
"cabinet": "cabinet_01",
|
|
"game": "pacman",
|
|
"game_config": {
|
|
"boards_to_win": 1,
|
|
"power_on_device": "cab1_btn_ylw",
|
|
"rfid_allowed_uids": [],
|
|
"rfid_credit_device": "cab1_rfid1",
|
|
"score_to_win": 0
|
|
},
|
|
"mappings": {},
|
|
"variant": "standard"
|
|
}
|
|
],
|
|
"name": "Cabinet 1: Pac-Man RFID credit"
|
|
},
|
|
"three_cabinet_objective_test": {
|
|
"assignments": [
|
|
{
|
|
"activate_after_win": "",
|
|
"cabinet": "cabinet_01",
|
|
"game": "pacman",
|
|
"game_config": {
|
|
"boards_to_win": 0,
|
|
"score_to_win": 0,
|
|
"test_auto_win_seconds": 5.0
|
|
},
|
|
"mappings": {},
|
|
"variant": "standard"
|
|
},
|
|
{
|
|
"activate_after_win": "cabinet_01",
|
|
"cabinet": "cabinet_02",
|
|
"game": "galaga",
|
|
"game_config": {
|
|
"score_to_win": 500,
|
|
"stages_to_win": 0
|
|
},
|
|
"mappings": {},
|
|
"variant": "standard"
|
|
},
|
|
{
|
|
"activate_after_win": "cabinet_02",
|
|
"cabinet": "cabinet_03",
|
|
"game": "frogger",
|
|
"game_config": {
|
|
"boards_to_win": 0,
|
|
"homes_to_win": 1
|
|
},
|
|
"mappings": {},
|
|
"variant": "standard"
|
|
}
|
|
],
|
|
"name": "3-Cabinet Test: 5 seconds / 500 points / 1 frog"
|
|
},
|
|
"two_cabinet_test": {
|
|
"assignments": [
|
|
{
|
|
"activate_after_win": "",
|
|
"cabinet": "cabinet_01",
|
|
"game": "pacman",
|
|
"game_config": {},
|
|
"mappings": {
|
|
"game_started": [
|
|
"start_light"
|
|
],
|
|
"game_won": [
|
|
"coin_release"
|
|
]
|
|
},
|
|
"variant": "standard"
|
|
},
|
|
{
|
|
"activate_after_win": "",
|
|
"cabinet": "cabinet_02",
|
|
"game": "galaga",
|
|
"game_config": {},
|
|
"mappings": {
|
|
"game_activated": [
|
|
"glitch_code"
|
|
],
|
|
"game_started": [
|
|
"start_light"
|
|
],
|
|
"game_won": [
|
|
"coin_release"
|
|
]
|
|
},
|
|
"variant": "standard"
|
|
}
|
|
],
|
|
"name": "Two Cabinet Test"
|
|
}
|
|
},
|
|
"version": 1
|
|
} |