two minor bug fixes (#21134)

pull/21160/head
eFini 2021-06-05 12:20:02 +08:00 committed by GitHub
parent 3a2893f11a
commit 5c450026ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
import cereal.messaging as messaging
if __name__ == "__main__":
modeld_sock = messaging.sub_sock("model")
modeld_sock = messaging.sub_sock("modelV2")
last_frame_id = None
start_t = None
@ -14,7 +14,7 @@ if __name__ == "__main__":
if m is None:
continue
frame_id = m.model.frameId
frame_id = m.modelV2.frameId
t = m.logMonoTime / 1e9
frame_cnt += 1

View File

@ -3,7 +3,7 @@ import os
from selfdrive.manager.process import PythonProcess, NativeProcess, DaemonProcess
from selfdrive.hardware import EON, TICI, PC
WEBCAM = os.getenv("WEBCAM") is not None
WEBCAM = os.getenv("USE_WEBCAM") is not None
procs = [
DaemonProcess("manage_athenad", "selfdrive.athena.manage_athenad", "AthenadPid"),