mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-12-02 12:43:53 +08:00
Verify Highlander lateral permission through braking
This commit is contained in:
@@ -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)
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"protected_inventory_sha256": "f906757f9610cd984f0d778b638c4aaf6b94efc0386f23ef72f488b8061098f4", "schema_version": 1}
|
||||
{"protected_inventory_sha256": "0aab943a9a8b5ccaa4131e0411e432e5ebb02bebbca873438582db637671ccb0", "schema_version": 1}
|
||||
|
||||
Reference in New Issue
Block a user