|
1 | 1 | import re |
2 | 2 | from dataclasses import dataclass, field |
3 | | -from enum import Enum, IntFlag |
| 3 | +from enum import IntFlag |
4 | 4 |
|
5 | 5 | from opendbc.car import Bus, CarSpecs, DbcDict, PlatformConfig, Platforms, uds |
6 | 6 | from opendbc.car.common.conversions import Conversions as CV |
7 | 7 | from opendbc.car.structs import CarParams |
8 | | -from opendbc.car.docs_definitions import CarFootnote, CarHarness, CarDocs, CarParts, Column, Device |
| 8 | +from opendbc.car.docs_definitions import CarHarness, CarDocs, CarParts, Device |
9 | 9 | from opendbc.car.fw_query_definitions import FwQueryConfig, Request, p16 |
10 | 10 |
|
11 | 11 | Ecu = CarParams.Ecu |
@@ -127,21 +127,10 @@ class HyundaiFlags(IntFlag): |
127 | 127 | ALT_LIMITS_2 = 2 ** 26 |
128 | 128 |
|
129 | 129 |
|
130 | | -class Footnote(Enum): |
131 | | - CANFD = CarFootnote( |
132 | | - "Requires a <a href=\"https://comma.ai/shop/can-fd-panda-kit\" target=\"_blank\">CAN FD panda kit</a> if not using " + |
133 | | - "comma 3X for this <a href=\"https://en.wikipedia.org/wiki/CAN_FD\" target=\"_blank\">CAN FD car</a>.", |
134 | | - Column.MODEL) |
135 | | - |
136 | | - |
137 | 130 | @dataclass |
138 | 131 | class HyundaiCarDocs(CarDocs): |
139 | 132 | package: str = "Smart Cruise Control (SCC)" |
140 | 133 |
|
141 | | - def init_make(self, CP: CarParams): |
142 | | - if CP.flags & HyundaiFlags.CANFD: |
143 | | - self.footnotes.insert(0, Footnote.CANFD) |
144 | | - |
145 | 134 |
|
146 | 135 | @dataclass |
147 | 136 | class HyundaiPlatformConfig(PlatformConfig): |
|
0 commit comments