clip steer saturation counter to steerLimitTimer (#23638)

* clip steer saturation counter to steerLimitTimer

* update ref
This commit is contained in:
Willem Melching
2022-01-27 12:31:36 +01:00
committed by GitHub
parent 6a9a573296
commit ee71fd2fcc
3 changed files with 4 additions and 3 deletions
+1
View File
@@ -98,6 +98,7 @@ class CarInterfaceBase(ABC):
ret.longitudinalTuning.kiV = [1.]
ret.longitudinalActuatorDelayLowerBound = 0.15
ret.longitudinalActuatorDelayUpperBound = 0.15
ret.steerLimitTimer = 1.0
return ret
@abstractmethod
+2 -2
View File
@@ -24,5 +24,5 @@ class LatControl(ABC):
self.sat_count += self.sat_count_rate
else:
self.sat_count -= self.sat_count_rate
self.sat_count = clip(self.sat_count, 0.0, 1.0)
return self.sat_count > self.sat_limit
self.sat_count = clip(self.sat_count, 0.0, self.sat_limit)
return self.sat_count > (self.sat_limit - 1e-3)
+1 -1
View File
@@ -1 +1 @@
14133069e1f226b9c981d09653fb74f5020f725e
498e43b0cc062291ec159d7f09b69d9f7024aeca