Toyota: allow sport gear (#35696)

* Toyota: allow sport gear

* revvy

* add todo
test_cc
Shane Smiskol 4 days ago committed by GitHub
parent 5751c61de0
commit d1922efa4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      selfdrive/car/car_specific.py

@ -78,7 +78,8 @@ class CarSpecificEvents:
events.add(EventName.manualRestart) events.add(EventName.manualRestart)
elif self.CP.brand == 'toyota': elif self.CP.brand == 'toyota':
events = self.create_common_events(CS, CS_prev) # TODO: when we check for unexpected disengagement, check gear not S1, S2, S3
events = self.create_common_events(CS, CS_prev, extra_gears=[GearShifter.sport])
if self.CP.openpilotLongitudinalControl: if self.CP.openpilotLongitudinalControl:
if CS.cruiseState.standstill and not CS.brakePressed: if CS.cruiseState.standstill and not CS.brakePressed:

Loading…
Cancel
Save