Mapbox widget (#20751)

* squash mapbox stuff

* only hacks for pc

* no hack there

* only update when needed

* get destination from param

* no need for user agent

* add athena method

* change nav path color

* layout cleanups

* margin top

* add build scripts

* rename header file

* set pitch

* fix icon blinking

* keep both options

* draw on top to fix last blinking

* only recomput with gps

* fix include

* put map in onroadwidget

* update mapbox plugin to allow specifying directions url

* cycle through views

* dynamic resize

* only when present

* add map_helpers

* whitespace

* small fixes

* let scons decide

* update setup files

* implicit dependency

* fix alerts

* Update selfdrive/ui/SConscript

* move clearLayout to util.h

* only build when map.cc present

* move maps to own folder

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 86aefbe7667f0693402c1883d286ce331e9d6215
This commit is contained in:
Willem Melching
2021-05-17 14:57:07 +02:00
committed by GitHub
parent 3725aeca25
commit efa94a89ff
116 changed files with 1093 additions and 18 deletions
+4
View File
@@ -28,6 +28,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
liblzma-dev \
libomp-dev \
libopencv-dev \
libqt5sql5-sqlite \
libqt5svg5-dev \
libsqlite3-dev \
libssl-dev \
libsystemd-dev \
@@ -40,7 +42,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
python-dev \
qml-module-qtquick2 \
qt5-default \
qtlocation5-dev \
qtmultimedia5-dev \
qtpositioning5-dev \
qtwebengine5-dev \
sudo \
valgrind \
+3 -1
View File
@@ -128,6 +128,7 @@ else:
libpath = [
"#phonelibs/snpe/x86_64-linux-clang",
"#phonelibs/libyuv/x64/lib",
"#phonelibs/mapbox-gl-native-qt/x86_64",
"#cereal",
"#selfdrive/common",
"/usr/lib",
@@ -190,6 +191,7 @@ env = Environment(
"#phonelibs/android_system_core/include",
"#phonelibs/linux/include",
"#phonelibs/snpe/include",
"#phonelibs/mapbox-gl-native-qt/include",
"#phonelibs/nanovg",
"#phonelibs/qrcode",
"#phonelibs",
@@ -272,7 +274,7 @@ Export('envCython')
# Qt build environment
qt_env = env.Clone()
qt_modules = ["Widgets", "Gui", "Core", "Network", "Concurrent", "Multimedia", "Quick", "Qml", "QuickWidgets"]
qt_modules = ["Widgets", "Gui", "Core", "Network", "Concurrent", "Multimedia", "Quick", "Qml", "QuickWidgets", "Location", "Positioning"]
if arch != "aarch64":
qt_modules += ["DBus"]
@@ -0,0 +1,2 @@
x86_64 filter=lfs diff=lfs merge=lfs -text
larch64 filter=lfs diff=lfs merge=lfs -text
+3
View File
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fedf4467798fe51266ed754f3da7420ebd13c1b67d9c7528743ec323fcea2b77
size 191
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9f967d81c93b1e5495180c1a2c9da9649863744f5815decf613b2286cf334aae
size 23
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:220807f0445a1de75f0bc0cb558aeb0f610bc2099b31614c03e54b448cf29ddc
size 25
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:922c5af1a229514ec0bb264226d974c539eea34f0e28e7cb261df16c3964fa35
size 4299
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ec1afdc07127362f66466cfd5cc9125150ab88a4b179d57ce8e80d4653c97080
size 8511
+3
View File
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:be9380835de2c7f9e5437d3bcd31d64f7d43e669516e43846bb701c5c31c89b7
size 10215888
+1
View File
@@ -0,0 +1 @@
x86_64 filter=lfs diff=lfs merge=lfs -text
+3
View File
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8921fc959cd4e4820f0a779b1f51e61d0e40c3bea07b3ef2439ee85181f7de0d
size 178
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7d00791691ec3d2a3e0ed99c9b65ef5b3df21cdd6c3df3b1274ed5e5ea49bbe8
size 12163664
+3
View File
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aaf9a1967365f2c641bf7b54a409e32842cee0bfded7ebb01b1a95c4ac9f0154
size 2163
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ae17f4c1896c88a6d520f1acdca99ab23d4ce1140a500b64bea3185041f8ecd9
size 1246
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:86a2eaf6070d6b93df385945bd7f4a6e9bb78b7cc42eb5b7ef9a9b6c075c80ce
size 1581
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:398f30c89e396bb4bdbac1ba6dfe292f6e3278923e14113e705f4d0591671f32
size 1528
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ae17f4c1896c88a6d520f1acdca99ab23d4ce1140a500b64bea3185041f8ecd9
size 1246
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0e23cac9bec0de20f9632d19618be9b05eedb010c6e23b0ba7a8e3cc8225f64e
size 865
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:008cf037b8713c710eacd1129973119faa2527ab1c19aee5340a16dc0659df8a
size 1063
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:579d6a27e062779d41beb9320abf5797bc8ec81de1f355a4197c3b3ee0766f28
size 1400
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a4010c8122af918dbdb50e88629adbf79f7733f022bba263e6f44f6ffae3e7a5
size 1371
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:89041889817454869d98adfb5a16fae33596c038d5484ec734fe3a5cc532c45c
size 1334
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e691dd43947c9430fcd73e6bede94aa5fd8995e9303eba53cc0ac589a7c9f106
size 1347
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:008cf037b8713c710eacd1129973119faa2527ab1c19aee5340a16dc0659df8a
size 1063
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e02ac2720f12f9373ae2d86d91fffb6203e18aba04b493bd6f41d2953a11cbc9
size 1780
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8f83214c1fa6aba33ca3e1fe29db09733a275efe19864866b9edecbb59abb171
size 1234
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:459fe6410e061542876fa7de93efaf901d15937f891e801e1b93f8270e750130
size 1613
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e3f5fb80d62c92876a5e490917f549e2a443dfc683a6787506747bbbeb75d33b
size 1538
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8f83214c1fa6aba33ca3e1fe29db09733a275efe19864866b9edecbb59abb171
size 1234
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b9c86ddd75ea1ed2c49c1bdc2e7f98ed15d12226938073688dda1b0bbdf62308
size 1439
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cc7248e62d11cf36f9a13d408a0954a51ff0eee9b8e03d8910a2eb2cb6a09ffd
size 1456
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8509bd5dbf96e44f73421dc09ca8f7c1dddf2dc21f3b4b15650472b3e06b3470
size 658
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5198a3fdb610001358501ca76ab52fe0979b9254ed85cbbb2ce1fab1cb77929a
size 2015
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:752424da0ad8430c619045455a86c640b576f8bbe6d3d8b5b6a599b1c61ef489
size 1863
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b6590df8da1f30ec61b3bdf729fda1956d340c5abab448ea0062105500cc5da5
size 1841
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b4fbd63acf8f5e7f734b332a96e9ad138ad22ee07000ad425712e71b77ce0728
size 1800
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a7a7f5bcab30ce961ff7e345c460cfbd133e45c66da1fe1f0e7bc7c826b05f30
size 1805
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:676cbe95f9a663816dd77c55dbcf2c346bfae2454be7832914b5527219aba91f
size 2473
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:008cf037b8713c710eacd1129973119faa2527ab1c19aee5340a16dc0659df8a
size 1063
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:579d6a27e062779d41beb9320abf5797bc8ec81de1f355a4197c3b3ee0766f28
size 1400
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a4010c8122af918dbdb50e88629adbf79f7733f022bba263e6f44f6ffae3e7a5
size 1371
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:89041889817454869d98adfb5a16fae33596c038d5484ec734fe3a5cc532c45c
size 1334
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e691dd43947c9430fcd73e6bede94aa5fd8995e9303eba53cc0ac589a7c9f106
size 1347
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:008cf037b8713c710eacd1129973119faa2527ab1c19aee5340a16dc0659df8a
size 1063
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e02ac2720f12f9373ae2d86d91fffb6203e18aba04b493bd6f41d2953a11cbc9
size 1780
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:08245891301f814fc0245133e39df3fb14720025cc3e4bc7131f953ead47edc8
size 1535
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8c629c7273fe2613538295aba807edfddbbae86ae77d6f9b0b60b0486e3f7ca9
size 1484
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:72c1ef39486f3dc3f7a0a97777bce16c7c369cc85bf6c82629d6780803804967
size 1765
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8b8bfd8019320127ed0fe03d4a1bddab57d5c2345b6cdeab66558ea9b53c0266
size 1699
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d10bdde82e7896de072de28da46412d5e2f6c902fd5643c6b48a8fc79ed4232f
size 113
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:579d6a27e062779d41beb9320abf5797bc8ec81de1f355a4197c3b3ee0766f28
size 1400
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a4010c8122af918dbdb50e88629adbf79f7733f022bba263e6f44f6ffae3e7a5
size 1371
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0457b0597386d0b7d3cc06d961df5fb34211ee575da7fab2f81e424d9954bb42
size 1549
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4f6e1556f0b888afb6856f8cf3e16632959190f88dd66c4d9db4832a8269cbc5
size 1552
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:89041889817454869d98adfb5a16fae33596c038d5484ec734fe3a5cc532c45c
size 1334
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e691dd43947c9430fcd73e6bede94aa5fd8995e9303eba53cc0ac589a7c9f106
size 1347
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:008cf037b8713c710eacd1129973119faa2527ab1c19aee5340a16dc0659df8a
size 1063
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a4010c8122af918dbdb50e88629adbf79f7733f022bba263e6f44f6ffae3e7a5
size 1371
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:57dbfdabe88f6abbb8993982eef72803ac504842e9a9d388e7dde1623f69f0d7
size 1551
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:579d6a27e062779d41beb9320abf5797bc8ec81de1f355a4197c3b3ee0766f28
size 1400
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4f2016b7bac3accf541f100a2c83871618214e1806e95e4d80867d30d1dfcf03
size 1546
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:89041889817454869d98adfb5a16fae33596c038d5484ec734fe3a5cc532c45c
size 1334
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e691dd43947c9430fcd73e6bede94aa5fd8995e9303eba53cc0ac589a7c9f106
size 1347
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:008cf037b8713c710eacd1129973119faa2527ab1c19aee5340a16dc0659df8a
size 1063
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6736b6c2123cbaf90d2c8e4da79a4089ba42c0e7a220a596e45afd511166da9b
size 1524
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6a636d33568c658b05e460e05a1eac5c4e1cfced204044657a04191027c44c4c
size 1580
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a27d55d704f77bca4beaac30a2c5b5abee304986627d09f971b2a2e0367e8477
size 1478
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e711c8e2184440f4ddead06897c90758470e7475fa7e0cf8b2db567e491c8e57
size 1519
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:579d6a27e062779d41beb9320abf5797bc8ec81de1f355a4197c3b3ee0766f28
size 1400
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a4010c8122af918dbdb50e88629adbf79f7733f022bba263e6f44f6ffae3e7a5
size 1371
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0457b0597386d0b7d3cc06d961df5fb34211ee575da7fab2f81e424d9954bb42
size 1549
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:57dbfdabe88f6abbb8993982eef72803ac504842e9a9d388e7dde1623f69f0d7
size 1551
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7b2f19864347794510da5e13ebaed40cc01d45bbd649c3e5097052607af52fa7
size 1334
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0d2704d4d480568deb63598a48b741b024f4e55f5936e3eeb9cdc3daf6618837
size 1346
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:008cf037b8713c710eacd1129973119faa2527ab1c19aee5340a16dc0659df8a
size 1063
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1868ec727cd761aad76fb6cb7705360ed9f70a92aea97f4c3b945b043996d1e2
size 1906
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b2d41ab080452ce24ce27ed833f24790a6e6218dc4a5df4b35d23d6cfc425fbb
size 1543
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:94251b2485f1f8bd0b22eb32fd59459626229c38e4de9aa538ff249b3cc16505
size 1743
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6fbc14fb3720b7452c34c64af8c9b6ce4c953a5e65f3b28ad1ed17b5b2bc47f0
size 1532
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0fe99a15432706ac8bdd5766d3ed4869042b50e0d3c54665b63ba8eb2aaaef20
size 1855
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:45115d7c0d4a6285406777787b19b5f6f9c8231ba773aaaa86ab62b7f94b1c51
size 1699
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9ea0a56d30f763f69ba1c5051f05eac13e61a715ae4d80412b1e0570f3263e27
size 1821
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:77c42dadeda4d9fdc5b8e7915319880908dd61acb46e289e88f8e067b8e57410
size 1736
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1868ec727cd761aad76fb6cb7705360ed9f70a92aea97f4c3b945b043996d1e2
size 1906
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b2d41ab080452ce24ce27ed833f24790a6e6218dc4a5df4b35d23d6cfc425fbb
size 1543
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:94251b2485f1f8bd0b22eb32fd59459626229c38e4de9aa538ff249b3cc16505
size 1743
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e7423462cc52bf5d97b6d2e05626f8066a6580b03922bc35589690b15d04a222
size 1532
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0fe99a15432706ac8bdd5766d3ed4869042b50e0d3c54665b63ba8eb2aaaef20
size 1855
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2b6cdda3bc23add330fa03095fc46251dbe2516f974d4ae44c321d87dc662d54
size 1702
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9ea0a56d30f763f69ba1c5051f05eac13e61a715ae4d80412b1e0570f3263e27
size 1821
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:77c42dadeda4d9fdc5b8e7915319880908dd61acb46e289e88f8e067b8e57410
size 1736
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:579d6a27e062779d41beb9320abf5797bc8ec81de1f355a4197c3b3ee0766f28
size 1400
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a4010c8122af918dbdb50e88629adbf79f7733f022bba263e6f44f6ffae3e7a5
size 1371
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4f2016b7bac3accf541f100a2c83871618214e1806e95e4d80867d30d1dfcf03
size 1546
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:57dbfdabe88f6abbb8993982eef72803ac504842e9a9d388e7dde1623f69f0d7
size 1551
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:89041889817454869d98adfb5a16fae33596c038d5484ec734fe3a5cc532c45c
size 1334
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e691dd43947c9430fcd73e6bede94aa5fd8995e9303eba53cc0ac589a7c9f106
size 1347
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:008cf037b8713c710eacd1129973119faa2527ab1c19aee5340a16dc0659df8a
size 1063
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:41adb4c64ca3cecf2f6de7dcca8826980369995959ad0eb3d7ec584bbac9b4a6
size 1327
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e02ac2720f12f9373ae2d86d91fffb6203e18aba04b493bd6f41d2953a11cbc9
size 1780

Some files were not shown because too many files have changed in this diff Show More