mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-07 00:05:44 +08:00
Duplicated
This commit is contained in:
@@ -322,7 +322,6 @@ class CarState(CarStateBase):
|
||||
|
||||
def get_can_parser_canfd(self, CP):
|
||||
messages = [
|
||||
(self.gear_msg_canfd, 100),
|
||||
(self.accelerator_msg_canfd, 100),
|
||||
("WHEEL_SPEEDS", 100),
|
||||
("STEERING_SENSORS", 100),
|
||||
@@ -333,6 +332,9 @@ class CarState(CarStateBase):
|
||||
("DOORS_SEATBELTS", 4),
|
||||
]
|
||||
|
||||
if not CP.flags & HyundaiFlags.CANFD_ALT_GEARS_3:
|
||||
messages.append((self.gear_msg_canfd, 100))
|
||||
|
||||
if CP.flags & HyundaiFlags.EV:
|
||||
messages += [
|
||||
("MANUAL_SPEED_LIMIT_ASSIST", 10),
|
||||
|
||||
Reference in New Issue
Block a user