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>
pull/24910/head
Jason Shuler 3 years ago committed by GitHub
parent 2027d5311d
commit 8b32e1b060
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      selfdrive/car/gm/carstate.py

@ -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)

Loading…
Cancel
Save