Commit Graph

3870 Commits

Author SHA1 Message Date
Willem Melching fa0cbe5d40 Put journal and nvme stats in bootlog (#22849)
* Run commands and put output in bootlog

* log nvme

* fix indent

* cereal without event

* use regular array
2021-11-10 16:07:22 +01:00
Willem Melching 6ace88a0f1 cache prime status in param (#22850) 2021-11-10 16:05:49 +01:00
Willem Melching 14f0df0f22 modem.Command timeout is in seconds (#22851)
* modem.Command timeout is in seconds

* getting tempts needs longer timeout
2021-11-10 16:05:27 +01:00
eFini 1f106e3725 ui.cc: fix Hardware::TICI() check for screen brightness (#22847) 2021-11-10 10:10:35 +01:00
HaraldSchafer 35d6ed1014 ACADOS: partial condensing (#22830)
* partial condense

* new refs

* new ref

* newerest refs
2021-11-09 19:29:55 -08:00
Dean Lee b0f9365295 EGLImageTexture: pass nullptr to glTexImage2d in last argument (#22844) 2021-11-09 18:49:48 -08:00
Erich Moraga 09514fb8e5 Add missing LEXUS_RX_TSS2 EPS & engine f/w (#22840) 2021-11-09 16:59:19 -08:00
Adeeb Shihadeh 445a5aaca4 soundd: don't loop controls unresponsive sound infinitely (#22839)
* soundd: don't loop controls unresponsive sound infinitely

* update tests

* actually fix
2021-11-09 16:58:21 -08:00
Jafar Al-Gharaibeh 2621e5301d Mazda: disable hud alerts until we find a way to silence audible alerts (#22808)
* Mazda: disable hud alerts for now until we find a way to silence audible warnings

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* Mazda: add hud alert for steer lockout

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* show when above min steer speed

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-09 15:24:18 -08:00
Adeeb Shihadeh 03ab8af12f update soundd cpu usage 2021-11-09 14:46:20 -08:00
Vivek Aithal 5c810a45b0 locationd: Make live_kf robust to no GPS (#22774)
* add no gps observations

* use correct ecef_location, orientation vals and stds for nogps states

* remove earth radius obs

* move initial loc to the ocean

* remove unnecessary changes

* update refs
2021-11-09 14:45:47 -08:00
Dean Lee 797bb1acb0 soundd: misc cleanup + tests (#22796)
* pass AudibleAlert to setAlert

* apply reviews

* remove trailing underscore

* add current_alert_type

* common function get_alert

* same freq as ui

* small cleanup

* setvolumne on change

* static Alert::get

* test_sounds

* remove old test files

* loop twice

* assert loopsRemaining

* assert stop

* init to min_volumne

* Revert "remove old test files"

This reverts commit 12e8bfefae1ae7f8649d3eda1e4126ff8eb1fe17.

* move to ui/soundd

* move test to tests/test_sound.cc

* remove old tests

* cleanup

* lower volume

* Revert "remove old tests"

This reverts commit e6bb12abfa3d5cd0aa8986d2b8da0b1edc7ea31b.

* return Alert

* cleanup

* remove #include <optional>

* cleanup .gitignore

* revert to std::optional

* Revert "revert to std::optional"

This reverts commit a66291c51f3a846652837cc4a43d5d60dd81896b.

* cleanup

* remove volume check

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-09 14:18:29 -08:00
Dean Lee fb8ba34f31 replay: add qcam and YUV flags (#22788)
* common flags

* cleanup

* remove double semicolon

* camera

* apply reviews
2021-11-09 14:08:24 -08:00
Dean Lee 6e5fed63df UI: do vipc recv in thread (#22354)
* move vipc to thread

* use invokeMethod

* cleanup

* latest_frame = nullptr

* space

* safe quit

* running_-> exit_

* recv timeout 1000

* cleanup

* run in loop

* requestInterruption

* block queue on vipcConnected for thread safety

* cleanup

* remove unused signal updateFrame

* make signals public

* dont emit signal in update

* apply reviews

* cleanup

* little more cleanup

* fix

* use glTexSubImage2D

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-09 13:27:12 -08:00
smithula 96a4a2886c Hyundai: add Sonata Hybrid FW (#22816) 2021-11-09 12:11:44 -08:00
Robbe Derks fee8ec74f1 Tesla: steerWarning on EPS error (#22834) 2021-11-09 13:36:23 +01:00
Dean Lee 0bd9aed82c loggerd/RawLogger: fix memory leak in encode_frame (#22826) 2021-11-08 15:27:51 -08:00
Adeeb Shihadeh ec935ef1c3 bump eon roadCameraState timing threshold 2021-11-08 15:20:04 -08:00
Jafar Al-Gharaibeh 8c38e9c49e Mazda: fix occasional steer fault at initial lkas enable (#22806)
* Mazda: fix occasional steer fault at initial lkas enable

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-08 14:40:26 -08:00
Adeeb Shihadeh 8933859e35 Remove remaining Toyota + Honda CAN fingerprints (#22827) 2021-11-08 14:37:25 -08:00
sshane a0e5eccb70 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>
2021-11-08 14:26:30 -08:00
robin-reckmann e2288371f2 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>
2021-11-08 10:51:59 +01:00
Dean Lee e29cc1c2ee util.h: add unit conversion constants (#22813)
* Add unit conversion constants.

* move to common/util.h
2021-11-08 10:19:34 +01:00
Jason Young 053404c878 VW MQB: Volkswagen Polo Mk6 (#22811)
* VW MQB: Volkswagen Polo Mk6

* add to RELEASES
2021-11-07 11:10:52 -08:00
Dean Lee fe22a3563c driving.cc: const reference the return value of get_best_prediction (#22797) 2021-11-05 15:07:44 -07:00
Adeeb Shihadeh d8f5e8b7a4 remove toyota can fingerprinting exceptions (#22803)
* remove toyota can fingerprinting exceptions

* cleanup
2021-11-05 13:49:30 -07:00
Robbe Derks 6bef60ddf5 extend fingerprint for multipanda ports (#22798) 2021-11-05 13:17:27 +01:00
Willem Melching 6d9b414c20 soundd: Set volume on receiving carState (#22795) 2021-11-04 21:30:46 -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
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
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
Willem Melching 45c506bb17 wshadow: fix comma three build 2021-11-02 17:27:34 +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
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 3238386a76 Toyota: ensure ACC_CONTROL bytes are the same after opendbc bump 2021-11-01 12:07:11 +01:00