Commit Graph

4201 Commits

Author SHA1 Message Date
Dean Lee
96e6c343e2 ui: only check sensorEvents when offroad (#22893) 2021-11-13 12:06:05 -08:00
Dean Lee
c0b9c1f3af framereader: remove deprecated ffmpeg functions (#22895) 2021-11-13 11:55:04 -08:00
Dean Lee
6b20118fec set pandaType in debug scripts (#22897) 2021-11-13 11:54:29 -08:00
Adeeb Shihadeh
db92006dc0 CI: skip cruise mismatch check for can replays 2021-11-12 18:22:39 -08:00
Igor Biletskyy
e293ccf016 New usb protocol for panda (#22752)
* first try

* move dlc_to_len

* panda switch to mailbox branch

* add bitstruct to pipfile

* bump panda and remove bitstruct

* few cleanups and fixes

* sanity check data.size == dlc_to_len

* check problem with test

* Revert "check problem with test"

This reverts commit b4855b7c12188d36d5d510e729344dab2cf21be9.

* clean

* revert Pipfile.lock

* that was an issue???

* fix crash

* ...

* include dlc_to_len from panda

* alph

* define macros for returned and rejected

* cleanup

* bump panda to current master
2021-11-12 16:47:26 -08:00
Vivek Aithal
534bf697ee locationd : Acceleration Bias in locationd (#22879)
* add accel bias to filter for offline calculation

* bugfix acc bias in live_kf

* add no_accel obsertvation

* increase initial certainty of acc-bias and reduce PN

* increase initial certainty of acc-bias and reduce PN

* increase accel bias PN

* increase obs noise for no_accel observation

* style fixes

* update refs
2021-11-12 15:55:16 -08:00
Adeeb Shihadeh
ed8e6f857c soundd: configure as persistent process (#22878)
* soundd: configure as persistent process

* update c2 test

* fix that

* little more

Co-authored-by: Comma Device <device@comma.ai>
2021-11-12 15:04:57 -08:00
HaraldSchafer
a04114f68c Give car interface roll and pitch (#22891)
* Give car interface roll and pitch

* fixup

* whitespace
2021-11-12 12:21:22 -08:00
Adeeb Shihadeh
c6ce88e231 Nissan: use cleaner Leaf brake pressed signal (#22890) 2021-11-12 12:18:13 -08:00
Willem Melching
264c5f4e61 ci: run test car models in matrix (#22884)
* Run test car models in matrix

* cache key per job

* actually cache files

* ci

* make files readable

* actually expose variables

* fix quote

* get cache unstuck

* ro cache can use more prefixes

* ci
2021-11-12 19:50:15 +01:00
Willem Melching
07ff724726 Move shutdown/reboot handling to manager (#22882)
* Move shutdown/reboot handling to manager

* more logging

* check enagaged

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-12 09:10:34 -08:00
Joost Wooning
89d0a52d16 cython wrapper for acados (#22784)
* cython wrapper for acados

* fix building

* sconscript cleanup

* no cython numpy

* cleanup

* upgrade build script

* try without slices

* new acados commit

* c3 update acados libs

* c2 libs

* make faster

* undo profiling

* fix build

* somewhat faster

* tryout cost_set_slice

* Revert "tryout cost_set_slice"

This reverts commit d358d93a133270e4edab9e7c07ffb6f577c52bd6.

* cleanup

* undo t_renderer change

Co-authored-by: Comma Device <device@comma.ai>
2021-11-12 17:09:08 +01:00
Willem Melching
8a8cee5e54 Batch of ECU FW from cars that fuzzy fingerprinted (#22883)
* honda

* hyundai

* toyota

* VW
2021-11-12 16:31:29 +01:00
Andre Volmensky
293a383d3a Added fingerprint for Japanese 2017 X-Trail (#22881) 2021-11-12 14:02:13 +01:00
Vivek Aithal
c7be73b826 locationd: Set ECEF_POS valid flag to false if in no-gps mode (#22857)
* set ECEF_POS valid flag to false if in no-gps mode

* modify valid flag for all ecef states before gps

* add calibrated valid when no gps

* update refs

* remove extra whitespace

* add invalid flag to all NED values pre gps

* update refs

* update correct refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-11 21:34:17 -08:00
Adeeb Shihadeh
e528e2e3e2 allow update snoozing (#22876)
* allow update snoozing

* not immediately visible

* dismiss and close

* grey button
2021-11-11 15:32:25 -08:00
Adeeb Shihadeh
308219c5b1 alerts: use repeating warning2 sound for steerSaturated (#22874) 2021-11-11 11:55:34 -08:00
Erich Moraga
7f4de651e1 Add missing HIGHLANDER_TSS2 engine f/w (#22871) 2021-11-11 11:17:11 -08:00
Willem Melching
0e78502181 remove broken athena test 2021-11-11 17:32:26 +01:00
Willem Melching
03195b79e6 nav: resend route on ui freeze (#22869) 2021-11-11 17:05:12 +01:00
kernyan
983cc14174 ui: auto scaling on resolution below 1920 x 1080 (#22842)
* ui: resizable on PC by mouse drag

* Revert "ui: resizable on PC by mouse drag"

This reverts commit 56aa8254a2ae3f3b8a4b1f5957a51b2258780e97.

* ui: auto scaling on resolution below 1920 x 1080

special case when on PC and screen resolution is exactly 1920 x 1080,
we don't use fixed-sized window to account for taskbar/menubar area

* Update qt_window.cc

set maximum window size

* keep SCALE

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-11-11 13:25:12 +01:00
sshane
bdaea086f8 Longcontrol: do not clip vEgo to minSpeedCan (#22832)
* fix tss2 slow reacceleration in sng

(should) preserve stopping behavior

add comments since it's confusing

fix

* Revert "fix tss2 slow reacceleration in sng"

This reverts commit 42abde0eb945d8bc5ad9b502d1d89b3e3dc16f8a.

* don't max(vEgo)

* update ref

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-11-11 13:24:38 +01:00
Willem Melching
306df7f94f nav: check valid flag on PositionGeodetic measurement (#22858) 2021-11-11 10:24:10 +01:00
Greg Hogan
caad4919ac profiling: replace pyflame with py-spy (#22864)
* py-spy

* remove pyflame

* find process by name
2021-11-10 23:27:10 -08:00
Adeeb Shihadeh
327464fb84 increase engagement alerts duration 2021-11-10 22:11:14 -08:00
Jafar Al-Gharaibeh
b18661a3a6 Mazda: fix occasional main cruise disable (#22807)
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
2021-11-10 21:25:41 -08:00
Adeeb Shihadeh
035bc0c20f controlsd: alert on cruise mismatch for >1s (#22841)
* controlsd: alert on cruise mismatch for >1s

* bump cereal

* update refs

* bump allowed soundd cpu

* bump cereal
2021-11-10 13:01:42 -08:00
Adeeb Shihadeh
c5d6b85c90 alerts: use a single duration for sound, text, and HUD (#22856)
* alerts: use a single duration for sound, text, and HUD

* little cleanup

* update refs
2021-11-10 11:54:12 -08:00
Adeeb Shihadeh
93ba52c76c controlsd: optimize alert management (#22846)
* controlsd: optimize alert management

* little cleanup

* dataclass is nice

* fix tests

* update refs

* sort by start frame

* update refs

Co-authored-by: Comma Device <device@comma.ai>
2021-11-10 10:54:18 -08:00
Jason Young
2006fff2b6 Fix momentary false blind spot alerts when changing lanes (#22819)
* reset LaneChangeDirection after finishing

* update ref

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-11-10 17:21:36 +01:00
Willem Melching
6d6f989b7f RobustLogReader that can recover corrupted bz2 files (#22835)
* LogReader with bzip2 recovery

* only rlogs

* add comment

* plotjuggler should also use robust logreader
2021-11-10 16:41:00 +01:00
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