Skip to content

Commit 770bf47

Browse files
move this to other bus too
1 parent a8a5728 commit 770bf47

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

panda

selfdrive/car/honda/hondacan.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ def get_lkas_cmd_bus(car_fingerprint, radar_disabled=False):
2020
if radar_disabled:
2121
# when radar is disabled, steering commands are sent directly to powertrain bus
2222
return get_pt_bus(car_fingerprint)
23-
# normally steering commands are sent to radar, which forwards them to powertrain bus
24-
return 0
23+
elif car_fingerprint in HONDA_RADARLESS:
24+
return 2
25+
else:
26+
# normally steering commands are sent to radar, which forwards them to powertrain bus
27+
return 0
2528

2629
def create_brake_command(packer, apply_brake, pump_on, pcm_override, pcm_cancel_cmd, fcw, idx, car_fingerprint, stock_brake):
2730
# TODO: do we loose pressure if we keep pump off for long?

0 commit comments

Comments
 (0)