mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-03 08:41:47 +08:00
VW PQ: Fix exception with openpilot longitudinal (#26417)
* VW PQ: Fix exception in long control
* move default value to init
old-commit-hash: 34f580e75e
This commit is contained in:
@@ -12,6 +12,7 @@ class CarState(CarStateBase):
|
||||
super().__init__(CP)
|
||||
self.CCP = CarControllerParams(CP)
|
||||
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):
|
||||
button_events = []
|
||||
|
||||
Reference in New Issue
Block a user