card: default events (#34532)

default events
pull/34537/head
Shane Smiskol 3 months ago committed by GitHub
parent ddc29430ec
commit 40863aa988
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      selfdrive/car/car_specific.py

@ -45,9 +45,6 @@ class CarSpecificEvents:
if self.CP.brand in ('body', 'mock'): if self.CP.brand in ('body', 'mock'):
events = Events() events = Events()
elif self.CP.brand in ('subaru', 'mazda', 'tesla'):
events = self.create_common_events(CS, CS_prev)
elif self.CP.brand == 'ford': elif self.CP.brand == 'ford':
events = self.create_common_events(CS, CS_prev, extra_gears=[GearShifter.manumatic]) events = self.create_common_events(CS, CS_prev, extra_gears=[GearShifter.manumatic])
@ -160,7 +157,7 @@ class CarSpecificEvents:
events.add(EventName.belowSteerSpeed) events.add(EventName.belowSteerSpeed)
else: else:
raise ValueError(f"Unsupported car: {self.CP.brand}") events = self.create_common_events(CS, CS_prev)
return events return events

Loading…
Cancel
Save