Skip to content

Commit f79b068

Browse files
authored
Honda Civic 2022: remove LKAS fault reinitialization (#24979)
* no lkas problem * remove frame
1 parent 879a7c3 commit f79b068

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

selfdrive/car/honda/carcontroller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def update(self, CC, CS):
241241
idx = (self.frame // 10) % 4
242242
hud = HUDData(int(pcm_accel), int(round(hud_v_cruise)), hud_control.leadVisible,
243243
hud_control.lanesVisible, fcw_display, acc_alert, steer_required)
244-
can_sends.extend(hondacan.create_ui_commands(self.packer, self.CP, CC.enabled, pcm_speed, hud, CS.is_metric, idx, CS.stock_hud, self.frame))
244+
can_sends.extend(hondacan.create_ui_commands(self.packer, self.CP, CC.enabled, pcm_speed, hud, CS.is_metric, idx, CS.stock_hud))
245245

246246
if self.CP.openpilotLongitudinalControl and self.CP.carFingerprint not in HONDA_BOSCH:
247247
self.speed = pcm_speed

selfdrive/car/honda/hondacan.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def create_bosch_supplemental_1(packer, car_fingerprint, idx):
101101
return packer.make_can_msg("BOSCH_SUPPLEMENTAL_1", bus, values, idx)
102102

103103

104-
def create_ui_commands(packer, CP, enabled, pcm_speed, hud, is_metric, idx, stock_hud, frame):
104+
def create_ui_commands(packer, CP, enabled, pcm_speed, hud, is_metric, idx, stock_hud):
105105
commands = []
106106
bus_pt = get_pt_bus(CP.carFingerprint)
107107
radar_disabled = CP.carFingerprint in HONDA_BOSCH and CP.openpilotLongitudinalControl
@@ -141,8 +141,6 @@ def create_ui_commands(packer, CP, enabled, pcm_speed, hud, is_metric, idx, stoc
141141
if CP.carFingerprint in HONDA_BOSCH_RADARLESS:
142142
lkas_hud_values['LANE_LINES'] = 3
143143
lkas_hud_values['DASHED_LANES'] = hud.lanes_visible
144-
# TODO: understand this better, does car need to see it fall after start up?
145-
lkas_hud_values['LKAS_PROBLEM'] = 0 if frame > 200 else 1
146144

147145
if not (CP.flags & HondaFlags.BOSCH_EXT_HUD):
148146
lkas_hud_values['SET_ME_X48'] = 0x48

0 commit comments

Comments
 (0)