forked from commaai/openpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
393 additions
and
662 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,20 @@ | ||
Import('env', 'envCython', 'arch', 'common', 'msgq') | ||
|
||
import shutil | ||
Import('env', 'common', 'msgq') | ||
|
||
cereal_dir = Dir('.') | ||
gen_dir = Dir('gen') | ||
other_dir = Dir('#msgq') | ||
|
||
# Build cereal | ||
schema_files = ['log.capnp', 'car.capnp', 'legacy.capnp', 'custom.capnp'] | ||
env.Command(["gen/c/include/c++.capnp.h"], [], "mkdir -p " + gen_dir.path + "/c/include && touch $TARGETS") | ||
env.Command([f'gen/cpp/{s}.c++' for s in schema_files] + [f'gen/cpp/{s}.h' for s in schema_files], | ||
schema_files, | ||
f"capnpc --src-prefix={cereal_dir.path} $SOURCES -o c++:{gen_dir.path}/cpp/") | ||
|
||
# TODO: remove non shared cereal and messaging | ||
cereal_objects = env.SharedObject([f'gen/cpp/{s}.c++' for s in schema_files]) | ||
|
||
cereal = env.Library('cereal', cereal_objects) | ||
env.SharedLibrary('cereal_shared', cereal_objects) | ||
cereal = env.Library('cereal', [f'gen/cpp/{s}.c++' for s in schema_files]) | ||
|
||
# Build messaging | ||
|
||
services_h = env.Command(['services.h'], ['services.py'], 'python3 ' + cereal_dir.path + '/services.py > $TARGET') | ||
env.Program('messaging/bridge', ['messaging/bridge.cc'], LIBS=[msgq, 'zmq', common]) | ||
|
||
env.Program('messaging/bridge', ['messaging/bridge.cc'], LIBS=[msgq, common]) | ||
|
||
socketmaster = env.SharedObject(['messaging/socketmaster.cc']) | ||
socketmaster = env.Library('socketmaster', socketmaster) | ||
socketmaster = env.Library('socketmaster', ['messaging/socketmaster.cc']) | ||
|
||
Export('cereal', 'socketmaster') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from openpilot.common.params import Params | ||
|
||
|
||
def get_gps_location_service(params: Params) -> str: | ||
if params.get_bool("UbloxAvailable"): | ||
return "gpsLocationExternal" | ||
else: | ||
return "gpsLocation" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule opendbc_repo
updated
14 files
+68 −0 | .github/labeler.yaml | |
+50 −0 | .github/workflows/auto_pr_review.yaml | |
+33 −29 | .github/workflows/tests.yml | |
+2 −0 | .gitignore | |
+0 −47 | Dockerfile | |
+28 −49 | README.md | |
+4 −4 | SConstruct | |
+5 −13 | opendbc/can/SConscript | |
+1 −1 | opendbc/car/interfaces.py | |
+146 −0 | opendbc/car/tests/test_car_interfaces.py | |
+98 −0 | opendbc/car/tests/test_lateral_limits.py | |
+49 −0 | opendbc/dbc/README.md | |
+29 −0 | pyproject.toml | |
+0 −16 | requirements.txt |
Submodule panda
updated
19 files
+4 −4 | .github/workflows/test.yaml | |
+16 −38 | Dockerfile | |
+2 −2 | Jenkinsfile | |
+1 −1 | README.md | |
+1 −0 | board/boards/black.h | |
+1 −0 | board/boards/board_declarations.h | |
+16 −5 | board/boards/cuatro.h | |
+1 −0 | board/boards/dos.h | |
+1 −0 | board/boards/grey.h | |
+1 −0 | board/boards/red.h | |
+3 −1 | board/boards/tres.h | |
+1 −0 | board/boards/uno.h | |
+1 −0 | board/boards/white.h | |
+1 −1 | board/drivers/fan.h | |
+2 −2 | board/stm32h7/llfan.h | |
+0 −18 | requirements.txt | |
+19 −5 | setup.py | |
+1 −1 | tests/misra/test_misra.sh | |
+1 −1 | tests/usbprotocol/test.sh |
Oops, something went wrong.