mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-03 12:32:06 +08:00
6d316f2bc7
date: 2024-06-11T01:36:39 master commit: f8cb04e4a8b032b72a909f68b808a50936184bee
11 lines
347 B
Python
11 lines
347 B
Python
# Cython, now uses scons to build
|
|
from openpilot.selfdrive.pandad.pandad_api_impl import can_list_to_can_capnp
|
|
assert can_list_to_can_capnp
|
|
|
|
def can_capnp_to_can_list(can, src_filter=None):
|
|
ret = []
|
|
for msg in can:
|
|
if src_filter is None or msg.src in src_filter:
|
|
ret.append((msg.address, msg.busTime, msg.dat, msg.src))
|
|
return ret
|