From 75b7fd0be6ff8790f88bbfd6a2b38806338821fe Mon Sep 17 00:00:00 2001 From: William Date: Fri, 11 Oct 2019 23:01:57 -0400 Subject: [PATCH] ACC Fix - Python 3 (#106) --- selfdrive/car/tesla/ACC_module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/car/tesla/ACC_module.py b/selfdrive/car/tesla/ACC_module.py index 8a5a4629569104..980f194dca962d 100644 --- a/selfdrive/car/tesla/ACC_module.py +++ b/selfdrive/car/tesla/ACC_module.py @@ -393,9 +393,9 @@ def _fast_decel_required(self, CS, lead_car): def _seconds_to_collision(self, CS, lead_car): if not lead_car or not lead_car.dRel: - return sys.maxint + return sys.maxsize elif lead_car.vRel >= 0: - return sys.maxint + return sys.maxsize return abs(float(lead_car.dRel) / lead_car.vRel) def _get_cc_units_kph(self, is_imperial_units):