Commit Graph

1027 Commits

Author SHA1 Message Date
Dean Lee ac179e2c36 qt/settings: reuse params (#23041) 2021-11-26 14:39:25 +01:00
Dean Lee 723c8d6a7c qt/settings: use default parameter for params.get (#23042) 2021-11-26 14:39:04 +01:00
Willem Melching 5069852573 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
2021-11-26 14:38:02 +01:00
eFini 21ff97b8c9 UI: minor changes to make it translation friendly (#23032) 2021-11-25 22:30:07 -08:00
Dean Lee 6964adec39 networking: remove unused #inculde<QMovie> (#23016) 2021-11-23 15:24:28 -08:00
Dean Lee c1f617db46 UI: fix cameraview crash after going offroad in settings window (#23009) 2021-11-22 21:46:46 -08:00
Dean Lee aa0cc260b9 wifiManager/get_response: pass response by const reference (#22997) 2021-11-20 20:19:43 -08:00
Dean Lee 1d2dfab81c replay: add test to check dcam and ecam (#22993) 2021-11-20 18:56:27 -08:00
Dean Lee 9cb46cc4a1 logreader: fix memory leak in Event (#22987) 2021-11-20 11:12:52 +01:00
Dean Lee b399b48f0a ui/settingswindow: set parent for nav_btns. (#22984) 2021-11-19 20:40:46 -08:00
Dean Lee 7ce9ff1b04 ui/device: fix uninitialized variable awake (#22983) 2021-11-19 20:40:29 -08:00
Dean Lee 63779c385d ui: disable toggles while onroad (#22975)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-18 21:45:40 -08:00
Cameron Clough 140c7f430c 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>
2021-11-18 15:53:21 +01:00
eFini 52c4ab73a9 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>
2021-11-18 14:14:41 +01:00
Dean Lee ddea21e648 replay: fix swsscale crash on nv12->yuv conversion (#22961) 2021-11-17 20:04:45 -08:00
Adeeb Shihadeh f2a81309e1 Revert "Revert "Fix build failures in Ubuntu 21.10 (#22952)""
This reverts commit 5e2570dc75.
2021-11-17 13:46:38 -08:00
Adeeb Shihadeh 5e2570dc75 Revert "Fix build failures in Ubuntu 21.10 (#22952)"
This reverts commit 61f9b3e653.
2021-11-17 11:40:17 -08:00
Jason Shuler 61f9b3e653 Fix build failures in Ubuntu 21.10 (#22952)
* Fix compile on Ubuntu 21.10

* Add missing c++17 optional refs in ui
2021-11-17 18:59:36 +01:00
Willem Melching 372b0f10da Revert "cameraview: remove glflush, reduce C3 CPU usage (#22949)"
This reverts commit 33b1b94067.
2021-11-17 16:22:25 +01:00
Dean Lee 33b1b94067 cameraview: remove glflush, reduce C3 CPU usage (#22949)
* remove glflush

* revert cpu
2021-11-17 15:37:45 +01:00
sshane fa55dbe983 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 276b00ccb8
2021-11-17 14:29:54 +01:00
Dean Lee ddc35826f7 sidebar: dont update states when hidden (#22948) 2021-11-17 14:12:57 +01:00
Dean Lee dc8e23c94b framereader: remove memory copy overhead for AVIO (#22894)
* no memory copy

* merge master

better
2021-11-17 13:25:40 +01:00
Willem Melching 5648b22833 nav: render at 20fps instead of 10fps 2021-11-17 12:26:17 +01:00
Dean Lee c35ae99927 ui: replace nvg transfrom with QTransform (#21968) 2021-11-17 12:24:37 +01:00
Dean Lee ca88a8769b watchdog_kick: non-allocating (#22892)
* non-allocating

* unpack

* call kick every second

* cleanup include
2021-11-17 12:02:31 +01:00
Dean Lee 0dcb089254 ui: async uploading texture with PBO (#22843)
* async uploading texture using pbo

* use QOpenglBuffer

space

set usage pattern

share context

continue

* space
2021-11-17 12:01:50 +01:00
Dean Lee 20d3cf1fcb 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
2021-11-17 11:17:59 +01:00
Adeeb Shihadeh 0e35db7c05 UI: fix wrong background on controls unresponsive alert 2021-11-16 13:17:32 -08:00
Dean Lee 9062085043 ui: update params on the show event (#22927) 2021-11-16 12:13:16 -08:00
Willem Melching 9f423a93cd nav: fix receiving navRoute while map is loading (#22929) 2021-11-16 14:27:38 +01:00
HaraldSchafer c9218a55f3 tici: limit brightness with display uptime (#22918)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-15 22:11:17 -08:00
Adeeb Shihadeh 2f90f04f8d UI: fix alert flicker when controlsState not updated (#22921) 2021-11-15 16:27:19 -08:00
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
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
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
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
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
Willem Melching 306df7f94f nav: check valid flag on PositionGeodetic measurement (#22858) 2021-11-11 10:24:10 +01:00
Willem Melching 6ace88a0f1 cache prime status in param (#22850) 2021-11-10 16:05:49 +01:00
eFini 1f106e3725 ui.cc: fix Hardware::TICI() check for screen brightness (#22847) 2021-11-10 10:10:35 +01: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
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
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
Willem Melching 6d9b414c20 soundd: Set volume on receiving carState (#22795) 2021-11-04 21:30:46 -07:00
Dean Lee ff33ca3413 util: remove function to_hex (#22792) 2021-11-04 16:18:01 +01:00