From bca1c4825eb6fe7265d6cbacdcc2af1119b68fd4 Mon Sep 17 00:00:00 2001 From: Kevin Robert Keegan Date: Sun, 4 Sep 2022 16:11:30 -0700 Subject: [PATCH] :b: Allow Sport Gear Use; Enables Engine Braking on Downhill --- selfdrive/car/toyota/interface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/car/toyota/interface.py b/selfdrive/car/toyota/interface.py index 9cf86d69abde27..b9765a3016ef62 100644 --- a/selfdrive/car/toyota/interface.py +++ b/selfdrive/car/toyota/interface.py @@ -10,6 +10,7 @@ EventName = car.CarEvent.EventName SteerControlType = car.CarParams.SteerControlType +GearShifter = car.CarState.GearShifter class CarInterface(CarInterfaceBase): @@ -286,7 +287,7 @@ def _update(self, c): ret = self.CS.update(self.cp, self.cp_cam) # events - events = self.create_common_events(ret) + events = self.create_common_events(ret, extra_gears=[GearShifter.sport]) # Lane Tracing Assist control is unavailable (EPS_STATUS->LTA_STATE=0) until # the more accurate angle sensor signal is initialized