From 4dc8233aef9c7433955d986eda6cce8d4923f9a3 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Sun, 8 May 2022 01:13:33 -0700 Subject: [PATCH] the logic was wrong entire time? --- selfdrive/car/toyota/carcontroller.py | 1 + 1 file changed, 1 insertion(+) diff --git a/selfdrive/car/toyota/carcontroller.py b/selfdrive/car/toyota/carcontroller.py index 4c37b442bf..c4174abf2a 100644 --- a/selfdrive/car/toyota/carcontroller.py +++ b/selfdrive/car/toyota/carcontroller.py @@ -74,6 +74,7 @@ class CarController: apply_steer_req = 0 elif self.rate_limit_counter > STEER_FAULT_MAX_FRAMES: apply_steer_req = 0 + self.rate_limit_counter = 0 # TODO: probably can delete this. CS.pcm_acc_status uses a different signal # than CS.cruiseState.enabled. confirm they're not meaningfully different