Commit Graph

1051 Commits

Author SHA1 Message Date
Dean Lee 53c7684956 OnroadHud: update engageability and DM icons at 2Hz (#23134)
old-commit-hash: 5ab6bff670
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: ad09507e1b
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: 6951b3271d
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: 37e2de2244
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: 35885745f1
2021-12-02 16:40:10 -08:00
Adeeb Shihadeh a8332128aa soundd: max volume at 20m/s
old-commit-hash: bc4ae3f587
2021-12-02 13:53:00 -08:00
Dean Lee 1b715dff6b CameraView: use unique_ptr for CameraView::program (#23096)
old-commit-hash: 8c6242888c
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: faecf4e4c1
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: 3b367e6872
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: e679d05d9e
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: eb0724d7e3
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: 348d2d2b0d
2021-11-29 18:14:59 -08:00
Dean Lee db022f7816 ui: singleton networkAccessManager (#22994)
old-commit-hash: b2bcacf590
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: dbec761941
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: 296c4076a2
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: 00db14af64
2021-11-29 11:35:34 +01:00
Dean Lee 67c748d62a refactor httprequest: emit single signals (#23039)
* refactor httprequest

* Trigger Build
old-commit-hash: 3fd0264960
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: 5394fe1ae7
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: f5e4867864
2021-11-29 11:13:30 +01:00
Dean Lee 4ac4b61272 framereader: fix crash after fallback to cpu decoding (#23055)
old-commit-hash: a449b856ca
2021-11-28 13:29:40 -08:00
Dean Lee 5f299f7f3e ui/device: change last_brightness from float to int (#23029)
old-commit-hash: e376a621ba
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: 5ae5174509
2021-11-26 14:41:14 +01:00
Dean Lee 89fcaad057 qt/settings: reuse params (#23041)
old-commit-hash: ac179e2c36
2021-11-26 14:39:25 +01:00
Dean Lee e8b9513fcf qt/settings: use default parameter for params.get (#23042)
old-commit-hash: 723c8d6a7c
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: 5069852573
2021-11-26 14:38:02 +01:00
eFini 6558e04dcb UI: minor changes to make it translation friendly (#23032)
old-commit-hash: 21ff97b8c9
2021-11-25 22:30:07 -08:00
Dean Lee b2e59c0bfe networking: remove unused #inculde<QMovie> (#23016)
old-commit-hash: 6964adec39
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: c1f617db46
2021-11-22 21:46:46 -08:00
Dean Lee 31b63386f8 wifiManager/get_response: pass response by const reference (#22997)
old-commit-hash: aa0cc260b9
2021-11-20 20:19:43 -08:00
Dean Lee 8f9ca8d3f6 replay: add test to check dcam and ecam (#22993)
old-commit-hash: 1d2dfab81c
2021-11-20 18:56:27 -08:00
Dean Lee 2d8780e5c6 logreader: fix memory leak in Event (#22987)
old-commit-hash: 9cb46cc4a1
2021-11-20 11:12:52 +01:00
Dean Lee 05b2ff7f26 ui/settingswindow: set parent for nav_btns. (#22984)
old-commit-hash: b399b48f0a
2021-11-19 20:40:46 -08:00
Dean Lee 3492b1290f ui/device: fix uninitialized variable awake (#22983)
old-commit-hash: 7ce9ff1b04
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: 63779c385d
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: 140c7f430c
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: 52c4ab73a9
2021-11-18 14:14:41 +01:00
Dean Lee 816fbec7ab replay: fix swsscale crash on nv12->yuv conversion (#22961)
old-commit-hash: ddea21e648
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: f2a81309e1
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: 5e2570dc75
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: 61f9b3e653
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: 372b0f10da
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: 33b1b94067
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: fa55dbe983
2021-11-17 14:29:54 +01:00
Dean Lee ec71ceead3 sidebar: dont update states when hidden (#22948)
old-commit-hash: ddc35826f7
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: dc8e23c94b
2021-11-17 13:25:40 +01:00
Willem Melching a25637897b nav: render at 20fps instead of 10fps
old-commit-hash: 5648b22833
2021-11-17 12:26:17 +01:00
Dean Lee fb0a97b972 ui: replace nvg transfrom with QTransform (#21968)
old-commit-hash: c35ae99927
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: ca88a8769b
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: 0dcb089254
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: 20d3cf1fcb
2021-11-17 11:17:59 +01:00