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: 5f0729791ab6bdb22b3e971f0153a88441f8831a
This commit is contained in:
Justin Newberry
2023-08-29 10:53:21 -07:00
committed by GitHub
parent f837b5b40f
commit 417968212b
4 changed files with 7 additions and 4 deletions
+1 -1
Submodule opendbc updated: 814763889d...034ca989bd
+5 -1
View File
@@ -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),
-1
View File
@@ -150,7 +150,6 @@ class CarState(CarStateBase):
("CruiseControl", 50),
("Wheel_Speeds", 50),
("Dash_State2", 1),
("Dashlights", 10),
]
return messages
+1 -1
View File
@@ -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",