mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-30 03:13:48 +08:00
Toyota: prevent roll in ICE after pressing resume while wanting to stay stopped (#36877)
* bump * only show alert when user can leave standstill * cmt * stash * bump * bump to master
This commit is contained in:
+1
-1
Submodule opendbc_repo updated: 4bd6ffea21...39773a987e
@@ -90,7 +90,8 @@ class CarSpecificEvents:
|
||||
events = self.create_common_events(CS, CS_prev, extra_gears=extra_gears)
|
||||
|
||||
if self.CP.openpilotLongitudinalControl:
|
||||
if CS.cruiseState.standstill and not CS.brakePressed:
|
||||
# Only can leave standstill when planner wants to move
|
||||
if CS.cruiseState.standstill and not CS.brakePressed and CC.cruiseControl.resume:
|
||||
events.add(EventName.resumeRequired)
|
||||
if CS.vEgo < self.CP.minEnableSpeed:
|
||||
events.add(EventName.belowEngageSpeed)
|
||||
|
||||
Reference in New Issue
Block a user