mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 21:14:01 +08:00
Honda Bosch Radarless: check cruise faults (#27814)
* add signal checks * add radarless * not yet * nestless * append instead * bump * match check above --------- Co-authored-by: Shane Smiskol <shane@smiskol.com>
This commit is contained in:
2
opendbc
2
opendbc
Submodule opendbc updated: f50e9d78bd...933d784a0d
@@ -120,7 +120,10 @@ def get_can_signals(CP, gearbox_msg, main_on_sig_msg):
|
||||
signals.append(("INTERCEPTOR_GAS2", "GAS_SENSOR"))
|
||||
checks.append(("GAS_SENSOR", 50))
|
||||
|
||||
if CP.openpilotLongitudinalControl:
|
||||
if CP.carFingerprint in HONDA_BOSCH_RADARLESS:
|
||||
signals.append(("CRUISE_FAULT", "CRUISE_FAULT_STATUS"))
|
||||
checks.append(("CRUISE_FAULT_STATUS", 50))
|
||||
elif CP.openpilotLongitudinalControl:
|
||||
signals += [
|
||||
("BRAKE_ERROR_1", "STANDSTILL"),
|
||||
("BRAKE_ERROR_2", "STANDSTILL")
|
||||
@@ -191,7 +194,9 @@ class CarState(CarStateBase):
|
||||
# NO_TORQUE_ALERT_2 can be caused by bump or steering nudge from driver
|
||||
ret.steerFaultTemporary = steer_status not in ("NORMAL", "LOW_SPEED_LOCKOUT", "NO_TORQUE_ALERT_2")
|
||||
|
||||
if self.CP.openpilotLongitudinalControl:
|
||||
if self.CP.carFingerprint in HONDA_BOSCH_RADARLESS:
|
||||
self.brake_error = cp.vl["CRUISE_FAULT_STATUS"]["CRUISE_FAULT"]
|
||||
elif self.CP.openpilotLongitudinalControl:
|
||||
self.brake_error = cp.vl["STANDSTILL"]["BRAKE_ERROR_1"] or cp.vl["STANDSTILL"]["BRAKE_ERROR_2"]
|
||||
ret.espDisabled = cp.vl["VSA_STATUS"]["ESP_DISABLED"] != 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user