VW PQ: Fix exception with openpilot longitudinal (#26417)

* VW PQ: Fix exception in long control

* move default value to init
pull/26418/head^2
Jason Young 2 years ago committed by GitHub
parent 9f1fe1193c
commit 34f580e75e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      selfdrive/car/volkswagen/carstate.py

@ -12,6 +12,7 @@ class CarState(CarStateBase):
super().__init__(CP) super().__init__(CP)
self.CCP = CarControllerParams(CP) self.CCP = CarControllerParams(CP)
self.button_states = {button.event_type: False for button in self.CCP.BUTTONS} self.button_states = {button.event_type: False for button in self.CCP.BUTTONS}
self.esp_hold_confirmation = False
def create_button_events(self, pt_cp, buttons): def create_button_events(self, pt_cp, buttons):
button_events = [] button_events = []

Loading…
Cancel
Save