feat(native-usb): add 32-frame HD gameplay rumble and USB flight diagnostics
Preserve native frequency/amplitude timelines for DualSense PCM output, remove the unsupported 64-frame path, and retain compatibility rumble for other controllers. Use the validated 300 MHz sampling phase and restrict non-bondable Classic discovery autoconnect to previously paired peers. Buffer native-hub UART stdout and release USB IRQs around port-reset callbacks. Add observer liveness and pre-SETUP root-response observations without changing recovery behavior. Cover transport and haptics boundaries. Record the user-accepted 0.108 trial: controls remained responsive and rumble felt fine. Instrumentation changes timing; the disconnect root cause and long-term reliability remain unqualified. Validation: 624 tests, 11 affected firmware/probe builds, and on-device concurrent USB and HD-auto-start checks. Private captures, generated images, and unrelated working-tree files are intentionally excluded.
This commit is contained in:
parent
ae1ca51b9a
commit
80b788099b
46 changed files with 2873 additions and 412 deletions
|
|
@ -10,15 +10,14 @@ def test_bluepad32_backend_lifecycle_native(tmp_path: Path) -> None:
|
|||
compiler = shutil.which("c++") or shutil.which("g++")
|
||||
assert compiler is not None, "a host C++ compiler is required"
|
||||
|
||||
for bluetooth_mode, native, short_packets, wii_bridge in (
|
||||
("mixed", False, False, False),
|
||||
("mixed", True, False, False),
|
||||
("mixed", True, True, False),
|
||||
("ble", False, False, False),
|
||||
("classic", False, False, False),
|
||||
("mixed", False, False, True),
|
||||
for bluetooth_mode, native, wii_bridge in (
|
||||
("mixed", False, False),
|
||||
("mixed", True, False),
|
||||
("ble", False, False),
|
||||
("classic", False, False),
|
||||
("mixed", False, True),
|
||||
):
|
||||
suffix = "_wii_bridge" if wii_bridge else "_native32" if short_packets else "_native64" if native else ""
|
||||
suffix = "_wii_bridge" if wii_bridge else "_native32" if native else ""
|
||||
executable = (
|
||||
tmp_path / f"bluepad32_backend_lifecycle_test_{bluetooth_mode}{suffix}"
|
||||
)
|
||||
|
|
@ -42,7 +41,7 @@ def test_bluepad32_backend_lifecycle_native(tmp_path: Path) -> None:
|
|||
"-DSWITCH_PICO_HAPTICS_EXPERIMENT=1",
|
||||
"-DSWITCH_PICO_HD_RUMBLE=1",
|
||||
"-DSWITCH_PICO_HAPTICS_EXPERIMENT_RAM=0",
|
||||
f"-DSWITCH_PICO_HD_PACKET_FRAMES={32 if short_packets else 64}",
|
||||
"-DSWITCH_PICO_HD_PACKET_FRAMES=32",
|
||||
str(root / "src" / "firmware" / "input" / "haptics_experiment.cpp"),
|
||||
str(
|
||||
root
|
||||
|
|
@ -68,7 +67,7 @@ def test_bluepad32_backend_lifecycle_native(tmp_path: Path) -> None:
|
|||
),
|
||||
]
|
||||
)
|
||||
if short_packets:
|
||||
if native:
|
||||
command.extend(
|
||||
[
|
||||
"-DSWITCH_PICO_CYW43_PACKET_READ=1",
|
||||
|
|
@ -116,7 +115,11 @@ def test_bluepad32_backend_lifecycle_native(tmp_path: Path) -> None:
|
|||
)
|
||||
subprocess.run(command, check=True, cwd=root)
|
||||
if wii_bridge:
|
||||
for scenario in ("wii-bridge-sensors", "wii-bridge-cues", "wii-bridge-cue-races"):
|
||||
for scenario in (
|
||||
"wii-bridge-sensors",
|
||||
"wii-bridge-cues",
|
||||
"wii-bridge-cue-races",
|
||||
):
|
||||
subprocess.run([str(executable), scenario], check=True, cwd=root)
|
||||
continue
|
||||
subprocess.run([str(executable), "transport-policy"], check=True, cwd=root)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue