mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 08:14:00 +08:00
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:
+1
-1
Submodule opendbc updated: 814763889d...034ca989bd
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user