Skip to content

Commit

Permalink
car_specific.py: reset to default
Browse files Browse the repository at this point in the history
  • Loading branch information
Edison-CBS committed Sep 25, 2024
1 parent 67ccbbd commit a3b9746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/car/car_specific.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from opendbc.car.interfaces import MAX_CTRL_SPEED, CarStateBase, CarControllerBase
from opendbc.car.volkswagen.values import CarControllerParams as VWCarControllerParams
from opendbc.car.hyundai.interface import ENABLE_BUTTONS as HYUNDAI_ENABLE_BUTTONS
from opendbc.car.toyota.carcontroller import CarController as ToyotaCarController

from openpilot.selfdrive.selfdrived.events import Events

ButtonType = structs.CarState.ButtonEvent.Type
Expand Down Expand Up @@ -97,7 +97,7 @@ def update(self, CS: CarStateBase, CS_prev: car.CarState, CC: CarControllerBase,
events = self.create_common_events(CS.out, CS_prev)

if self.CP.openpilotLongitudinalControl:
if CS.out.cruiseState.standstill and not CS.out.brakePressed and not ToyotaCarController.standstill_req:
if CS.out.cruiseState.standstill and not CS.out.brakePressed:
events.add(EventName.resumeRequired)
if CS.low_speed_lockout: # type: ignore[attr-defined]
events.add(EventName.lowSpeedLockout)
Expand Down

0 comments on commit a3b9746

Please sign in to comment.