mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-07 14:42:08 +08:00
add timeout to modeld replay
old-commit-hash: cb85a193509c21597986f3f9abaf1a29e061b26d
This commit is contained in:
@@ -9,6 +9,8 @@ from common.hardware import ANDROID
|
||||
os.environ['CI'] = "1"
|
||||
if ANDROID:
|
||||
os.environ['QCOM_REPLAY'] = "1"
|
||||
|
||||
from common.timeout import Timeout
|
||||
import selfdrive.manager as manager
|
||||
|
||||
from common.spinner import Spinner
|
||||
@@ -56,7 +58,8 @@ def camera_replay(lr, fr):
|
||||
frame_idx += 1
|
||||
|
||||
pm.send(msg.which(), f)
|
||||
log_msgs.append(messaging.recv_one(sm.sock['model']))
|
||||
with Timeout(seconds=15):
|
||||
log_msgs.append(messaging.recv_one(sm.sock['model']))
|
||||
|
||||
spinner.update("modeld replay %d/%d" % (frame_idx, fr.frame_count))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user