GM: add hysteresis to cluster speed (#27301)

* add cluster hysteresis

* Update ref_commit
old-commit-hash: 5831a83c907f9f90aac2c53839cd37554b5b235a
This commit is contained in:
Shane Smiskol
2023-02-10 16:14:53 -08:00
committed by GitHub
parent 721e822366
commit 698c6e6624
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -17,6 +17,9 @@ class CarState(CarStateBase):
super().__init__(CP)
can_define = CANDefine(DBC[CP.carFingerprint]["pt"])
self.shifter_values = can_define.dv["ECMPRDNL2"]["PRNDL2"]
self.cluster_speed_hyst_gap = CV.KPH_TO_MS / 2.
self.cluster_min_speed = CV.KPH_TO_MS / 2.
self.loopback_lka_steering_cmd_updated = False
self.loopback_lka_steering_cmd_ts_nanos = 0
self.pt_lka_steering_cmd_counter = 0
+1 -1
View File
@@ -1 +1 @@
9c5d75e9255a5a19d28f4317c382f00f4bc0ac61
fbf92051507b7a7585907b58baadec6b8cc475af