@@ -151,8 +151,8 @@ def setUpClass(cls):
151151 # if relay is expected to be open in the route
152152 cls .openpilot_enabled = cls .car_safety_mode_frame is not None
153153
154- cls .CarInterface , cls . CarController , cls . CarState , cls . RadarInterface = interfaces [cls .platform ]
155- cls .CP = cls .CarInterface .get_params (cls .platform , cls .fingerprint , car_fw , experimental_long , docs = False )
154+ cls .CarInterface = interfaces [cls .platform ]
155+ cls .CP = cls .CarInterface .get_params (cls .platform , cls .fingerprint , car_fw , experimental_long , docs = False )
156156 assert cls .CP
157157 assert cls .CP .carFingerprint == cls .platform
158158
@@ -163,7 +163,7 @@ def tearDownClass(cls):
163163 del cls .can_msgs
164164
165165 def setUp (self ):
166- self .CI = self .CarInterface (self .CP .copy (), self . CarController , self . CarState )
166+ self .CI = self .CarInterface (self .CP .copy ())
167167 assert self .CI
168168
169169 # TODO: check safetyModel is in release panda build
@@ -210,7 +210,7 @@ def test_car_interface(self):
210210 self .assertEqual (can_invalid_cnt , 0 )
211211
212212 def test_radar_interface (self ):
213- RI = self .RadarInterface (self .CP )
213+ RI = self .CarInterface . RadarInterface (self .CP )
214214 assert RI
215215
216216 # Since OBD port is multiplexed to bus 1 (commonly radar bus) while fingerprinting,
@@ -273,7 +273,7 @@ def test_panda_safety_tx_cases(self, data=None):
273273 def test_car_controller (car_control ):
274274 now_nanos = 0
275275 msgs_sent = 0
276- CI = self .CarInterface (self .CP , self . CarController , self . CarState )
276+ CI = self .CarInterface (self .CP )
277277 for _ in range (round (10.0 / DT_CTRL )): # make sure we hit the slowest messages
278278 CI .update ([])
279279 _ , sendcan = CI .apply (car_control , now_nanos )
0 commit comments