|
|
@ -3,7 +3,7 @@ from cereal import car |
|
|
|
from panda import Panda |
|
|
|
from panda import Panda |
|
|
|
from common.numpy_fast import interp |
|
|
|
from common.numpy_fast import interp |
|
|
|
from common.params import Params |
|
|
|
from common.params import Params |
|
|
|
from selfdrive.car.honda.values import CarControllerParams, CruiseButtons, CAR, HONDA_BOSCH, HONDA_NIDEC_ALT_MAIN, HONDA_BOSCH_ALT_BRAKE_SIGNAL |
|
|
|
from selfdrive.car.honda.values import CarControllerParams, CruiseButtons, CAR, HONDA_BOSCH, HONDA_NIDEC_ALT_SCM_MESSAGES, HONDA_BOSCH_ALT_BRAKE_SIGNAL |
|
|
|
from selfdrive.car import STD_CARGO_KG, CivicParams, scale_rot_inertia, scale_tire_stiffness, gen_empty_fingerprint, get_safety_config |
|
|
|
from selfdrive.car import STD_CARGO_KG, CivicParams, scale_rot_inertia, scale_tire_stiffness, gen_empty_fingerprint, get_safety_config |
|
|
|
from selfdrive.car.interfaces import CarInterfaceBase |
|
|
|
from selfdrive.car.interfaces import CarInterfaceBase |
|
|
|
from selfdrive.car.disable_ecu import disable_ecu |
|
|
|
from selfdrive.car.disable_ecu import disable_ecu |
|
|
@ -299,8 +299,8 @@ class CarInterface(CarInterfaceBase): |
|
|
|
if candidate in HONDA_BOSCH_ALT_BRAKE_SIGNAL: |
|
|
|
if candidate in HONDA_BOSCH_ALT_BRAKE_SIGNAL: |
|
|
|
ret.safetyConfigs[0].safetyParam |= Panda.FLAG_HONDA_ALT_BRAKE |
|
|
|
ret.safetyConfigs[0].safetyParam |= Panda.FLAG_HONDA_ALT_BRAKE |
|
|
|
|
|
|
|
|
|
|
|
# These cars use an alternate main on message |
|
|
|
# These cars use alternate SCM messages (SCM_FEEDBACK AND SCM_BUTTON) |
|
|
|
if candidate in HONDA_NIDEC_ALT_MAIN: |
|
|
|
if candidate in HONDA_NIDEC_ALT_SCM_MESSAGES: |
|
|
|
ret.safetyConfigs[0].safetyParam |= Panda.FLAG_HONDA_NIDEC_ALT |
|
|
|
ret.safetyConfigs[0].safetyParam |= Panda.FLAG_HONDA_NIDEC_ALT |
|
|
|
|
|
|
|
|
|
|
|
if ret.openpilotLongitudinalControl and candidate in HONDA_BOSCH: |
|
|
|
if ret.openpilotLongitudinalControl and candidate in HONDA_BOSCH: |
|
|
|