From 8d2952e624a7615d12a40c20ad4352ad82e1c7fa Mon Sep 17 00:00:00 2001 From: Jason Young Date: Fri, 9 Sep 2022 16:24:29 -0400 Subject: [PATCH] temp hack to button handling --- selfdrive/car/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/car/__init__.py b/selfdrive/car/__init__.py index 409939e67..42499cf70 100644 --- a/selfdrive/car/__init__.py +++ b/selfdrive/car/__init__.py @@ -29,7 +29,8 @@ def create_button_enable_events(buttonEvents: capnp.lib.capnp._DynamicListBuilde for b in buttonEvents: # do enable on both accel and decel buttons if not pcm_cruise: - if b.type in (ButtonType.setCruise, ButtonType.resumeCruise, ButtonType.accelCruise, ButtonType.decelCruise) and not b.pressed: + # FIXME: temp hack to engage on set/resume only, VW should not engage on accel/decel, make this configurable + if b.type in (ButtonType.setCruise, ButtonType.resumeCruise) and not b.pressed: events.append(EventName.buttonEnable) # do disable on button down if b.type == ButtonType.cancel and b.pressed: