Skip to content

Commit

Permalink
Radar interface getter (commaai#1220)
Browse files Browse the repository at this point in the history
* ret it now

* don't forget

* better
  • Loading branch information
sshane authored Sep 5, 2024
1 parent 86be858 commit 3dde383
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions opendbc/car/car_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ def get_car_interface(CP: CarParams):
return CarInterface(CP, CarController, CarState)


def get_radar_interface(CP: CarParams):
_, _, _, RadarInterface = interfaces[CP.carFingerprint]
return RadarInterface(CP)


def get_car(can_recv: CanRecvCallable, can_send: CanSendCallable, set_obd_multiplexing: ObdCallback, experimental_long_allowed: bool,
num_pandas: int = 1, cached_params: CarParams | None = None):
candidate, fingerprints, vin, car_fw, source, exact_match = fingerprint(can_recv, can_send, set_obd_multiplexing, num_pandas, cached_params)
Expand Down

0 comments on commit 3dde383

Please sign in to comment.