Commit Graph

5101 Commits

Author SHA1 Message Date
Adeeb Shihadeh
ee33f8a8cd tools/lib/route: expose raw file paths 2021-11-04 20:32:02 -07:00
cydia2020
d66f0fcc87 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>
2021-11-04 14:53:32 -07:00
Willem Melching
c2b95ca6a1 util.h has conflicting ioctl def on comma two 2021-11-04 16:46:38 +01:00
Willem Melching
09ad6707ef add common/markdown.py to release files 2021-11-04 16:32:23 +01:00
Willem Melching
dec2cb6a65 update_requirements.sh: install both Pipfiles 2021-11-04 16:31:49 +01:00
Dean Lee
177c3b89b6 thneed/serialize: use funtions from clutil(#22760) 2021-11-04 16:19:25 +01:00
Dean Lee
ff33ca3413 util: remove function to_hex (#22792) 2021-11-04 16:18:01 +01:00
Mayfield
1aebe6ff6e 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>
2021-11-04 16:12:39 +01:00
Willem Melching
1289ebe9bd make soundd exit cleanly (#22794) 2021-11-04 15:50:48 +01:00
Willem Melching
3f8991a261 docker: update pip/pipenv versiosn (#22793) 2021-11-04 15:40:36 +01:00
justinmccaffrey
28e16c7b84 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>
2021-11-04 15:28:04 +01:00
Willem Melching
802efe0e22 soundd doesnt exit cleanly 2021-11-04 15:05:16 +01:00
Dean Lee
dd1531af96 ui/MainWindow: remove emit keyword on slot (#22790) 2021-11-04 14:43:28 +01:00
Willem Melching
bef686f275 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
2021-11-04 14:32:32 +01:00
Adeeb Shihadeh
b7394c6171 soundd: use offscreen platform to avoid initialzing gpu stuff 2021-11-03 22:24:12 -07:00
Adeeb Shihadeh
95cdc5e9df bump opendbc 2021-11-02 20:30:43 -07:00
Willem Melching
45c506bb17 wshadow: fix comma three build 2021-11-02 17:27:34 +01:00
Willem Melching
d333cae800 bump cereal 2021-11-02 17:16:48 +01:00
Mayfield
5246f0231e enable wshadow (#22756)
* enable wshadow (#22714)

* fix replay

* more build fixes

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-11-02 17:08:53 +01:00
Willem Melching
88e2c4a418 bump rednose 2021-11-02 15:18:37 +01:00
Willem Melching
caac4c9c44 bump submodules 2021-11-02 14:40:39 +01:00
Mayfield
8c501f0265 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
2021-11-02 14:10:07 +01:00
Dean Lee
79651b6c49 replay: fix qcam download error (#22777)
* fix qcam download error

* test loading qlog/qcamera
2021-11-02 11:24:59 +01:00
Dean Lee
09858f7f6f replay: print colored text (#22771) 2021-11-02 11:24:45 +01:00
Dean Lee
0a5ca71603 replay: fix frame lag when replaying to the next segment (#22773) 2021-11-02 11:24:12 +01:00
Willem Melching
246a52166e assert openpilotLongitudinalControl not enabled for Hyundai legacy safety mode (#22778) 2021-11-02 11:22:38 +01:00
Willem Melching
f8d050298e framereader.cc: better avformat_open_input error printing 2021-11-02 09:56:49 +01:00
Dean Lee
6f78cc77fc replay: fix hanging on exit if stream thread has not been started yet (#22770) 2021-11-01 16:06:39 -07:00
Dean Lee
6de66f2832 params: remove obsolete keys (#22769) 2021-11-01 14:32:55 -07:00
Willem Melching
252f3c1c87 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
2021-11-01 15:00:00 +01:00
Willem Melching
3238386a76 Toyota: ensure ACC_CONTROL bytes are the same after opendbc bump 2021-11-01 12:07:11 +01:00
Willem Melching
3469f0b2c4 bump opendbc 2021-11-01 12:00:05 +01:00
Dean Lee
2b4a477fbc 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
2021-11-01 11:55:56 +01:00
Willem Melching
5b93d44459 Hyundai: update FW in old format (#22764) 2021-11-01 11:51:37 +01:00
Dean Lee
2773ff5ace params: code cleanup (#22744)
* cleanup params

* apply review

* continue

* use c_str

* cleanup filelock

* don't check return code of close()

* remove call_once

* cleanup params_pyx

* cleanup comment
2021-11-01 11:22:34 +01:00
Jason Wen
ea9b93008e Kia (HKG): Add FW for 2021 Kia K5 (#22753) 2021-11-01 11:14:49 +01:00
Dean Lee
07ad6d7444 thneed: use util::read_file to read from the file (#22757) 2021-11-01 11:07:28 +01:00
Dean Lee
41e5e76596 replay: fixed the alignment issue when replaying from C3 qcamera (#22734)
* fix qcamera replay

* fix alignment in replay

* upscale yuv if needed

* remove space
2021-11-01 11:06:00 +01:00
Adeeb Shihadeh
2252c6bba7 Mazda: move CX-9 out of dashcam mode (#22717)
* move cx9 out of dashcam

* no alc below 28

* process replay route
2021-10-31 22:02:36 -07:00
Dean Lee
8da3cd3cdd util:: remove unused funtion base_name (#22759) 2021-10-31 13:10:27 -07:00
lipniak
1d55f2f23e tools/setup: do not change global state (#22735)
* tools/setup: do not change global state

1. download packages in the venv
2. never change global python version

* update_requirements.sh: install to system if used by comma employees

* bump pip & pipenv versions

* no --upgrade

* run pre-commmit install in venv

* for consistency

Co-authored-by: predicate@bonzo <noreply@example.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-10-31 16:37:07 +01:00
Andrew
b9c4f0c0ff add new elantra hev 2021 fingerprints (#22727)
* add new elantra hev 2021 fingerprints

* add another transmission fp

* Remove duplicates

* Also duplicate

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-10-31 13:51:41 +01:00
Adeeb Shihadeh
f935ad3c9b bump panda 2021-10-30 15:38:32 -07:00
Adeeb Shihadeh
40b7962b93 Mazda: fix up cruise cancellation (#22750)
* also cancel on cruiseControl.cancel

* set counter in button msg
2021-10-30 13:37:52 -07:00
Adeeb Shihadeh
6bca73edd8 bump panda 2021-10-30 12:39:56 -07:00
Adeeb Shihadeh
1848fed6e2 Mazda: send dash alerts (#22730)
* Mazda: send dash alerts

* no actuators

* ldw

* send alerts

* test

* use cam parser

* add generic toggle

* wip

* revert some stuff

* try that

* steer required works

* cleanup

* bump panda

* little more cleanup

* no lane lines

Co-authored-by: Comma Device <device@comma.ai>
2021-10-30 10:56:30 -07:00
Jason Wen
248285d5c5 Hyundai: Add FW for 2022 Hyundai Sonata (#22702)
* Hyundai: Add FW for 2022 Hyundai Sonata

* Update selfdrive/car/hyundai/values.py

* sort engine fw

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-10-30 15:39:16 +02:00
Dean Lee
7486a42935 boardd: pass std::vector pandas by reference (#22741) 2021-10-30 15:34:33 +02:00
Adeeb Shihadeh
b76ccaac37 better alerts for temporary EPS faults (#22747)
* better alerts for temporary EPS faults

* reorder
2021-10-29 23:20:59 -07:00
Adeeb Shihadeh
f9b6b03f5d Mazda: car state cleanup + comments 2021-10-29 14:40:58 -07:00