Vehicles - Toyota - Stop and Go Hack

Enable the 'Stop and Go' hack for vehicles without stock stop and go functionality.
This commit is contained in:
FrogAi 2024-05-10 23:56:04 -07:00
parent 8d625882ba
commit 4cc1c2dbca

View File

@ -149,7 +149,7 @@ class CarController(CarControllerBase):
pcm_cancel_cmd = 1 pcm_cancel_cmd = 1
# on entering standstill, send standstill request # on entering standstill, send standstill request
if CS.out.standstill and not self.last_standstill and (self.CP.carFingerprint not in NO_STOP_TIMER_CAR or self.CP.enableGasInterceptor): if CS.out.standstill and not self.last_standstill and (self.CP.carFingerprint not in NO_STOP_TIMER_CAR or self.CP.enableGasInterceptor) and not frogpilot_variables.sng_hack:
self.standstill_req = True self.standstill_req = True
if CS.pcm_acc_status != 8: if CS.pcm_acc_status != 8:
# pcm entered standstill or it's disabled # pcm entered standstill or it's disabled