Remove decel condition from vEgo condition

pull/23732/head
cydia2020 2022-03-02 19:27:32 +11:00 committed by GitHub
parent 82378cc350
commit 0f97fab786
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ class CarController():
# handle permit braking
if (CS.out.gasPressed or 1. / DT_CTRL > (frame - self.last_gas_press_frame)) \
or ((actuators.accel > - 1.95) and (2. / DT_CTRL > (frame - self.last_standstill_frame))) \
or ((actuators.accel > - 1.95) and (2. / DT_CTRL > (frame - self.last_zero_speed_frame))):
or (2. / DT_CTRL > (frame - self.last_zero_speed_frame)):
self.permit_braking = False
else:
self.permit_braking = True