"Stop-and-Go Hack" for Toyota/Lexus

This commit is contained in:
James
2025-12-01 12:00:00 -07:00
parent 495da78739
commit b9d0f979d2
@@ -183,7 +183,7 @@ class CarController(CarControllerBase):
# on entering standstill, send standstill request for older TSS-P cars that aren't designed to stay engaged at a stop
if self.CP.carFingerprint not in NO_STOP_TIMER_CAR:
if CS.out.standstill and not self.last_standstill:
if CS.out.standstill and not self.last_standstill and not frogpilot_toggles.sng_hack:
self.standstill_req = True
if CS.pcm_acc_status != 8:
# pcm entered standstill or it's disabled
@@ -194,7 +194,7 @@ class CarController(CarControllerBase):
# brakes can take a while to ramp up causing a lurch forward. prevent resume press until planner wants to move.
# don't use CC.cruiseControl.resume since it is gated on CS.cruiseState.standstill which goes false for 3s after resume press
# TODO: hybrids do not have this issue and can stay stopped after resume press, whitelist them
should_resume = actuators.accel > 0
should_resume = actuators.accel > 0 or frogpilot_toggles.sng_hack
if should_resume:
self.standstill_req = False