Parser: assert no duplicate message checks (#29696)

* assert no duplicate checks

* bump

* remove duplicates

* are both messages present?

* guess we need this extra check

* this makes it more clear

* bump opendbc

* fix preglobal
old-commit-hash: 5f0729791a
beeps
Justin Newberry 2 years ago committed by GitHub
parent f837b5b40f
commit 417968212b
  1. 2
      opendbc
  2. 6
      selfdrive/car/hyundai/carstate.py
  3. 1
      selfdrive/car/subaru/carstate.py
  4. 2
      selfdrive/car/subaru/subarucan.py

@ -1 +1 @@
Subproject commit 814763889df3d1f19112a9628dfb4d1f17c0c533
Subproject commit 034ca989bd19e1dc2f6f5be903c037bc1aca750a

@ -305,7 +305,6 @@ class CarState(CarStateBase):
def get_can_parser_canfd(self, CP):
messages = [
(self.gear_msg_canfd, 100),
(self.cruise_btns_msg_canfd, 50),
(self.accelerator_msg_canfd, 100),
("WHEEL_SPEEDS", 100),
("STEERING_SENSORS", 100),
@ -316,6 +315,11 @@ class CarState(CarStateBase):
("DOORS_SEATBELTS", 4),
]
if not (CP.flags & HyundaiFlags.CANFD_ALT_BUTTONS):
messages += [
("CRUISE_BUTTONS", 50)
]
if CP.enableBsm:
messages += [
("BLINDSPOTS_REAR_CORNERS", 20),

@ -150,7 +150,6 @@ class CarState(CarStateBase):
("CruiseControl", 50),
("Wheel_Speeds", 50),
("Dash_State2", 1),
("Dashlights", 10),
]
return messages

@ -261,7 +261,7 @@ def create_preglobal_es_distance(packer, cruise_button, es_distance_msg):
"Signal1",
"Car_Follow",
"Signal2",
"Brake_On",
"Cruise_Brake_Active",
"Distance_Swap",
"Standstill",
"Signal3",

Loading…
Cancel
Save