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 99
1010
1111def _create_radar_can_parser (car_fingerprint ):
12+ if DBC [car_fingerprint ]['radar' ] is None :
13+ return None
14+
1215 msg_n = len (RADAR_MSGS )
1316 signals = list (zip (['X_Rel' ] * msg_n + ['Angle' ] * msg_n + ['V_Rel' ] * msg_n ,
1417 RADAR_MSGS * 3 ))
@@ -27,6 +30,9 @@ def __init__(self, CP):
2730 self .updated_messages = set ()
2831
2932 def update (self , can_strings ):
33+ if self .rcp is None :
34+ return super ().update (None )
35+
3036 vls = self .rcp .update_strings (can_strings )
3137 self .updated_messages .update (vls )
3238
Original file line number Diff line number Diff line change @@ -79,6 +79,6 @@ class CAR:
7979
8080
8181DBC = {
82- CAR .ESCAPE_MK4 : dbc_dict ('ford_lincoln_base_pt' , 'ford_fusion_2018_adas' ),
83- CAR .FOCUS_MK4 : dbc_dict ('ford_lincoln_base_pt' , 'ford_fusion_2018_adas' ),
82+ CAR .ESCAPE_MK4 : dbc_dict ('ford_lincoln_base_pt' , None ),
83+ CAR .FOCUS_MK4 : dbc_dict ('ford_lincoln_base_pt' , None ),
8484}
You can’t perform that action at this time.
0 commit comments