Update cruise.py

This commit is contained in:
infiniteCable
2025-04-26 19:58:58 +02:00
committed by GitHub
parent 8ea8a79860
commit 01ce1b8a17
+1 -1
View File
@@ -72,7 +72,7 @@ class VCruiseHelper:
speed_limit = CS.cruiseState.speedLimit * CV.MS_TO_KPH
if speed_limit != self.v_speed_limit_kph:
if speed_limit != 0
if speed_limit != 0:
self.v_cruise_kph = speed_limit
self.v_cruise_kph = np.clip(round(self.v_cruise_kph, 1), V_CRUISE_MIN, V_CRUISE_MAX)
self.v_speed_limit_kph = speed_limit