|
|
@ -89,7 +89,7 @@ class Car: |
|
|
|
if len(can.can) > 0: |
|
|
|
if len(can.can) > 0: |
|
|
|
break |
|
|
|
break |
|
|
|
|
|
|
|
|
|
|
|
experimental_long_allowed = self.params.get_bool("ExperimentalLongitudinalEnabled") |
|
|
|
alpha_long_allowed = self.params.get_bool("ExperimentalLongitudinalEnabled") |
|
|
|
num_pandas = len(messaging.recv_one_retry(self.sm.sock['pandaStates']).pandaStates) |
|
|
|
num_pandas = len(messaging.recv_one_retry(self.sm.sock['pandaStates']).pandaStates) |
|
|
|
|
|
|
|
|
|
|
|
cached_params = None |
|
|
|
cached_params = None |
|
|
@ -98,7 +98,7 @@ class Car: |
|
|
|
with car.CarParams.from_bytes(cached_params_raw) as _cached_params: |
|
|
|
with car.CarParams.from_bytes(cached_params_raw) as _cached_params: |
|
|
|
cached_params = _cached_params |
|
|
|
cached_params = _cached_params |
|
|
|
|
|
|
|
|
|
|
|
self.CI = get_car(*self.can_callbacks, obd_callback(self.params), experimental_long_allowed, num_pandas, cached_params) |
|
|
|
self.CI = get_car(*self.can_callbacks, obd_callback(self.params), alpha_long_allowed, num_pandas, cached_params) |
|
|
|
self.RI = interfaces[self.CI.CP.carFingerprint].RadarInterface(self.CI.CP) |
|
|
|
self.RI = interfaces[self.CI.CP.carFingerprint].RadarInterface(self.CI.CP) |
|
|
|
self.CP = self.CI.CP |
|
|
|
self.CP = self.CI.CP |
|
|
|
|
|
|
|
|
|
|
|