mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-18 03:12:05 +08:00
4d7a40310f
version: dragonpilot v0.8.16 beta for EON/C2 date: 2022-08-11T09:38:43 dp-dev(priv2) master commit: c6cd233f23f60e7a6055d42850bc593c0e69082e
13 lines
358 B
Python
13 lines
358 B
Python
# pylint: skip-file
|
|
|
|
# Cython, now uses scons to build
|
|
from 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
|