Skip to content

Commit

Permalink
Wocsor 2019 rav4 commaai#520
Browse files Browse the repository at this point in the history
  • Loading branch information
arne182 authored Apr 29, 2019
1 parent b9ccb77 commit 0375f52
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions selfdrive/car/toyota/radar_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,16 @@
import selfdrive.messaging as messaging
from selfdrive.car.toyota.values import NO_DSU_CAR, DBC, TSSP2_CAR




def _create_radard_can_parser(car_fingerprint):
dbc_f = DBC[car_fingerprint]['radar']
if car_fingerprint in TSSP2_CAR:
RADAR_A_MSGS = list(range(0x180, 0x190))
RADAR_B_MSGS = list(range(0x190, 0x1a0))
else:
RADAR_A_MSGS = list(range(0x210, 0x220))
RADAR_B_MSGS = list(range(0x220, 0x230))

def _create_radard_can_parser():
dbc_f = 'toyota_prius_2017_adas.dbc'

msg_a_n = len(RADAR_A_MSGS)
msg_b_n = len(RADAR_B_MSGS)
Expand Down

0 comments on commit 0375f52

Please sign in to comment.