mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-06 00:35:44 +08:00
634aa84919
version: lp-dp v0.9.5 for EON/C2 date: 2023-09-13T13:36:48 commit: 1d59b81c40b93f37d4a341c5d35b1c3cd293543d
13 lines
368 B
Python
13 lines
368 B
Python
# pylint: skip-file
|
|
|
|
# Cython, now uses scons to build
|
|
from openpilot.selfdrive.boardd.boardd_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
|