can't directly access sockets anymore

old-commit-hash: 6acda96a16
vw-mqb-aeb
Adeeb Shihadeh 5 years ago
parent 82691a0427
commit 59ade6c2f6
  1. 2
      cereal
  2. 4
      selfdrive/controls/controlsd.py
  3. 4
      selfdrive/test/process_replay/camera_replay.py

@ -1 +1 @@
Subproject commit 29099e87a1372694fb81b426faaa57e832bbe87a
Subproject commit 32300930f65425bbba136461446149af8f8b42d9

@ -61,7 +61,9 @@ class Controls:
self.can_sock = messaging.sub_sock('can', timeout=can_timeout)
# wait for one health and one CAN packet
hw_type = messaging.recv_one(self.sm.sock['health']).health.hwType
while not sm.updated['health']:
sm.update()
hw_type = sm['health'].hwType
has_relay = hw_type in [HwType.blackPanda, HwType.uno, HwType.dos]
print("Waiting for CAN messages...")
messaging.get_one_can(self.can_sock)

@ -27,7 +27,7 @@ def camera_replay(lr, fr):
spinner = Spinner()
pm = messaging.PubMaster(['frame', 'liveCalibration'])
sm = messaging.SubMaster(['model'])
model_sock = messaging.sub_sock("model", conflate=False)
# TODO: add dmonitoringmodeld
print("preparing procs")
@ -56,7 +56,7 @@ def camera_replay(lr, fr):
frame_idx += 1
pm.send(msg.which(), f)
log_msgs.append(messaging.recv_one(sm.sock['model']))
log_msgs.append(messaging.recv_one(model_sock))
spinner.update("modeld replay %d/%d" % (frame_idx, fr.frame_count))

Loading…
Cancel
Save