-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch
dev
into user/fred13kim/brake_adc
- Loading branch information
Showing
46 changed files
with
3,739 additions
and
866 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
*.egg-info | ||
.cargo | ||
.direnv | ||
.esp-idf | ||
.espressif | ||
.platformio | ||
.ruff_cache | ||
.sconsign.dblite | ||
|
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,12 +1,15 @@ | ||
[submodule "can/cantools"] | ||
path = common/cantools | ||
url = ../cantools-autonomylab.git | ||
[submodule "dbw/node_fw/lib/ember"] | ||
path = dbw/node_fw/lib/ember | ||
[submodule "dbw/ember_bl/lib/ember"] | ||
path = dbw/ember_bl/lib/ember | ||
url = ../ember.git | ||
[submodule "dbw/node_fw/ccmn_defs"] | ||
path = dbw/node_fw/ccmn_defs | ||
url = ../ccmn_defs.git | ||
[submodule "dbw/ember_bl/lib/ember"] | ||
path = dbw/ember_bl/lib/ember | ||
url = git@github.com:cooperunion/ember.git | ||
[submodule "dbw/node_fw/lib/ember"] | ||
path = dbw/node_fw/lib/ember | ||
url = ../ember.git | ||
[submodule "lib/esp-idf"] | ||
path = lib/esp-idf | ||
url = ../../espressif/esp-idf.git |
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 was deleted.
Oops, something went wrong.
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,67 @@ | ||
# ruff: noqa: F821 | ||
|
||
import os | ||
|
||
import env as uenv | ||
|
||
EnsureSConsVersion(4, 5, 2) | ||
EnsurePythonVersion(3, 11) | ||
|
||
|
||
build = 'build' | ||
|
||
|
||
env = Environment( | ||
ENV={ | ||
**uenv.ENV, | ||
'PATH': os.environ['PATH'], | ||
'TERM': os.environ.get('TERM'), | ||
}, | ||
tools=[ | ||
'default', | ||
'Component', | ||
'EspIdf', | ||
'Phony', | ||
], | ||
) | ||
env.AppendUnique( | ||
CCFLAGS=[ | ||
'-Wall', | ||
'-Wextra', | ||
'-Wpedantic', | ||
'-g', | ||
'-std=gnu17', | ||
] | ||
) | ||
|
||
esp32s3 = uenv.idf(env, 'esp32s3') | ||
|
||
envs = { | ||
'env': env, | ||
'esp32s3': esp32s3, | ||
} | ||
|
||
Export('env') | ||
Export('envs') | ||
|
||
|
||
can = env.SConscript( | ||
'can/SConscript.py', | ||
variant_dir=f'{build}/can', | ||
duplicate=False, | ||
) | ||
components = env.SConscript( | ||
'components/SConscript.py', | ||
variant_dir=f'{build}/components', | ||
duplicate=False, | ||
) | ||
ember_bl = env.SConscript( | ||
'dbw/ember_bl/SConscript.py', | ||
variant_dir=f'{build}/dbw/ember_bl', | ||
duplicate=False, | ||
) | ||
node_fw = env.SConscript( | ||
'dbw/node_fw/SConscript.py', | ||
variant_dir=f'{build}/dbw/node_fw', | ||
duplicate=False, | ||
) |
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,3 +1,5 @@ | ||
#!/bin/sh | ||
|
||
exec scons --directory="$REPO_ROOT" -DQs node_fw "--pioflags=$*" | ||
cd "$REPO_ROOT/dbw/node_fw" || exit 1 | ||
|
||
exec pio "$@" |
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,13 +1,16 @@ | ||
[book] | ||
title = 'Autonomy Lab Documentation' | ||
title = 'Autonomy Lab Documentation' | ||
description = 'The official documentation of Autonomy Lab at The Cooper Union for the Advancement of Science and Art' | ||
language = 'en' | ||
src = 'docs' | ||
language = 'en' | ||
src = 'docs' | ||
|
||
[build] | ||
build-dir = 'build/docs' | ||
|
||
[output.html] | ||
mathjax-support = true | ||
no-section-label = true | ||
mathjax-support = true | ||
no-section-label = true | ||
git-repository-url = 'https://github.com/CooperUnion/selfdrive' | ||
|
||
[output.html.fold] | ||
enable = true |
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
# ruff: noqa: F821 | ||
|
||
Import('env') | ||
|
||
|
||
dbc = env.File('can.dbc') | ||
network = env.File('can.yml') | ||
|
||
dbc_emmitter = env.Command( | ||
'create-dbc.py', | ||
network, | ||
[ | ||
'opencan-cli compose $SOURCE --dump-python > $TARGET', | ||
# what a crime | ||
f'sed -i -e s%opencan\\.dbc%{dbc.path}%g $TARGET', | ||
], | ||
) | ||
|
||
dbc = env.Command('can.dbc', dbc_emmitter, 'python $SOURCE') | ||
env.Alias('dbc', dbc) | ||
|
||
|
||
Return('dbc') |
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,13 @@ | ||
# ruff: noqa: F821 | ||
|
||
Import('env') | ||
|
||
|
||
components = [] | ||
|
||
components += env.SConscript( | ||
'jk/SConscript.py', | ||
) | ||
|
||
|
||
Return('components') |
Oops, something went wrong.