mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-03 04:22:09 +08:00
Toyota: add hysteresis to cluster speed (#26386)
* add hysteresis to cluster speed * add minimum cluster scaling * fix * Update ref_commit old-commit-hash: 52a644e6564582632559255230c82b550db50c76
This commit is contained in:
@@ -15,6 +15,8 @@ class CarState(CarStateBase):
|
||||
can_define = CANDefine(DBC[CP.carFingerprint]["pt"])
|
||||
self.shifter_values = can_define.dv["GEAR_PACKET"]["GEAR"]
|
||||
self.eps_torque_scale = EPS_SCALE[CP.carFingerprint] / 100.
|
||||
self.cluster_speed_hyst_gap = CV.KPH_TO_MS / 2.
|
||||
self.cluster_min_speed = CV.KPH_TO_MS / 2.
|
||||
|
||||
# On cars with cp.vl["STEER_TORQUE_SENSOR"]["STEER_ANGLE"]
|
||||
# the signal is zeroed to where the steering angle is at start.
|
||||
|
||||
@@ -1 +1 @@
|
||||
cf8700aa252d55d4d5b9f5bec136e34151c2de61
|
||||
caa8fb2a046a6c2c186e66af339212a5fae6b7a4
|
||||
|
||||
Reference in New Issue
Block a user