mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-08 05:42:06 +08:00
GM: Lower LKA loopback CAN Error timing threshold to accommodate dropped packets (#24927)
* LKA loopback timing to 10Hz
* Typo
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 8b32e1b060
This commit is contained in:
@@ -133,7 +133,9 @@ class CarState(CarStateBase):
|
||||
]
|
||||
|
||||
checks = [
|
||||
("ASCMLKASteeringCmd", 50),
|
||||
("ASCMLKASteeringCmd", 10), # 10 Hz is the stock inactive rate (every 100ms).
|
||||
# While active 50 Hz (every 20 ms) is normal
|
||||
# EPS will tolerate around 200ms when active before faulting
|
||||
]
|
||||
|
||||
return CANParser(DBC[CP.carFingerprint]["pt"], signals, checks, CanBus.LOOPBACK)
|
||||
|
||||
Reference in New Issue
Block a user