Commit Graph

984 Commits

Author SHA1 Message Date
Dean Lee
00db14af64 cameraview: fix frameskip (#23022)
* fix frameskip

* sync upload->render

* cleanup

* comment

* rename to latest_texture_id
2021-11-29 11:35:34 +01:00
Dean Lee
3fd0264960 refactor httprequest: emit single signals (#23039)
* refactor httprequest

* Trigger Build
2021-11-29 11:19:08 +01:00
Dean Lee
5394fe1ae7 DevicePanel: split long constructor into multiple functions (#23043)
* begin refactor

* split long constructor to multiple functions

* one connection to signal

* merge master
2021-11-29 11:14:34 +01:00
Dean Lee
f5e4867864 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
2021-11-29 11:13:30 +01:00
Dean Lee
a449b856ca framereader: fix crash after fallback to cpu decoding (#23055) 2021-11-28 13:29:40 -08:00
Dean Lee
e376a621ba ui/device: change last_brightness from float to int (#23029) 2021-11-26 14:59:23 +01:00
Dean Lee
5ae5174509 framereader: replace swscale with libyuv, reduce cpu usage by half (#22992)
* use libyuv

* cleanup
2021-11-26 14:41:14 +01:00
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