Honda: set MINI_CAR when engaged (#26797)

* Update hondacan.py

* update refs

Co-authored-by: Shane Smiskol <shane@smiskol.com>
pull/26766/head
royjr 2 years ago committed by GitHub
parent a143ebf648
commit 9743b37cf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/car/honda/hondacan.py
  2. 2
      selfdrive/test/process_replay/ref_commit

@ -111,7 +111,7 @@ def create_ui_commands(packer, CP, enabled, pcm_speed, hud, is_metric, acc_hud,
if CP.openpilotLongitudinalControl: if CP.openpilotLongitudinalControl:
acc_hud_values = { acc_hud_values = {
'CRUISE_SPEED': hud.v_cruise, 'CRUISE_SPEED': hud.v_cruise,
'ENABLE_MINI_CAR': 1, 'ENABLE_MINI_CAR': 1 if enabled else 0,
'HUD_DISTANCE': 0, # max distance setting on display 'HUD_DISTANCE': 0, # max distance setting on display
'IMPERIAL_UNIT': int(not is_metric), 'IMPERIAL_UNIT': int(not is_metric),
'HUD_LEAD': 2 if enabled and hud.lead_visible else 1 if enabled else 0, 'HUD_LEAD': 2 if enabled and hud.lead_visible else 1 if enabled else 0,

@ -1 +1 @@
67a4bd615017128ce04d0836608d2c7f32432e3e 358d330ffde4ecd679129b0e0a20806aaf21b786
Loading…
Cancel
Save