Skip to content

Commit

Permalink
move this to other bus too
Browse files Browse the repository at this point in the history
  • Loading branch information
vanillagorillaa committed Dec 28, 2021
1 parent a8a5728 commit 770bf47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion panda
7 changes: 5 additions & 2 deletions selfdrive/car/honda/hondacan.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ def get_lkas_cmd_bus(car_fingerprint, radar_disabled=False):
if radar_disabled:
# when radar is disabled, steering commands are sent directly to powertrain bus
return get_pt_bus(car_fingerprint)
# normally steering commands are sent to radar, which forwards them to powertrain bus
return 0
elif car_fingerprint in HONDA_RADARLESS:
return 2
else:
# normally steering commands are sent to radar, which forwards them to powertrain bus
return 0

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

0 comments on commit 770bf47

Please sign in to comment.