Honda Civic Bosch send LEGACY_BRAKE_COMMAND when radar disabled (#21476)

* Update hondacan.py

* Update hondacan.py

* Update hondacan.py

Co-authored-by: Casey Francis <@CFranHonda>
pull/21838/head
cfranhonda 4 years ago committed by GitHub
parent 3129e058f8
commit 060ba14eda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      selfdrive/car/honda/hondacan.py

@ -1,7 +1,7 @@
from selfdrive.car.isotp_parallel_query import IsoTpParallelQuery
from selfdrive.swaglog import cloudlog
from selfdrive.config import Conversions as CV
from selfdrive.car.honda.values import HONDA_BOSCH
from selfdrive.car.honda.values import HONDA_BOSCH, CAR
# CAN bus layout with relay
# 0 = ACC-CAN - radar side
@ -181,6 +181,9 @@ def create_ui_commands(packer, pcm_speed, hud, car_fingerprint, is_metric, idx,
'SET_TO_1' : 0x01,
}
commands.append(packer.make_can_msg('RADAR_HUD', bus_pt, radar_hud_values, idx))
if car_fingerprint == CAR.CIVIC_BOSCH:
commands.append(packer.make_can_msg("LEGACY_BRAKE_COMMAND", bus_pt, {}, idx))
return commands

Loading…
Cancel
Save