Commit Graph

1051 Commits

Author SHA1 Message Date
Dean Lee 53c7684956 OnroadHud: update engageability and DM icons at 2Hz (#23134)
old-commit-hash: 5ab6bff67016585edbbec134123c54db2e471599
2021-12-05 12:54:35 -08:00
Dean Lee 2da9327191 UI: move onroad hud to Qt (#23040)
* onroad hud

* improve boudingrect, same as nanvg

* QRect

* Update selfdrive/ui/paint.cc

* stacked with nvgWindow

* cleanup ui.h

* rename to road_view_layout

* no lambda

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: ad09507e1ba2d758fe435d06a3dc28def33c14e8
2021-12-04 23:02:10 -08:00
grekiki 9e4cc1f7ff Python: Replace more lists with generators (#23116)
* Replace lists with generators v2

* Replace set with {}

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

* Replace more set() with {}

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6951b3271d1770297cb6bd53878463035ec0bf43
2021-12-03 22:57:19 -08:00
Adeeb Shihadeh 7dbffc72c0 soundd: fix test for repeating soundsgitt status (#23110)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 37e2de22443abe1a6ad37f3bbf91aba18b52fa48
2021-12-02 19:55:19 -08:00
Dean Lee 95f54ffb39 soundd: use setLoopCount(0) to stop repeating sound (#23076)
* use setLoopCount(0) to stop sound

* print default backend name
old-commit-hash: 35885745f1b4fcaafee2ed7276de491e6df018d2
2021-12-02 16:40:10 -08:00
Adeeb Shihadeh a8332128aa soundd: max volume at 20m/s
old-commit-hash: bc4ae3f587e0c58dd48bb72ee6407d1f53f03023
2021-12-02 13:53:00 -08:00
Dean Lee 1b715dff6b CameraView: use unique_ptr for CameraView::program (#23096)
old-commit-hash: 8c6242888c0b955e16651b04927f0c44ab9e43ba
2021-12-02 13:37:49 -08:00
Cosmo Borsky dc2a9fb311 keyboard: replace backtick with apostrophe (#23104)
* Replace existing symbol with apostrophe

Without `'`, I cannot type my WiFi password... though it might be time
to rotate it.

* Replace extra bactic with apostrophe

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

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: faecf4e4c1b11748d8ad919bbd2e45a87de3e934
2021-12-02 01:23:59 -08:00
Adeeb Shihadeh 6c2182c026 Newer sounds (#23091)
* new prompt sound

* padding

* prompt distracted

* debug

* fix spelling

* lower min volume

* better volume at low speeds

* revert debug

* revert that

* fix tests

* update refs

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 3b367e68728c29eea057d99f3948d64ed6cbfa92
2021-12-02 00:28:25 -08:00
Adeeb Shihadeh dccb8b4010 New sounds (#22652)
* new engage/disengage + amp config

* first family

* cleanup audible alerts

* tici isn't special

* fix up debug cycle alerts

* these were better

* extend range

* use distracted sound

* log scaling

* getting closer

* slightly louder

* prompt

* update tests

* update refs

* fix c2 test

* resolve todo

* adjust tolerance

* revert for now

* should work

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e679d05d9e98e267047c21c0b6b67fe9d61f8ed6
2021-11-30 19:47:33 -08:00
Dean Lee d30429a2ad soundd: fix test case (#23075)
* init sound_stats

* send deviceState msg
old-commit-hash: eb0724d7e3bff078f803d45d5d305b5f793c8f22
2021-11-30 11:31:46 -08:00
Dean Lee 9b0fcaeb84 rename yuv streams (#23071)
* rename yuv streams

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 348d2d2b0d169b0d181a51eb0e23b1f9b8fc6793
2021-11-29 18:14:59 -08:00
Dean Lee db022f7816 ui: singleton networkAccessManager (#22994)
old-commit-hash: b2bcacf590f0206f7b608c4cc48afe61393dd007
2021-11-29 14:49:53 +01:00
Dean Lee 71c282d42a logreader: support reading from corrupt log (#23050)
* catch exception outside loop

* print decompress error

* add test case for corrupt log

* fix decompressbz2 stuck if log is corrupt

* recovered from corrupt data

* add output

* ass space

* std::endl

* override load(), load from buffer

* override FrameReader::load to load from the buffer

* replace NULL with nullptr

* fix test case for corrupt log

* Trigger Build

* check bzerror too

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: dbec761941c7599591fb59e9bb9f74b4f8cab2f7
2021-11-29 14:10:24 +01:00
Dean Lee c6ae32ecb3 framereader: refactor seeking (#22926)
* refactor seeking

* ckeck packets.empty()

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 296c4076a2ae8dfdcae5f300c922eac7d1df69cc
2021-11-29 12:09:14 +01:00
Dean Lee 14fa2bf41a cameraview: fix frameskip (#23022)
* fix frameskip

* sync upload->render

* cleanup

* comment

* rename to latest_texture_id
old-commit-hash: 00db14af6435ef789cd22d275855610f18be0011
2021-11-29 11:35:34 +01:00
Dean Lee 67c748d62a refactor httprequest: emit single signals (#23039)
* refactor httprequest

* Trigger Build
old-commit-hash: 3fd02649601856b2780168d36c49940ff49f4de2
2021-11-29 11:19:08 +01:00
Dean Lee b6e6c342b3 DevicePanel: split long constructor into multiple functions (#23043)
* begin refactor

* split long constructor to multiple functions

* one connection to signal

* merge master
old-commit-hash: 5394fe1ae799e38d5c5433a2e530d5be84ee7e99
2021-11-29 11:14:34 +01:00
Dean Lee 43812ae898 replay: refactor http download (#23052)
* refactor http download

* use chunk_size instead of parts

testcase:set chunksize to 5mb

* use template

space

* cleanup

* remove unused include

* check buffer overfllow

* simplify print download speed
old-commit-hash: f5e48678640bbde0f2616e955ced53f30d61ac6c
2021-11-29 11:13:30 +01:00
Dean Lee 4ac4b61272 framereader: fix crash after fallback to cpu decoding (#23055)
old-commit-hash: a449b856cac746647ad994eb511600929d529498
2021-11-28 13:29:40 -08:00
Dean Lee 5f299f7f3e ui/device: change last_brightness from float to int (#23029)
old-commit-hash: e376a621baa125063ffbf1fbd91560e25d45e8fd
2021-11-26 14:59:23 +01:00
Dean Lee e308bc0a3f framereader: replace swscale with libyuv, reduce cpu usage by half (#22992)
* use libyuv

* cleanup
old-commit-hash: 5ae51745097e3245c541456029fbc0fcce63a3c3
2021-11-26 14:41:14 +01:00
Dean Lee 89fcaad057 qt/settings: reuse params (#23041)
old-commit-hash: ac179e2c36c3c9e2988016120bd7c1cf308872c5
2021-11-26 14:39:25 +01:00
Dean Lee e8b9513fcf qt/settings: use default parameter for params.get (#23042)
old-commit-hash: 723c8d6a7c8286fb85cb8e784f1d562410b91415
2021-11-26 14:39:04 +01:00
Willem Melching 935ce9edad navd: render map into VisionIPC (#22800)
* navd: render simple map

* render route

* offscreen rendering

* cleanup

* more cleanup

* render into visionIPC

* rename class

* split position update from route update

* stop broadcast if not active

* gate vipc server behind flag

* add python library

* faster

* no vipc from python

* put behind extras

* only send when loaded

* add glFlush just to be sure

* cleanup settings into helper function

* function ordering

* broadcast thumbnails

* put behind param

* adjust zoom level

* add route to python bindings

* revert that freq change

* add logging if map rendering is enabled

* use rlogs if available

* bump cereal
old-commit-hash: 5069852573128f40dd0174eb1d0f3f983367863d
2021-11-26 14:38:02 +01:00
eFini 6558e04dcb UI: minor changes to make it translation friendly (#23032)
old-commit-hash: 21ff97b8c93f63644345c77914ad12c8b178e8b8
2021-11-25 22:30:07 -08:00
Dean Lee b2e59c0bfe networking: remove unused #inculde<QMovie> (#23016)
old-commit-hash: 6964adec39b8264d4332fe1daee99a336a4a275b
2021-11-23 15:24:28 -08:00
Dean Lee 0babd4d6e8 UI: fix cameraview crash after going offroad in settings window (#23009)
old-commit-hash: c1f617db46e3ed0aa9993dadd278f4f0c0efef6b
2021-11-22 21:46:46 -08:00
Dean Lee 31b63386f8 wifiManager/get_response: pass response by const reference (#22997)
old-commit-hash: aa0cc260b9bc3f6e2a2d2c8e837c92243e6c07cf
2021-11-20 20:19:43 -08:00
Dean Lee 8f9ca8d3f6 replay: add test to check dcam and ecam (#22993)
old-commit-hash: 1d2dfab81c60e48ebaeabe01efe74222190a7071
2021-11-20 18:56:27 -08:00
Dean Lee 2d8780e5c6 logreader: fix memory leak in Event (#22987)
old-commit-hash: 9cb46cc4a12063c0ec27e9cf932cb8f7a10ed63a
2021-11-20 11:12:52 +01:00
Dean Lee 05b2ff7f26 ui/settingswindow: set parent for nav_btns. (#22984)
old-commit-hash: b399b48f0a32e17a111571d8b1d6ccef52432e1c
2021-11-19 20:40:46 -08:00
Dean Lee 3492b1290f ui/device: fix uninitialized variable awake (#22983)
old-commit-hash: 7ce9ff1b0420e5e371570e7d69deb5c19d41ec0f
2021-11-19 20:40:29 -08:00
Dean Lee 97ee5320f3 ui: disable toggles while onroad (#22975)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 63779c385d32baeb8fadb2dcbdf250f2756b6c22
2021-11-18 21:45:40 -08:00
Cameron Clough 8ad1abd8ba api: send User-Agent on network requests (#22965)
* api: set User-Agent on network requests

The format of the User-Agent header matches the format in `common/api/__init__.py`.

Closes #22954.

* Update selfdrive/ui/qt/util.cc

* fix parentheses

* refactor into function

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 140c7f430cf9372c3706db4af9f58654a3ee2d0f
2021-11-18 15:53:21 +01:00
eFini 039e8be5a0 nav: flip instruction images for RHD (#22877)
* nav instruction icon for rhd

* we dont need rhd for active direction

* define suffix as constant

* ps version icon

* reflect icon instead

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 52c4ab73a979d114bc3bd073e991da05acded46f
2021-11-18 14:14:41 +01:00
Dean Lee 816fbec7ab replay: fix swsscale crash on nv12->yuv conversion (#22961)
old-commit-hash: ddea21e6482a16cb80c772f5a4fd0a19a038d393
2021-11-17 20:04:45 -08:00
Adeeb Shihadeh 09ad54970c Revert "Revert "Fix build failures in Ubuntu 21.10 (#22952)""
This reverts commit caf0013a20b5330b4b964867adf40294bc407e43.

old-commit-hash: f2a81309e10a93b85d4d68a83392eab9d8df9155
2021-11-17 13:46:38 -08:00
Adeeb Shihadeh 64a51de881 Revert "Fix build failures in Ubuntu 21.10 (#22952)"
This reverts commit e50fe1bb134e652aacd734c40b590b49d443512a.

old-commit-hash: 5e2570dc7555609e855370ab8afdade3640282c4
2021-11-17 11:40:17 -08:00
Jason Shuler 6e92ec1cf2 Fix build failures in Ubuntu 21.10 (#22952)
* Fix compile on Ubuntu 21.10

* Add missing c++17 optional refs in ui
old-commit-hash: 61f9b3e653b08900e6a5011320f383efbe443c14
2021-11-17 18:59:36 +01:00
Willem Melching f076987942 Revert "cameraview: remove glflush, reduce C3 CPU usage (#22949)"
This reverts commit 6edbdc5e535eafaeea4b2e546ccb78ad190d21fb.

old-commit-hash: 372b0f10da2e6cd7c564f15d8769905744c0627c
2021-11-17 16:22:25 +01:00
Dean Lee 1ae1237520 cameraview: remove glflush, reduce C3 CPU usage (#22949)
* remove glflush

* revert cpu
old-commit-hash: 33b1b940671b4c5472e3ec272d6b109087edf73d
2021-11-17 15:37:45 +01:00
sshane 51081766f3 ui: draw all radard leads (#22901)
* draw leads detected from radar since it has a low speed override

* comment

* fill lead_verticies

* fix

* Revert changes

Revert "fix"

This reverts commit 7a478c435a0913e09512801309cf52654f3e17ac.

Revert "fill lead_verticies"

This reverts commit 5cdf265bb98480413a4a83c093b3e00489ba2f94.

Revert "comment"

This reverts commit 24a8a3fc2beef263909810d828d4e4fb5ea576e8.

Revert "draw leads detected from radar since it has a low speed override"

This reverts commit 4679fa5d16c7e961def9aaa52e92fb7d994a830d.

* Revert "Draw model leads (#21864)"

This commit reverts f1003b8c85f73d9fbecd0b83bc9a6de6f46ea0c0
old-commit-hash: fa55dbe98394b5ed39385f26d6314a45fa899c15
2021-11-17 14:29:54 +01:00
Dean Lee ec71ceead3 sidebar: dont update states when hidden (#22948)
old-commit-hash: ddc35826f74ead9f6529910880f9d4f2c16fe727
2021-11-17 14:12:57 +01:00
Dean Lee e72feb1263 framereader: remove memory copy overhead for AVIO (#22894)
* no memory copy

* merge master

better
old-commit-hash: dc8e23c94b29a8c26cc377f8649e497f33036c33
2021-11-17 13:25:40 +01:00
Willem Melching a25637897b nav: render at 20fps instead of 10fps
old-commit-hash: 5648b22833c4ec5eaa1b76af3018f856f6cfaf6f
2021-11-17 12:26:17 +01:00
Dean Lee fb0a97b972 ui: replace nvg transfrom with QTransform (#21968)
old-commit-hash: c35ae999276a8f0385f5e20af06eae9f72c56971
2021-11-17 12:24:37 +01:00
Dean Lee 84097b29df watchdog_kick: non-allocating (#22892)
* non-allocating

* unpack

* call kick every second

* cleanup include
old-commit-hash: ca88a8769be47c8cd27d7290c53b7dfc3b55f0fd
2021-11-17 12:02:31 +01:00
Dean Lee 688b55c8e0 ui: async uploading texture with PBO (#22843)
* async uploading texture using pbo

* use QOpenglBuffer

space

set usage pattern

share context

continue

* space
old-commit-hash: 0dcb089254df1addd20c031f131086632302184f
2021-11-17 12:01:50 +01:00
Dean Lee 0c26c21c9c framereader: support hardware decoding (#22906)
* support hardware accelerated video decoding

* support cuda only

* print decode info

* add yuv flag back

* fix height

* default is cuda

* fallback to CPU decoding

fix memory leak&cleanup

add output
old-commit-hash: 20d3cf1fcb3d5c64d438426b0706b2478b72e3d7
2021-11-17 11:17:59 +01:00