Commit Graph

5681 Commits

Author SHA1 Message Date
Adeeb Shihadeh c2a413a2f4 Remove remaining Toyota + Honda CAN fingerprints (#22827)
old-commit-hash: 8933859e35c4fbeae0cb9d35eb6ca002e792c616
2021-11-08 14:37:25 -08:00
sshane 8472503305 Toyota: handle brake hold (#22810)
* disallow engagement if brake hold active

* we can check once

* move to common events

revert

* fix

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: a0e5eccb70ac9209307d0994252f5bf089ae48ae
2021-11-08 14:26:30 -08:00
Jason Young d422f39d19 Fix pygame and knack dependencies (#22818)
* fix pygame and knack

* lock again

* latest pygame, headless opencv

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 739bd370031c97842a04c66796e31d7d5d33adb8
2021-11-08 19:21:24 +01:00
Willem Melching 86e046b202 add all names to releases.md and fix typo
old-commit-hash: 25c8baae41ddeb6070597e3f27a48595ac8319ca
2021-11-08 11:04:09 +01:00
Willem Melching d098a82ad4 Add Nissan FP 2.0 to release notes
old-commit-hash: 40d89afa8a1cabdde9ce5a6aa8d3f313a3efa953
2021-11-08 10:54:05 +01:00
robin-reckmann 8c9ab4d333 Fingerprinting v2 support for Nissan vehicles (#22655)
* Add Nissan FPv2

* Update Nissan version response

* Add second Nissan FPv2 query

* Add multiple offsets for Nissan

* Nissan offset fix

* Add Nissan diagnostic request

* Use 21 83 for Nissan version request

* Add partial 2018 Leaf FPv2

* Update 2018 Leaf FPv2

* Nissan FPv2: more RX offsets, add no diagostic request scan for 0x20

* Add FPv2 imports to Nissan values

* Change LEAF to LEAF_IC

It is an instrument cluster leaf. With this minor change it works :).

* fixed ecu addr for nissan eps

* Remove FW not used for fpv2

* Remove unused offsets

* add fw versions for 2018 Nissan Leaf JP

* add standard ecu fw query

* add esp fw

* add nissan xtrail

* Add missing ESP FW for 2018 Nissan Leaf IC

* Add fwdCamera FW for Xtrail 2017

* add missing comma

* Add 0x8 default offset

needed e.g. for xtrail engine ecu

* Apply suggestions from code review

Co-authored-by: Willem Melching <willem.melching@gmail.com>

* Fix variable naming

* remove unnecessary part of standard fw query

* add fw versions for CAN-GW ECU

* transmission eco does not reliable answer -> remove

* add Altima FWs (part 1)

* add Altima EPS FW

* Remove NISSAN_KWP_DIAGNOSTIC_REQUEST and cleanup

* Revert "Remove NISSAN_KWP_DIAGNOSTIC_REQUEST and cleanup"

This reverts commit 808d6f1562e9a6cb57ea365d184b74d51f6da017.

* cleanup

Co-authored-by: Martin Lillepuu <martin@mlp.ee>
Co-authored-by: Julian Pieles <julian@pieles.digital>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: e2288371f2bd99cd31d141729a77d676ba28b4df
2021-11-08 10:51:59 +01:00
Dean Lee 6e027a8aa6 util.h: add unit conversion constants (#22813)
* Add unit conversion constants.

* move to common/util.h
old-commit-hash: e29cc1c2ee7b63c71a3a46d900a8f755bd0048a0
2021-11-08 10:19:34 +01:00
Adeeb Shihadeh f30ffe16a2 bump cereal
old-commit-hash: adeeebf00ed3283bedb3a7fea28006f37a480d20
2021-11-07 16:38:50 -08:00
Adeeb Shihadeh 629ea41f33 bump opendbc
old-commit-hash: cbe76c80a6bca283fe3655bd74ea509d00fa6b37
2021-11-07 16:28:13 -08:00
Jason Young b6294132af VW MQB: Volkswagen Polo Mk6 (#22811)
* VW MQB: Volkswagen Polo Mk6

* add to RELEASES
old-commit-hash: 053404c8788b1fc134446660d3202aba31385674
2021-11-07 11:10:52 -08:00
Dean Lee 4411f90df0 driving.cc: const reference the return value of get_best_prediction (#22797)
old-commit-hash: fe22a3563c300e8c10b70a67dfa7c1a0393d0421
2021-11-05 15:07:44 -07:00
Erich Moraga 39df7ab9b8 docs/cars: add 2022 Prius Prime (#22805)
old-commit-hash: 0af1af76d40ab3339da8d09e88c8ca79b2b5d2a1
2021-11-05 14:54:42 -07:00
Igor Biletskyy 26a994f2be Add test_boardd_loopback to Tici tests (#22804)
old-commit-hash: 6dec145e7f8081adffb9b3fe7a9a24360b953e47
2021-11-05 14:31:13 -07:00
Adeeb Shihadeh b2bd93fba0 remove toyota can fingerprinting exceptions (#22803)
* remove toyota can fingerprinting exceptions

* cleanup
old-commit-hash: d8f5e8b7a4b6c9132ce2515a9106aeb971ee2579
2021-11-05 13:49:30 -07:00
Robbe Derks a854ed8ea3 extend fingerprint for multipanda ports (#22798)
old-commit-hash: 6bef60ddf56d49a2d6afdf1dfcb85cc3da8211a6
2021-11-05 13:17:27 +01:00
Willem Melching 9539fee341 soundd: Set volume on receiving carState (#22795)
old-commit-hash: 6d9b414c200f21d40134422b35b2b94f7ffdfe3f
2021-11-04 21:30:46 -07:00
Adeeb Shihadeh 605c84634a tools/lib/route: expose raw file paths
old-commit-hash: ee33f8a8cd31dce6b6cfcab0dcd0c3c2d9f01595
2021-11-04 20:32:02 -07:00
cydia2020 02f6ca414a Toyota: Increment by 5 km/h (5 mph) on long press (#22678)
* Allow 5km/h speed increments on Toyota

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d66f0fcc8773efd746fbe68a6f75614f731206fc
2021-11-04 14:53:32 -07:00
Willem Melching 9d65df9048 util.h has conflicting ioctl def on comma two
old-commit-hash: c2b95ca6a1c8df3ab3817e71f1d8f53e8ef8793a
2021-11-04 16:46:38 +01:00
Willem Melching c619edc47a add common/markdown.py to release files
old-commit-hash: 09ad6707ef7655d30dd8898847d788385d52ef2d
2021-11-04 16:32:23 +01:00
Willem Melching 541d2c2848 update_requirements.sh: install both Pipfiles
old-commit-hash: dec2cb6a654df298964d2d04d43d42bf3f554d65
2021-11-04 16:31:49 +01:00
Dean Lee 6677f91e9d thneed/serialize: use funtions from clutil(#22760)
old-commit-hash: 177c3b89b62c5538fb36171906f091cfa4b9f975
2021-11-04 16:19:25 +01:00
Dean Lee 7ff2217c8b util: remove function to_hex (#22792)
old-commit-hash: ff33ca341382be19a4be9bd71b97af1b01b553c7
2021-11-04 16:18:01 +01:00
Mayfield 72c892e014 ui: render markdown in release notes (#22754)
* convert release notes from markdown to html

* fall back to previous behavior if utf8 decoding or markdown parsing throws

* make simple markdown parser to avoid needing a library

* add unit test

* move markdown parser to common. add unit test

use `markdown-it-py` instead of `markdown` dependency for test comparison since it's already in Pipfile.lock

* test (almost) all release notes and add some extra html encoding

* update lock

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 1aebe6ff6e7097cef973f73a990c270d1f6d682b
2021-11-04 16:12:39 +01:00
Willem Melching ef6ae61c5e make soundd exit cleanly (#22794)
old-commit-hash: 1289ebe9bdfdb698c7ab61331ec9169529ae31e4
2021-11-04 15:50:48 +01:00
Willem Melching 9e64a5a70f docker: update pip/pipenv versiosn (#22793)
old-commit-hash: 3f8991a261a021df19d0d9bbd6568bcb13f2ea71
2021-11-04 15:40:36 +01:00
justinmccaffrey bba8594f74 Add 2021 Honda Passport (#22781)
* update values.py

* add passport to carstate, interface, values

* add a test route with mostly green

* switch to newer route

* update readme

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 28e16c7b8480fb540810216fd09ff711db09ed90
2021-11-04 15:28:04 +01:00
Willem Melching 6712c4e520 soundd doesnt exit cleanly
old-commit-hash: 802efe0e22501f9334f2017491c65fef163fede3
2021-11-04 15:05:16 +01:00
Dean Lee 0b73c09488 ui/MainWindow: remove emit keyword on slot (#22790)
old-commit-hash: dd1531af967a9ad826f074c3de1be45e418fd84e
2021-11-04 14:43:28 +01:00
Willem Melching dc3075790e Move navigation into separate daemon (#22767)
* Add navd folder

* prints route instructions to console

* broadcast NavInstuction without lanes

* show basic instructions and eta

* parse out lane info

* use swaglog

* clip distance on ui side

* draw lane directions

* show route

* add to process config

* add to release files

* small cleanup

* show route without gps

* pop open map on initial route

* fix error messages around no gps

* done

* make persistent process

* handle end of route

* clear route on offroad

* only one timer

* fix layout hacks

* explicit rendering at 20Hz
old-commit-hash: bef686f2752bcad4bb3116c2be63157ee01eab73
2021-11-04 14:32:32 +01:00
Adeeb Shihadeh 08a11cdf84 soundd: use offscreen platform to avoid initialzing gpu stuff
old-commit-hash: b7394c61713e6a4133b2974bb8c18ed2d842e39b
2021-11-03 22:24:12 -07:00
Adeeb Shihadeh a5d2fd6134 bump opendbc
old-commit-hash: 95cdc5e9df247d861ef025788b9f069b0fcb91f2
2021-11-02 20:30:43 -07:00
Willem Melching 19deb98bc3 wshadow: fix comma three build
old-commit-hash: 45c506bb17e51d4f8592f74c75b9adcffa681201
2021-11-02 17:27:34 +01:00
Willem Melching 24a637cb56 bump cereal
old-commit-hash: d333cae800acb9cf9a28fa55ad10db7aa4d4240c
2021-11-02 17:16:48 +01:00
Mayfield 43e1903073 enable wshadow (#22756)
* enable wshadow (#22714)

* fix replay

* more build fixes

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 5246f0231e6bfa572c0dd89c60e538910817faa2
2021-11-02 17:08:53 +01:00
Willem Melching 75b9ae0039 bump rednose
old-commit-hash: 88e2c4a41845c98babcbc6d3c33870b1cc2830a1
2021-11-02 15:18:37 +01:00
Willem Melching c315e75152 bump submodules
old-commit-hash: caac4c9c445e3d3fa7bed8b480355b244008e202
2021-11-02 14:40:39 +01:00
Mayfield 18ff2f5cbd alerts: show min enable speed in "speed too low" alert (#22755)
* alerts: show min enable speed in "speed too low" alert

* commonize display speed construction
old-commit-hash: 8c501f026581c5690e5f3b253198cd0a13dc1cc3
2021-11-02 14:10:07 +01:00
Dean Lee 5f454307fc replay: fix qcam download error (#22777)
* fix qcam download error

* test loading qlog/qcamera
old-commit-hash: 79651b6c4917415c11d1b462a87e1e18853d6e68
2021-11-02 11:24:59 +01:00
Dean Lee 526cfdd0fb replay: print colored text (#22771)
old-commit-hash: 09858f7f6f890ed43a4410412f6a9e9165b93847
2021-11-02 11:24:45 +01:00
Dean Lee 07ffd9c095 replay: fix frame lag when replaying to the next segment (#22773)
old-commit-hash: 0a5ca716030025f4164109702d8a29429911748d
2021-11-02 11:24:12 +01:00
Willem Melching 3a83022853 assert openpilotLongitudinalControl not enabled for Hyundai legacy safety mode (#22778)
old-commit-hash: 246a52166ebf94fbea7bb45cfd0c4896b35b3a6c
2021-11-02 11:22:38 +01:00
Willem Melching 86e72f88c3 framereader.cc: better avformat_open_input error printing
old-commit-hash: f8d050298ecf969e1890fe10120ee0a748ed7eba
2021-11-02 09:56:49 +01:00
Dean Lee 993aa64067 replay: fix hanging on exit if stream thread has not been started yet (#22770)
old-commit-hash: 6f78cc77fc7bbc8e9d9efc5e9ae7e66dfeb06940
2021-11-01 16:06:39 -07:00
Dean Lee 950211e15f params: remove obsolete keys (#22769)
old-commit-hash: 6de66f283242214bef6f83aec3b5bc5599ed9d50
2021-11-01 14:32:55 -07:00
Willem Melching 2dbecc8a15 tools/lib/auth.py: support github/apple login (#22766)
* tools/lib/auth.py: support github/apple login

* print some info about logged in user

* add docstring
old-commit-hash: 252f3c1c871909611d162596e163fd7e6b8541bb
2021-11-01 15:00:00 +01:00
Willem Melching 0e154a8d5c Toyota: ensure ACC_CONTROL bytes are the same after opendbc bump
old-commit-hash: 3238386a762e649e8eb77b44a5c4a878dfce2a40
2021-11-01 12:07:11 +01:00
Willem Melching 21e221c880 bump opendbc
old-commit-hash: 3469f0b2c41cb3a2527b28039445494eef41b555
2021-11-01 12:00:05 +01:00
Dean Lee a031b938b0 replay: improve segment download and merge (#22654)
* no-cache mode

* fix test cases build error

* space

* don't create cache dir in no-cache mode

* fix errors in test cases

* no_local_cache_

* set the number of connections by chunk_size

* use size_t instead of int64_t

* add test case for no-cache mode

* rename variables

* fix SIGSEGV

* cleanup

* faster decompressBZ2

* always decompress bz2

* add test cases

* prepare for python interface

* fix test cases build error

* continue

* camera_replay: cache remote file

* protected inheritance

* single option name

* TODO

* test_case for LogReader&FrameReader

* fix wrong require

* test case for FileReader

* cleanup test

* test:fix wrong filename

* check cached file's checksum

* fix mkdir permissions err

cleanup filereader

* remove initialize libav network libraries.

dd

* abort all loading if one failed

* cleanup tests

* use threadpool to limit concurrent downloads

* cache more segments

* merge 3 segments for replay

* one segment uses about 100M of memory

* use segments_need_merge.size()

* shutdown

* fix stuck if exit replay  before keyboard thread started

* load one segment at a time

* small cleanup

* cleanup filereader

* space

* tiny cleanup

* merge master

* cleanup test cases

* use util:create_directories

* cleanup framereader
old-commit-hash: 2b4a477fbc8fc02da5876aee4f955194916f19a3
2021-11-01 11:55:56 +01:00
Willem Melching 3a8fdaba2f Hyundai: update FW in old format (#22764)
old-commit-hash: 5b93d4445906cc5d10ab71920e204e747277e960
2021-11-01 11:51:37 +01:00