Commit Graph

5610 Commits

Author SHA1 Message Date
Dean Lee
ebffd5f3ad util: add safe write functions (#22160)
* add safe write functions

* log error

* bzfile safe_fopen&safe_flush

* update test_case

* trigger ci

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 652c42da2c6fa31168d5d299c959ab0c86799c4b
2021-10-29 13:23:31 +02:00
Robbe Derks
dbe4641e04 Multipanda support (#22402)
* squash all PR commits for easy rebase

* merged all panda rx can into one message

* fix buffers in can_send

* more cleanup and minor fixes

* fix even more stuff

* fix non-allocated send buffer

* make connecting more robust

* fix bus offset

* fix controls_mismatch?

* simplify mismatch check

* C++ style struct

* fix connect loop

* update ref

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 585c16cd2aba6e2504c2427aaf1855b97035eb41
2021-10-29 13:04:26 +02:00
Willem Melching
0d035f6898 PyQt demo app (#21625)
* build python helpers lib

* call setMainWindow from python

* put in helper lib

* linter

* move to scripts
old-commit-hash: 25e4e94691d90f1a4496a2742c63ede108593e15
2021-10-29 12:37:17 +02:00
Dean Lee
0afe7d74bc util: add new function create_directories with unit tests (#21871)
* util::create_directories

* check bool ret

* don't assume mask

* rename with_umask to no_umask

* remove umask

* rebase master

* rebase master

* 0755
old-commit-hash: 1f39d8cee69cf28576cd9bd27ef52be57d44371e
2021-10-29 12:27:35 +02:00
Dean Lee
af7c9ccf6f replay: build on devices (#22632)
* there is no QThread::create on device

* add files to files_common

* modify SConscript

* no memory_resouce on device

* #define HAS_MEMORY_RESOURCE

* fix hangs on shutdown

* build on device with the --extra flag

* delete later

* setup -> extras

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d70e49dca5687c3a26d4b67a7a3dbf04c224e04f
2021-10-29 12:21:57 +02:00
Dean Lee
c401d7aff3 loggerd: fix concurrency issues in sync encoders (#22590)
* sync_encoders

* add variable camera_synced

* cleanup
old-commit-hash: 18caf3535b2049a0809cb3b01fde19d196e34e32
2021-10-29 12:21:02 +02:00
Dean Lee
c742e81f3e framereader: use swscale to handle the YUV conversion (#22710)
old-commit-hash: 921600b95c70d034f0c575673efce75533d3ba7a
2021-10-29 12:14:14 +02:00
Dean Lee
da6ebc2f9d remove unused signal displayPowerChanged (#22719)
old-commit-hash: 3b936aaca9af3da1cdce0635cf9d539e8ad574b8
2021-10-29 12:09:03 +02:00
Willem Melching
88947e50ef Add 2019 Rav4 engine FW (#22733)
old-commit-hash: 51c4b3c34b5114a0720cf2a93f882dfe05631821
2021-10-29 12:08:04 +02:00
lipniak
dc816fc35c tools: add info on common issues (#22709)
* tools/README.md: add more information

1. Add info about OpenCL drivers
2. Add info about pipenv environment

* ubuntu_setup.sh: add clinfo

Adds the clinfo command so you can verify your OpenCL installation.

* tools/README.md: add info on GUI WSL
old-commit-hash: e68849cfc8e612eeadca316070e5f49464b98831
2021-10-29 11:19:43 +02:00
Willem Melching
2121c35f7d README.md: mention docs.comma.ai
old-commit-hash: d656a4631127ea49d37bda07bc7419346dde1ba4
2021-10-29 10:45:07 +02:00
Willem Melching
519e7ef713 add nav improvements to release notes
old-commit-hash: 8c73e67467ed0117546f75e5ea8e5d78732eb60f
2021-10-29 10:39:22 +02:00
Jason Young
a399abf438 GM: EPS fault workaround (#22404)
* seems legit

* panda -> loopback

* fix comment

* add some "why" comments for the next guy

* re-test with stock 50Hz rate

* ugly test

* Update selfdrive/car/gm/carstate.py

Co-authored-by: qadmus <42746943+qadmus@users.noreply.github.com>

* update refs

* Update selfdrive/car/gm/carstate.py

Co-authored-by: qadmus <42746943+qadmus@users.noreply.github.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: b49f518782436f2d58ae6c6b11956b4625d28441
2021-10-28 16:54:12 -07:00
Adeeb Shihadeh
67b42fc1a8 Mazda: fix blinker states (#22718)
* Mazda: fix blinker states

* not lamp

* back to lamp to fix convenience blinkers
old-commit-hash: 2b4a655f36ffb94aa87d07e65c1f88f37dd33636
2021-10-28 14:05:12 -07:00
Adeeb Shihadeh
72d7b40eec UI: add opensans semibold
old-commit-hash: e33cd47b5c565a8d7a96a83a934dd23ab055c4bd
2021-10-28 13:07:39 -07:00
Willem Melching
94db4b8ca0 Small docs cleanup (#22725)
* add images

* Add root README.md to docker container
old-commit-hash: 48ef2bcbf6d2f157ceffea95e5fbdf0d3ec939b7
2021-10-28 19:16:39 +02:00
Willem Melching
82ebe9f0ee nav: support multiple banners in route segment (#22722)
old-commit-hash: d4433cc2d8363ad30ceec62fb80e333ec09f39b7
2021-10-28 19:11:29 +02:00
Dean Lee
6f0377cf1a params: remove params_pxd.pxd (#22723)
old-commit-hash: 92682cb8e0396373c2ee82add96f70eb7d80964b
2021-10-28 19:10:55 +02:00
Jason Wen
03fcbc4366 hyundai_enable_radar_points: fix typo (#22724)
old-commit-hash: 257d2b447d33253dbcd95fb7e7778f5419d61516
2021-10-28 19:09:22 +02:00
Willem Melching
0cdb1d5bab Add sphinx dependencies to Pipfile (#22720)
old-commit-hash: aa8952d0b12d9fe468a82be11f4c8adf29bb6a47
2021-10-28 17:32:29 +02:00
Willem Melching
8d9783a379 maps: allow using MAPBOX_TOKEN env variable (#22721)
old-commit-hash: 0ba40954b9bf6810e223600c30affdc15a2b4f9c
2021-10-28 16:13:44 +02:00
Willem Melching
67f41f32f1 Sphinx docs generation (#22697)
* add sphinx

* switch theme

* Experiment: sphinx docs generation updated (#22708)

* moved build to root gitignore, added .gitkeep

* Improved makefile doc build process

- Removed auto-generated docs from source control
- Moved apidoc.sh into Makefile
- Removed make.bat (can add back if Windows support desired)
- Added sphinx viewcode and markdown extensions
- Added feature to source /docs in build, so any .rst file in /docs will
  override the respective file during the build process
- Added feature to copy all markdown/rst files from source into /build/
  during build process so they can be easily referenced while writing
  docs (see examples in index.md)
- Wrote basic starter index.md file

TODO: Add new dependencies to Pipfile [dev-packages]

* Revert accidental modification to Pipfile

* fix command substitution

* exclude xx

* improve docs

* dont include all docs in release build

* Add dockerfile

* update title

* include normal readme

* build container in CI

* use buildkit

* add login

Co-authored-by: Chad Bailey <chadbailey904@gmail.com>
old-commit-hash: b816b5b6442c21e63a09108c70986eeedb0372b2
2021-10-28 15:14:37 +02:00
Robbe Derks
39d9bd31b0 Make longitudinal planning triggered on model (#22641)
* Make long planning triggered on model

* fix process replay

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: efb5abec41e349e4a8a667b96f6265825f75a2ce
2021-10-28 12:27:09 +02:00
Robbe Derks
a6a2693a1c Pigeon (ublox) initialization fixes (#22712)
* add timeout to wait_for_ack

* fix ignition edge detection race condition

* local_ignition -> ignition_local

* gate power_save on !pigeon_active

* millis_since_boot

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 21c4bfc7bedb94cce93c7e2311154e4915db9ad5
2021-10-28 11:23:19 +02:00
Dean Lee
fd2bc4ce18 Qt/CommaApi: cache private key (#22715)
* cache private key

* space

* no need to check mtime

* call_once

* simplify
old-commit-hash: 3f4cc9a246e2a244e219f9766cd0edec93a54e26
2021-10-27 21:12:00 -07:00
Adeeb Shihadeh
8f16462f73 fix dashcam spelling
old-commit-hash: 687925c775c375495f9827946138a724bde00b9d
2021-10-27 17:55:48 -07:00
Adeeb Shihadeh
427d76d6a1 add replay to pc release files
old-commit-hash: cf6c129f80a1608567969c8e7b0a7ec6d334d988
2021-10-27 15:22:26 -07:00
Vehicle Researcher
4f57d2c168 add tools/lib to releas files for tests
old-commit-hash: 90c6182a4b8509e9b91e03bc67193f45cf7ff167
2021-10-27 14:14:43 -07:00
Adeeb Shihadeh
a7ed7b7375 jenkins: run build_release.sh from source dir
old-commit-hash: 1e1f948c0cd72ff20e04a8cced708971af5e6f13
2021-10-27 12:28:01 -07:00
cydia2020
8f824f3b16 Toyota: gate enableDsu on no smartDSU (#22711)
old-commit-hash: 944578ad0944cbcada4d69d0534475a525a365dd
2021-10-27 11:29:34 -07:00
Andrew
1e04063b9b tools/setup: add missing package for plotjuggler (#22713)
old-commit-hash: 999b2ee5cc5af8f356a76b0cb240a3bfffa7b30c
2021-10-27 10:56:41 -07:00
Willem Melching
cd4e7d6181 bump submodules
old-commit-hash: 63b85ca1e2587544042cd322531ffce238016d53
2021-10-27 11:57:31 +02:00
Adeeb Shihadeh
997f3f0212 run onroad tests on release build (#22700)
* check startup aelrt

* release decorator

* run in jenkins

* run onroad tests

* no push

* fix release2 build

* fix path

* no overwrite

* single release build script

* make files_eon non empty

* files

* run in source

* add that for now

* print

* ignore initialzing

* print

* fetch

* run tests last

* check alert text

* revert some stuff

* fixup jenkinsfile

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7feae28705842380ec00a6c691b97feeacd3ff3c
2021-10-26 23:50:05 -07:00
Adeeb Shihadeh
bb7751fdb0 don't set core affinity on PC (#22706)
old-commit-hash: 5b331fd6f5333e24a632839b64cdeb9129ef923b
2021-10-26 21:51:46 -07:00
Adeeb Shihadeh
95f5cabc04 add inter fonts to assets (#22704)
old-commit-hash: 950acb476c0bed4b03b3359b3030d492d982c664
2021-10-26 20:40:09 -07:00
Adeeb Shihadeh
2e995ea41a installer: init submodules for all builds
old-commit-hash: 23d6aeb4b7063ec20fc306dd2e8803cf24eedc3e
2021-10-26 20:01:24 -07:00
Adeeb Shihadeh
4099783375 add sdcard support (#22703)
* generalize

* factory reset
old-commit-hash: f4c2398db4c2dacc690d4115c04c7afb98a52a08
2021-10-26 19:34:08 -07:00
Adeeb Shihadeh
3e0c1a8f7f add escalade to release notes
old-commit-hash: e178bed3016957ae09228a91f793c8d5c00d5573
2021-10-26 16:01:44 -07:00
Gibby
ee70f39f1b GM: 2016 Escalade ESV (#22670)
* Added 2016 Escalade ESV fingerprint and data.

* Updated CARS.md for GM vehicles

* Uploaded Escalade fingerprint

* Removed part about auto high beams for GM. Seems to work for some.

* Revert other modifications in CARS.md

* Revert other modifications in CARS.md

* Added test route for Escalade

* Added tunning for Escalade to reduce jerky steering

* Apply suggestions from code review

* Update selfdrive/car/gm/interface.py

* cleanup test route

Co-authored-by: Gibby <git@twoitguys>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 46009fa6fd61fd454d3a4025f29c6fce688b09a0
2021-10-26 15:59:24 -07:00
Vivek Aithal
b16c806e9e plannerd: add useLaneLines to lateralPlan (#22699)
* add laneless toggle in lateral plan message

* update cereal

* add refs
old-commit-hash: 2ea4feffb9a70483eee63331f91962ce6e51d485
2021-10-26 14:32:41 -07:00
Willem Melching
8a0c57433e navigation: use mapbox proxy server (#22660)
* use mapbox proxy

* remove MapboxToken param

* do not log jwt

* remove import

* move to staging url

* put has_prime in ui state

* logic was flipped

* Update selfdrive/ui/qt/maps/map.h
old-commit-hash: cca07c0c730eb6e0d8dab0bde099a2ed706d14de
2021-10-26 18:59:17 +02:00
Willem Melching
efa265a720 Make BMX055 optional if MMC5603NJ present (#22698)
old-commit-hash: b078d8e4251e84f22e57d681d8a0fd927e633c2f
2021-10-26 17:43:33 +02:00
Willem Melching
0f77dd4506 loggerd: set encodeIdx.valid if frame id is correct (#22634)
* loggerd: set encodeIdx.valid if frame id is correct

* check valid flag in test

* test cleanup

* bump cereal
old-commit-hash: 89f311714cf3606c386fd1de52b27e24780b8174
2021-10-26 16:00:43 +02:00
Willem Melching
c25d90772f bump version to 0.8.11
old-commit-hash: c30bd052c3086bdb743f886e7b578130e5c91010
2021-10-26 15:23:04 +02:00
Willem Melching
116ae68bdb do not run on import
old-commit-hash: 59accdd814398b884167c0f41dbf46dcccf0c29c
2021-10-26 14:49:51 +02:00
Willem Melching
bb156e50d7 bump opendbc
old-commit-hash: e0b88dfb637693a8a3be9d2c91c992a6f45f80f4
2021-10-26 14:49:41 +02:00
Willem Melching
a15e1b2de0 fix test_models.py (#22694)
old-commit-hash: 8cd195d030a4d90820183b46146c0bba294740fb
2021-10-26 14:46:31 +02:00
Willem Melching
19ecbfa0b1 bump panda
old-commit-hash: 644d1126dbd18d4f9ab6bce9b9a324acb50b7280
2021-10-26 12:25:29 +02:00
Adeeb Shihadeh
05aa510c25 always show lane lines on HUD (#22693)
* always show lane lines on HUD

* update refs
old-commit-hash: f2b48a1803eed1512962ee80e0f4c9718f40d44b
2021-10-25 23:47:12 -07:00
qadmus
d56b3bd868 GM: Cleanup & format values.py (#22671)
* cleanup & format gm/values.py like toyota/values.py

* Units and notes
old-commit-hash: ca476650e9d0c04aa2f05724340d9cd913dfc466
2021-10-25 23:46:44 -07:00