Skip to content

Commit 9ebf354

Browse files
committed
Update SA-master to bbb47dc
2 parents db9cdf6 + bbb47dc commit 9ebf354

File tree

90 files changed

+909
-808
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+909
-808
lines changed

.github/workflows/tools_tests.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ jobs:
4040
timeout-minutes: 50
4141
env:
4242
IMAGE_NAME: openpilot-sim
43-
if: github.repository == 'commaai/openpilot'
43+
if: ${{ false }} # disable until LFS quota is fixed
44+
#if: github.repository == 'commaai/openpilot'
4445
steps:
4546
- uses: actions/checkout@v2
4647
with:

Dockerfile.openpilot_base

Lines changed: 15 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,26 @@
11
FROM ubuntu:20.04
2+
23
ENV PYTHONUNBUFFERED 1
34

45
ENV DEBIAN_FRONTEND=noninteractive
5-
RUN apt-get update && apt-get install -y --no-install-recommends \
6-
autoconf \
7-
build-essential \
8-
bzip2 \
9-
ca-certificates \
10-
capnproto \
11-
clang \
12-
cmake \
13-
cppcheck \
14-
curl \
15-
ffmpeg \
16-
gcc-arm-none-eabi \
17-
git \
18-
iputils-ping \
19-
libarchive-dev \
20-
libbz2-dev \
21-
libcapnp-dev \
22-
libcurl4-openssl-dev \
23-
libeigen3-dev \
24-
libffi-dev \
25-
libgles2-mesa-dev \
26-
libglew-dev \
27-
libglib2.0-0 \
28-
liblzma-dev \
29-
libomp-dev \
30-
libopencv-dev \
31-
libqt5sql5-sqlite \
32-
libqt5svg5-dev \
33-
libsqlite3-dev \
34-
libssl-dev \
35-
libsystemd-dev \
36-
libusb-1.0-0-dev \
37-
libzmq3-dev \
38-
locales \
39-
ocl-icd-libopencl1 \
40-
ocl-icd-opencl-dev \
41-
opencl-headers \
42-
python-dev \
43-
qml-module-qtquick2 \
44-
qt5-default \
45-
qtlocation5-dev \
46-
qtmultimedia5-dev \
47-
qtpositioning5-dev \
48-
qtwebengine5-dev \
49-
sudo \
50-
valgrind \
51-
wget \
52-
&& rm -rf /var/lib/apt/lists/*
6+
RUN apt-get update && \
7+
apt-get install -y --no-install-recommends sudo tzdata locales && \
8+
rm -rf /var/lib/apt/lists/*
539

5410
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
5511
ENV LANG en_US.UTF-8
5612
ENV LANGUAGE en_US:en
5713
ENV LC_ALL en_US.UTF-8
5814

59-
RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
60-
ENV PATH="/root/.pyenv/bin:/root/.pyenv/shims:${PATH}"
61-
62-
COPY Pipfile Pipfile.lock /tmp/
63-
RUN pyenv install 3.8.10 && \
64-
pyenv global 3.8.10 && \
65-
pyenv rehash && \
66-
pip install --no-cache-dir --upgrade pip==21.3.1 && \
67-
pip install --no-cache-dir pipenv==2021.5.29 && \
68-
cd /tmp && \
69-
pipenv install --system --deploy --dev --clear && \
15+
ENV PIPENV_SYSTEM=1
16+
COPY Pipfile Pipfile.lock .python-version update_requirements.sh /tmp/
17+
COPY tools/ubuntu_setup.sh /tmp/tools/
18+
RUN cd /tmp && \
19+
tools/ubuntu_setup.sh && \
20+
rm -rf /tmp/* && \
21+
rm -rf /var/lib/apt/lists/* && \
7022
pip uninstall -y pipenv
23+
24+
ENV PYENV_VERSION=3.8.10
25+
ENV PYENV_ROOT="/root/.pyenv"
26+
ENV PATH="$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH"

Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ pyprof2calltree = "*"
2828
reverse_geocoder = "*"
2929
scipy = "*"
3030
sphinx = "*"
31+
sphinx-sitemap = "*"
3132
sphinx-rtd-theme = "*"
3233
subprocess32 = "*"
3334
tenacity = "*"

Pipfile.lock

Lines changed: 408 additions & 381 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RELEASES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Version 0.8.13 (2022-XX-XX)
22
========================
33
* Improved driver monitoring
44
* Improved camera focus on the comma two
5+
* Hyundai Santa Fe Plug-in Hybrid 2022 support thanks to sunnyhaibin!
56
* Subaru Impreza 2020 support thanks to martinl!
67

78
Version 0.8.12 (2021-12-15)

common/realtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def set_realtime_priority(level: int) -> None:
3939

4040
def set_core_affinity(core: int) -> None:
4141
if not PC:
42-
os.sched_setaffinity(0, [core,])
42+
os.sched_setaffinity(0, [core,]) # type: ignore[attr-defined]
4343

4444

4545
def config_realtime_process(core: int, priority: int) -> None:

common/spinner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def update(self, spinner_text: str):
2424
except BrokenPipeError:
2525
pass
2626

27-
def update_progress(self, cur: int, total: int):
27+
def update_progress(self, cur: float, total: float):
2828
self.update(str(round(100 * cur / total)))
2929

3030
def close(self):

docs/CARS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
| Hyundai | Santa Fe 2019-20 | All | Stock | 0mph | 0mph |
116116
| Hyundai | Santa Fe 2021-22 | All | Stock | 0mph | 0mph |
117117
| Hyundai | Santa Fe Hybrid 2022 | All | Stock | 0mph | 0mph |
118+
| Hyundai | Santa Fe Plug-in Hybrid 2022 | All | Stock | 0mph | 0mph |
118119
| Hyundai | Sonata 2018-2019 | SCC + LKAS | Stock | 0mph | 0mph |
119120
| Hyundai | Sonata Hybrid 2021-22 | All | Stock | 0mph | 0mph |
120121
| Hyundai | Veloster 2019-20 | SCC + LKAS | Stock | 5mph | 0mph |
@@ -150,7 +151,7 @@
150151
| Subaru | Crosstrek 2018-20 | EyeSight | Stock | 0mph | 0mph |
151152
| Subaru | Forester 2019-21 | EyeSight | Stock | 0mph | 0mph |
152153
| Subaru | Impreza 2017-19 | EyeSight | Stock | 0mph | 0mph |
153-
| Volkswagen| Arteon 2021<sup>4</sup> | Driver Assistance | Stock | 0mph | 0mph |
154+
| Volkswagen| Arteon 2018, 2021<sup>4</sup> | Driver Assistance | Stock | 0mph | 0mph |
154155
| Volkswagen| Atlas 2018-19 | Driver Assistance | Stock | 0mph | 0mph |
155156
| Volkswagen| California 2021<sup>4</sup> | Driver Assistance | Stock | 0mph | 32mph |
156157
| Volkswagen| e-Golf 2014, 2019-20 | Driver Assistance | Stock | 0mph | 0mph |

docs/CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ Most open source development activity is coordinated through our [GitHub Discuss
1111
* Make sure you have a [GitHub account](https://github.com/signup/free)
1212
* Fork [our repositories](https://github.com/commaai) on GitHub
1313

14+
### First contribution
15+
Try out some of these first pull requests ideas to dive into the codebase:
16+
17+
* Increase our [mypy](http://mypy-lang.org/) coverage
18+
* Write some documentation
19+
* Tackle an open [good first issue](https://github.com/commaai/openpilot/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)
20+
1421
## Pull Requests
1522

1623
Pull requests should be against the master branch. Welcomed contributions include bug reports, car ports, and any [open issue](https://github.com/commaai/openpilot/issues). If you're unsure about a contribution, feel free to open a discussion, issue, or draft PR to discuss the problem you're trying to solve.

docs/_static/favicon.ico

14.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)