byd: fix SEAL bus topology from live dump — ADAS on bus 0, PCM_BUTTONS confirmed
Live bus dump from the Seal showed a different topology than the Han: - ACC_HUD_ADAS (813) + ACC_CMD (814) are broadcast on the vehicle CAN (bus 0), not the camera CAN. Panda rx check expected 813 on bus 2 and never saw it -> safety config invalid -> controls blocked forever. - PCM_BUTTONS (944) confirmed on bus 0 at 20Hz (MADS button placement OK) - 482 MPC_LKAS_CMD_ANGLE present on bus 2 (angle LKAS cmd; for future use) Changes: - carstate: ADAS messages (ACC_HUD_ADAS/ACC_CMD) read from bus 0 on SEAL, bus 2 on HAN (cp_adas accessor); parsers built per platform/bus - panda byd.h: 813 cruise check is bus-independent; rx checks accept 813 on bus 0 or 2, 944 on bus 0 or 2 (first-seen-wins) - interface: disable openpilot longitudinal for SEAL — stock ACC_CMD originates on bus 0 where the panda cannot intercept it. Stock ACC + MADS lateral it is (which is the point of MADS anyway). - panda firmware rebuilt Verified: SEAL (cruise+lkas button via bus 0, alphaLong=False) and HAN (bus 2 topology, alphaLong=True) both canValid; 120 safety tests + MISRA clean.
This commit is contained in:
1 parent
5684dd9d0e
commit
1abd13736b
21 files changed
+46
-30
No files matched your search
@@ -32,8 +32,11 @@ class CarInterface(CarInterfaceBase):
|
||||
CarInterfaceBase.configure_torque_tune(candidate, ret.lateralTuning)
|
||||
|
||||
# longitudinal control parameters
|
||||
ret.alphaLongitudinalAvailable = True
|
||||
if alpha_long:
|
||||
# HAN: openpilot long available (ACC_CMD replaced on the tapped camera bus).
|
||||
# SEAL: stock ACC_CMD is broadcast directly on the vehicle CAN (bus 0),
|
||||
# so it cannot be intercepted/replaced by the panda — stock ACC only (MADS).
|
||||
ret.alphaLongitudinalAvailable = candidate != CAR.BYD_SEAL_PERFORMANCE_25
|
||||
if alpha_long and ret.alphaLongitudinalAvailable:
|
||||
ret.openpilotLongitudinalControl = True
|
||||
ret.startingState = True
|
||||
ret.startAccel = 0.1
|
||||
|
||||
Reference in new issue
Block a user