From cf1ecc9affaf9c71f4137dbe838af40dde6376d9 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Sat, 21 Nov 2026 21:03:55 -0600 Subject: [PATCH] Verify Highlander lateral permission through braking --- .../car/toyota/tests/test_legacy_eps5_sdsu_callers.py | 10 ++++------ prebuilt.json | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/openpilot/starpilot/car/toyota/tests/test_legacy_eps5_sdsu_callers.py b/openpilot/starpilot/car/toyota/tests/test_legacy_eps5_sdsu_callers.py index 75e5f761fe..572c0e6dde 100644 --- a/openpilot/starpilot/car/toyota/tests/test_legacy_eps5_sdsu_callers.py +++ b/openpilot/starpilot/car/toyota/tests/test_legacy_eps5_sdsu_callers.py @@ -18,16 +18,14 @@ def test_legacy_sdsu_real_callers(candidate,stock,scenario,host_heartbeat_bridge def observe(tick, host, cs, command, native, wires): if highlander_stop and 341 <= tick <= 350: - # The 10 Hz producer still holds the withdrawal sampled before this request. - # Real live permission cannot replace its missing serialized acknowledgment. + assert host.CP.minEnableSpeed < 0 wire = next(event for event in wires if event.which() == 'aolSafetyWire') state = decode_safety(bytes(wire.aolSafetyWire)) - assert state is not None and not state.requestedLateral + assert state is not None and state.requestedLateral and state.lateralAllowed assert native.aol_get_request_mask() == native.aol_get_permission_mask() == 1 - assert not command.latActive and not command.longActive + assert command.latActive and not command.longActive - helpers.run_case(stock,scenario,candidate=candidate,bridge=host_heartbeat_bridge,input_clock=True, - brake_stop_check_start=355 if highlander_stop else 350,on_sample=observe) + helpers.run_case(stock,scenario,candidate=candidate,bridge=host_heartbeat_bridge,input_clock=True,on_sample=observe) @pytest.mark.parametrize('candidate',MODELS) diff --git a/prebuilt.json b/prebuilt.json index eb186b3239..770bc4a13f 100644 --- a/prebuilt.json +++ b/prebuilt.json @@ -1 +1 @@ -{"protected_inventory_sha256": "f906757f9610cd984f0d778b638c4aaf6b94efc0386f23ef72f488b8061098f4", "schema_version": 1} +{"protected_inventory_sha256": "0aab943a9a8b5ccaa4131e0411e432e5ebb02bebbca873438582db637671ccb0", "schema_version": 1}