Merge branch 'mads-button-event-modern' into master-dev-c3

This commit is contained in:
Jason Wen
2024-07-20 20:54:03 -04:00
10 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ class CarInterface(CarInterfaceBase):
ret.buttonEvents = [
*ret.buttonEvents,
*self.button_events.create_mads_event(self.CS.madsEnabled, self.CS.out.madsEnabled, self.mads_event_lock) # MADS BUTTON
*self.button_events.create_mads_event(self.CS.madsEnabled, self.CS.out.madsEnabled) # MADS BUTTON
]
# events
+1 -1
View File
@@ -119,7 +119,7 @@ class CarInterface(CarInterfaceBase):
ret.buttonEvents = [
*ret.buttonEvents,
*self.button_events.create_mads_event(self.CS.madsEnabled, self.CS.out.madsEnabled, self.mads_event_lock) # MADS BUTTON
*self.button_events.create_mads_event(self.CS.madsEnabled, self.CS.out.madsEnabled) # MADS BUTTON
]
events = self.create_common_events(ret, c, extra_gears=[GearShifter.manumatic], pcm_enable=False)
+1 -1
View File
@@ -253,7 +253,7 @@ class CarInterface(CarInterfaceBase):
ret.buttonEvents = [
*ret.buttonEvents,
*self.button_events.create_mads_event(self.CS.madsEnabled, self.CS.out.madsEnabled, self.mads_event_lock) # MADS BUTTON
*self.button_events.create_mads_event(self.CS.madsEnabled, self.CS.out.madsEnabled) # MADS BUTTON
]
# The ECM allows enabling on falling edge of set, but only rising edge of resume
+1 -1
View File
@@ -305,7 +305,7 @@ class CarInterface(CarInterfaceBase):
ret.buttonEvents = [
*ret.buttonEvents,
*self.button_events.create_mads_event(self.CS.madsEnabled, self.CS.out.madsEnabled, self.mads_event_lock) # MADS BUTTON
*self.button_events.create_mads_event(self.CS.madsEnabled, self.CS.out.madsEnabled) # MADS BUTTON
]
# events
+1 -1
View File
@@ -249,7 +249,7 @@ class CarInterface(CarInterfaceBase):
ret.buttonEvents = [
*ret.buttonEvents,
*self.button_events.create_mads_event(self.CS.madsEnabled, self.CS.out.madsEnabled, self.mads_event_lock) # MADS BUTTON
*self.button_events.create_mads_event(self.CS.madsEnabled, self.CS.out.madsEnabled) # MADS BUTTON
]
# On some newer model years, the CANCEL button acts as a pause/resume button based on the PCM state
+1 -1
View File
@@ -75,7 +75,7 @@ class CarInterface(CarInterfaceBase):
ret.buttonEvents = [
*ret.buttonEvents,
*self.button_events.create_mads_event(self.CS.madsEnabled, self.CS.out.madsEnabled, self.mads_event_lock) # MADS BUTTON
*self.button_events.create_mads_event(self.CS.madsEnabled, self.CS.out.madsEnabled) # MADS BUTTON
]
# events
+1 -1
View File
@@ -56,7 +56,7 @@ class CarInterface(CarInterfaceBase):
ret.buttonEvents = [
*self.CS.button_events,
*self.button_events.create_cancel_event(ret.cruiseState.enabled, self.CS.out.cruiseState.enabled),
*self.button_events.create_mads_event(self.CS.madsEnabled, self.CS.out.madsEnabled, self.mads_event_lock) # MADS BUTTON
*self.button_events.create_mads_event(self.CS.madsEnabled, self.CS.out.madsEnabled) # MADS BUTTON
]
events = self.create_common_events(ret, c, extra_gears=[GearShifter.sport, GearShifter.low, GearShifter.brake],
+1 -1
View File
@@ -146,7 +146,7 @@ class CarInterface(CarInterfaceBase):
ret.buttonEvents = [
*self.CS.button_events,
*self.button_events.create_cancel_event(ret.cruiseState.enabled, self.CS.out.cruiseState.enabled),
*self.button_events.create_mads_event(self.CS.madsEnabled, self.CS.out.madsEnabled, self.mads_event_lock) # MADS BUTTON
*self.button_events.create_mads_event(self.CS.madsEnabled, self.CS.out.madsEnabled) # MADS BUTTON
]
events = self.create_common_events(ret, c, extra_gears=[GearShifter.sport, GearShifter.low], pcm_enable=False)
+1 -1
View File
@@ -247,7 +247,7 @@ class CarInterface(CarInterfaceBase):
ret.buttonEvents = [
*ret.buttonEvents,
*self.button_events.create_cancel_event(ret.cruiseState.enabled, self.CS.out.cruiseState.enabled),
*self.button_events.create_mads_event(self.CS.madsEnabled, self.CS.out.madsEnabled, self.mads_event_lock) # MADS BUTTON
*self.button_events.create_mads_event(self.CS.madsEnabled, self.CS.out.madsEnabled) # MADS BUTTON
]
# events
+1 -1
View File
@@ -146,7 +146,7 @@ class CarInterface(CarInterfaceBase):
ret.buttonEvents = [
*ret.buttonEvents,
*self.button_events.create_mads_event(self.CS.madsEnabled, self.CS.out.madsEnabled, self.mads_event_lock) # MADS BUTTON
*self.button_events.create_mads_event(self.CS.madsEnabled, self.CS.out.madsEnabled) # MADS BUTTON
]
events = self.create_common_events(ret, c, extra_gears=[GearShifter.eco, GearShifter.sport, GearShifter.manumatic],