interfaces: disable on falling edge of cancel button (#26493)

* both

* Update ref_commit
pull/26442/head
Shane Smiskol 2 years ago committed by GitHub
parent e46063086f
commit ca37d0c8cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      selfdrive/car/interfaces.py
  2. 2
      selfdrive/test/process_replay/ref_commit

@ -250,8 +250,8 @@ class CarInterfaceBase(ABC):
# Enable OP long on falling edge of enable buttons (defaults to accelCruise and decelCruise, overridable per-port)
if not self.CP.pcmCruise and (b.type in enable_buttons and not b.pressed):
events.add(EventName.buttonEnable)
# Disable on rising edge of cancel for both stock and OP long
if b.type == ButtonType.cancel and b.pressed:
# Disable on rising and falling edge of cancel for both stock and OP long
if b.type == ButtonType.cancel:
events.add(EventName.buttonCancel)
# Handle permanent and temporary steering faults

@ -1 +1 @@
b5c833a8f5b3e6202a52746fc16809c7b649d591
2ac5ecc79218aad0319e02218b050319a180e957

Loading…
Cancel
Save