This commit is contained in:
elkoled
2026-06-06 17:48:51 -07:00
parent 3241b06d16
commit b84f8e71bb

View File

@@ -128,11 +128,11 @@ class CarController(CarControllerBase):
# MEB Emergency Assist brake jerks after 30s of continued hands-off time.
# We send the stock wheeltouch message to start the stock DM timer when openpilot latches the critical driver monitoring alert
# Synced with stock counter
if self.frame % self.CCP.KLR_01_STEP == 0 and CS.klr_stock_values["COUNTER"] != self.klr_counter_last:
if CS.klr_stock_values["COUNTER"] != self.klr_counter_last:
lat_active = CC.latActive and not CC.driverMonitoringEscalation
can_sends.append(mebcan.create_capacitive_wheel_touch(self.packer_pt, self.CAN.cam, lat_active, CS.klr_stock_values))
can_sends.append(mebcan.create_capacitive_wheel_touch(self.packer_pt, self.CAN.pt, lat_active, CS.klr_stock_values))
self.klr_counter_last = CS.klr_stock_values["COUNTER"]
self.klr_counter_last = CS.klr_stock_values["COUNTER"]
# **** Acceleration Controls ******************************************** #