openpilot v0.4.7 release

This commit is contained in:
Vehicle Researcher
2018-06-16 20:59:34 -07:00
parent e3ab9d6460
commit ae5cb7a0da
53 changed files with 2113 additions and 378 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import selfdrive.messaging as messaging
from selfdrive.services import service_list
def can_printer(bus=0, max_msg=0x10000, addr="127.0.0.1"):
def can_printer(bus=0, max_msg=None, addr="127.0.0.1"):
context = zmq.Context()
logcan = messaging.sub_sock(context, service_list['can'].port, addr=addr)
@@ -27,7 +27,7 @@ def can_printer(bus=0, max_msg=0x10000, addr="127.0.0.1"):
dd = chr(27) + "[2J"
dd += "%5.2f\n" % (sec_since_boot() - start)
for k,v in sorted(zip(msgs.keys(), map(lambda x: x[-1].encode("hex"), msgs.values()))):
if k < max_msg:
if max_msg is None or k < max_msg:
dd += "%s(%6d) %s\n" % ("%04X(%4d)" % (k,k),len(msgs[k]), v)
print dd
lp = sec_since_boot()