mirror of
https://github.com/commaai/opendbc.git
synced 2026-06-08 06:04:45 +08:00
rm step
This commit is contained in:
@@ -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 ******************************************** #
|
||||
|
||||
|
||||
Reference in New Issue
Block a user