Skip to content

Commit e190149

Browse files
committed
rewrite from C++ to Python
1 parent 5bde16f commit e190149

22 files changed

+380
-2191
lines changed

selfdrive/pandad/.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
pandad
21
pandad_api_impl.cpp
3-
tests/test_pandad_usbprotocol

selfdrive/pandad/SConscript

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
Import('env', 'envCython', 'common', 'messaging')
2-
3-
libs = ['usb-1.0', common, messaging, 'pthread']
4-
panda = env.Library('panda', ['panda.cc', 'panda_comms.cc', 'spi.cc'])
5-
6-
env.Program('pandad', ['main.cc', 'pandad.cc', 'panda_safety.cc'], LIBS=[panda] + libs)
7-
env.Library('libcan_list_to_can_capnp', ['can_list_to_can_capnp.cc'])
1+
Import('envCython')
82

93
pandad_python = envCython.Program('pandad_api_impl.so', 'pandad_api_impl.pyx', LIBS=["can_list_to_can_capnp", 'capnp', 'kj'] + envCython["LIBS"])
104
Export('pandad_python')
11-
12-
if GetOption('extras'):
13-
env.Program('tests/test_pandad_usbprotocol', ['tests/test_pandad_usbprotocol.cc'], LIBS=[panda] + libs)

selfdrive/pandad/main.cc

-22
This file was deleted.

selfdrive/pandad/panda.cc

-293
This file was deleted.

0 commit comments

Comments
 (0)