resolve misc car TODOs

pull/23718/head
Adeeb Shihadeh 3 years ago
parent 786152f0f1
commit 3c83975ef6
  1. 4
      selfdrive/car/chrysler/radar_interface.py
  2. 1
      selfdrive/car/mock/interface.py

@ -23,9 +23,7 @@ def _create_radar_can_parser(car_fingerprint):
['REL_SPEED'] * msg_n, ['REL_SPEED'] * msg_n,
RADAR_MSGS_C * 2 + # LONG_DIST, LAT_DIST RADAR_MSGS_C * 2 + # LONG_DIST, LAT_DIST
RADAR_MSGS_D)) # REL_SPEED RADAR_MSGS_D)) # REL_SPEED
# TODO what are the checks actually used for?
# honda only checks the last message,
# toyota checks all the messages. Which do we want?
checks = list(zip(RADAR_MSGS_C + checks = list(zip(RADAR_MSGS_C +
RADAR_MSGS_D, RADAR_MSGS_D,
[20] * msg_n + # 20Hz (0.05s) [20] * msg_n + # 20Hz (0.05s)

@ -20,7 +20,6 @@ class CarInterface(CarInterfaceBase):
cloudlog.debug("Using Mock Car Interface") cloudlog.debug("Using Mock Car Interface")
# TODO: subscribe to phone sensor
self.sensor = messaging.sub_sock('sensorEvents') self.sensor = messaging.sub_sock('sensorEvents')
self.gps = messaging.sub_sock('gpsLocationExternal') self.gps = messaging.sub_sock('gpsLocationExternal')

Loading…
Cancel
Save