Skip to content

Commit

Permalink
Honda: distance bars always cycle 1, 2, 3 (commaai#1201)
Browse files Browse the repository at this point in the history
1 is 1
  • Loading branch information
sshane authored Aug 29, 2024
1 parent c0aa729 commit a1b95d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opendbc/car/honda/hondacan.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def create_ui_commands(packer, CAN, CP, enabled, pcm_speed, hud, is_metric, acc_
'CRUISE_SPEED': hud.v_cruise,
'ENABLE_MINI_CAR': 1 if enabled else 0,
# only moves the lead car without ACC_ON
'HUD_DISTANCE': (hud.lead_distance_bars + 1) % 4, # wraps to 0 at 4 bars
'HUD_DISTANCE': hud.lead_distance_bars, # wraps to 0 at 4 bars
'IMPERIAL_UNIT': int(not is_metric),
'HUD_LEAD': 2 if enabled and hud.lead_visible else 1 if enabled else 0,
'SET_ME_X01_2': 1,
Expand Down

0 comments on commit a1b95d7

Please sign in to comment.