File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 9
9
10
10
11
11
def _create_radar_can_parser (car_fingerprint ):
12
+ if DBC [car_fingerprint ]['radar' ] is None :
13
+ return None
14
+
12
15
msg_n = len (RADAR_MSGS )
13
16
signals = list (zip (['X_Rel' ] * msg_n + ['Angle' ] * msg_n + ['V_Rel' ] * msg_n ,
14
17
RADAR_MSGS * 3 ))
@@ -27,6 +30,9 @@ def __init__(self, CP):
27
30
self .updated_messages = set ()
28
31
29
32
def update (self , can_strings ):
33
+ if self .rcp is None :
34
+ return super ().update (None )
35
+
30
36
vls = self .rcp .update_strings (can_strings )
31
37
self .updated_messages .update (vls )
32
38
Original file line number Diff line number Diff line change @@ -70,6 +70,6 @@ class CAR:
70
70
71
71
72
72
DBC = {
73
- CAR .ESCAPE_MK4 : dbc_dict ('ford_lincoln_base_pt' , 'ford_fusion_2018_adas' ),
74
- CAR .FOCUS_MK4 : dbc_dict ('ford_lincoln_base_pt' , 'ford_fusion_2018_adas' ),
73
+ CAR .ESCAPE_MK4 : dbc_dict ('ford_lincoln_base_pt' , None ),
74
+ CAR .FOCUS_MK4 : dbc_dict ('ford_lincoln_base_pt' , None ),
75
75
}
You can’t perform that action at this time.
0 commit comments