mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-12-04 00:43:41 +08:00
Align VW Cancel contract with independent lateral intent
This commit is contained in:
@@ -95,6 +95,12 @@ def test_intent_main_brake_temporary_fault_and_current_serialized_native_receipt
|
||||
cs.steerFaultTemporary = False
|
||||
cs.buttonEvents = [structs.CarState.ButtonEvent(type=structs.CarState.ButtonEvent.Type.cancel, pressed=True)]
|
||||
owner.update(cs, now_ns=now + 50_000_000)
|
||||
# Unassigned Cancel ends cruise, not separately armed lateral intent.
|
||||
assert owner.allowed_latch
|
||||
cs.buttonEvents = []
|
||||
cs.cruiseState.available = False
|
||||
owner.update(cs, now_ns=now + 60_000_000)
|
||||
# MAIN off must still revoke the lateral latch.
|
||||
assert not owner.allowed_latch
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"protected_inventory_sha256": "48bdf642b57bb456c64886c0eb9be4c451fc1b7003975315bbf35cc14533aee2", "schema_version": 1}
|
||||
{"protected_inventory_sha256": "a2135cc530bdaa6fdb759c7641c4cca606f13e88b59244414bbb14e217e7565b", "schema_version": 1}
|
||||
|
||||
Reference in New Issue
Block a user