Commit Graph

886 Commits

Author SHA1 Message Date
Dean Lee 48e07756a2 c++ replay: improve seeking&updating events (#22319)
* improve seeking

* qDebug

* cleanup

* wait on cv

robust

* Trailing underscores for member variables

* group log variables

* small cleanup,remove unnecess std::atomic

* remove debug output

* fix seek problem

* add comment

* better lambda

* faster seek.don't block stream thread if segment already loaded

* remove assert
old-commit-hash: a548d4b5b83fd21cfe7cef7ee282cfb40c0f3345
2021-09-28 12:28:29 +02:00
Dean Lee 9fae8b50f3 c++ replay: chunking and concurrent downloads (#22308)
* download segment files by chunks in multiple threads

* remove easy_handl on aborting

* add test cases

* better error handling

* update test

* cleanup

* add CURLGlobalInitializer

* check http code

* finish
old-commit-hash: 4e6ff308a82532b29a58f281544f9b598244a01d
2021-09-28 12:24:48 +02:00
Dean Lee bac9a01cb2 load d/e camera by command line flags (#22341)
old-commit-hash: e888a7e93984f1cb25a542772fdeec0eea9d5c9b
2021-09-28 11:25:18 +02:00
Adeeb Shihadeh a2e6e1c021 setup: add low voltage warning (#22342)
* setup: add low voltage warning

* read voltage

* fix path
old-commit-hash: 0d0aad05ce8f168b1723fa9c08ed4dbda43d9db5
2021-09-24 14:30:49 -07:00
cydia2020 d3bed07840 UI: Fix mph and wi-fi spelling (#22334)
* display WiFi as Wi-Fi

* fix typo in metric setting description
old-commit-hash: 70e1c9c40c7f2fdc881de31ea5551bc792339e87
2021-09-23 22:23:34 -07:00
Jason Wen 3a1b5c7110 Fix small typo in DisableRadar toggle description (#22333)
old-commit-hash: 67c09b4caf11bfff2ecb527ffb1df5826214a6f9
2021-09-23 19:52:59 -07:00
Adeeb Shihadeh 821f1f6cb6 remove community supported cars from community features (#22330)
* remove community supported cars from community features

* remove bosch and hkg long

* remove test case

* update refs
old-commit-hash: 649af76fd4ade524df8eb6c56cc8bb09b3772e7c
2021-09-23 17:34:52 -07:00
Willem Melching 06e22360ae Add DisableRadar_Allow param and settings toggle (#22329)
old-commit-hash: 8c01ae5716b558039946c07e63d42d16094037d2
2021-09-23 17:19:47 -07:00
Achilles308 6770024b14 UI: re-order sidebar temp wording (#22323)
old-commit-hash: d888ef8f893dbbe417e0772e5586d66f18d78506
2021-09-23 15:14:00 -07:00
Dean Lee f235e39bda rename filereader.cc[h] to logreader.cc[h] (#22279)
old-commit-hash: dff6dbfbe978fb60c50db1f6de96487e24f2ecb6
2021-09-19 15:54:03 -07:00
Dean Lee 2fefa32476 UI: new class ListWidget (#21273)
* ListWidget

* continue

* remove function horizontal_line

* cleanup

* default spacing 25

* fix networkpanel margin on EON

* solid expanding

* 0 width

* cleanup

* apply reviews

* remove function addLayout,make it looks like QLIstWidget

* rename addWidget to addItem

* rebase master

* rebase master

* merge master

* cleanup

* fixed title bar position

* no flash while folding

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: abffc8b2ade75eb9365552cb25a1885442d7e011
2021-09-19 15:14:54 -07:00
Dean Lee e2332a0275 replay: pause/resume using spacebar (#22278)
* pause/resume using spacebar

* Update selfdrive/ui/replay/replay.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: ec67d2b8f5da60fca04eab7a65404e2ca922f103
2021-09-19 14:47:17 -07:00
Dean Lee 5be69694ba replay improvements (#22203)
* refactor replay

* cleanup

small cleanup

* merge 22239

* cleanup

* add optional argument for start time

* small cleaup
old-commit-hash: 50ae7dd6a98fe1e08d5805a4c1d595e7eae30922
2021-09-19 12:24:28 -07:00
Dean Lee e44eabb2f8 replay: don't splits empty strings (#22271)
old-commit-hash: 8eb92a98ba90e6509acd389b0e85c9e6e5555d45
2021-09-18 22:40:36 -07:00
Dean Lee 969f992d59 replay: remove array subscript (#22268)
old-commit-hash: cb49ceabf07425a80a10bf598e7a9521553f6858
2021-09-18 18:58:37 -07:00
Adeeb Shihadeh cfed62dd36 replay: add nice arg parser (#22264)
* replay: add nice arg parser

* demo

* cleanup
old-commit-hash: f49e7629ee68c283ac414fee45307445cdf1e409
2021-09-17 00:33:23 -07:00
Dean Lee 303cb411b4 replay: thread-safe seek (#22228)
old-commit-hash: f5aa3a30c94386c3761e1a01ac15815034b5ebaf
2021-09-16 23:45:46 -07:00
Adeeb Shihadeh 757e768d9f UI: show steering wheel icon while engaged or engageable
old-commit-hash: 78b97eaa3611e2bcf27f6363a1574c44bd42c760
2021-09-16 23:43:19 -07:00
Adeeb Shihadeh b3a1f2c67d UI: fix getting stuck after vipc recv timeout
old-commit-hash: 86beb9a81afcc940f780f56dab3c238f024dfaef
2021-09-15 20:31:24 -07:00
George Hotz 0fe0095d9f demo route note in replay
old-commit-hash: 8d554abbf7acd9c58ae34ce67a9a6fbff7f0d0fa
2021-09-14 13:53:49 -07:00
Willem Melching c3a226afbf Revert "ui: use C3 video sizes by default on PC"
This reverts commit 71484f14c0d13f9b3eb9bece3629726e834ea304.

old-commit-hash: abae4ef72c462eef55c8a35f14365ed8b94c2bcc
2021-09-14 11:48:34 -07:00
Willem Melching b85209979a ui: use C3 video sizes by default on PC
old-commit-hash: cf4cd3b6935f7d0fcfc35ef0e9ea4ec0aae7155f
2021-09-14 11:27:34 -07:00
Dean Lee 1e1c4fcd83 fix Replay::mergeEvents: use std::end() (#22215)
old-commit-hash: a89bdb6a05b7c5302702030ee3981aa2f7d7f941
2021-09-13 09:49:32 -07:00
Dean Lee 1fd8466af0 replay: unlock mutex before sleep (#22213)
old-commit-hash: 365e8bfd93046dc16caf23867ea094d2fe0f8e6a
2021-09-13 00:57:03 -07:00
Dean Lee b8c56b5b75 replay: fix bugs in merging events (#22205)
old-commit-hash: eb4a28af1164d4d615a9bcdd4711e0d539bda7ed
2021-09-12 16:29:37 -07:00
Dean Lee 66c6adc436 UI: lazy onboarding widgets init (#21780)
* don't show onboarding on startup

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2d640e25c3b95ebaef137c550907e29eb50bc837
2021-09-11 18:18:58 -07:00
Dean Lee 7100381a02 replay: thread safe merge & free logs (#22196)
old-commit-hash: a1a0201069aade71dc16e663073f2b40955752b3
2021-09-11 17:35:04 -07:00
Dean Lee 0d226299e7 test_replay.cc: temporarily comment out the rand seek test (#22192)
* Temporarily comment out the rand seek test

* enable ci

* trigger ci

* trigger ci

* trigger ci

* trigger ci

* trigger ci
old-commit-hash: f3683dd4cbead3e090f48bbec60f35483c194193
2021-09-10 21:53:46 -07:00
Adeeb Shihadeh 9193e1afa1 Unify neos/agnos updaters (#22109)
* start moving neos updater

* downloading

* ui

* move recovery

* resuming

* add verification

* fix up launch

* test

* update updater

* fix mypy

* fake updater

* review suggestions

* more tests

* abc

* update bin

* raise

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b3705ede5e9dbc29dcf5ea02bb257a8f576a0556
2021-09-10 17:03:54 -07:00
Dean Lee 1d5ca75029 FrameReader: do not depend on Qtunit tests (#21379)
* add timeout and test case

* remove useless comment

* reduce to 1s

* fix gotframe fail when Duplicate POC in a sequence

* cleanup

* remove space

* fix
old-commit-hash: 81a128cd764ef74a0d50be464dea653f46f82998
2021-09-09 13:40:12 -07:00
Dean Lee f4d8621be1 Qt/onroad: use CameraViewWidget (#21821)
* use CameraViewWidget

* no timer, updateFrame after frameSwapped

* use QOpenGLShaderProgram

* merge master

* remove that

* new function setStreamType

* continue

* remove showEvent

* cleanup

* cleanup

* little more

* fix black screen on startup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: a034926264cd1025c69d6ceb3fe444965f960b75
2021-09-08 13:13:27 -07:00
Adeeb Shihadeh 706542a7b2 nav: add button to clear current route (#22167)
* nav: add button to clear current route

* fix scroll

* retab

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: d5475ba9462ad9c6a18db05e96a4fa9d3bf9772a
2021-09-07 17:39:24 -07:00
Jason Young 01a10fe8bd Fixes for C3 LTE connection being deleted (#22129)
* Fix for LTE connection being deleted

* also fix newConnection

* simplify
old-commit-hash: 251a074b20432e65d33c803a08d2c61826844737
2021-09-07 09:54:12 -07:00
Adeeb Shihadeh b3f5ad454e nav: set map widget parent
old-commit-hash: d5face26a82b717ce694aa848641b879076dfe1f
2021-09-06 22:51:09 -07:00
Willem Melching 9373ea74be map fixes, #22105 (#22152)
old-commit-hash: 576459ca4595e5baaf7db23a8873a9fb0bddd272
2021-09-06 16:53:09 -07:00
Dean Lee 6e5f390994 c3 keyboard: fix button status not updated (#22127)
old-commit-hash: e284f515b9842a761f2b15b8d2b466d59c722e24
2021-09-06 12:24:31 -07:00
Dean Lee 36839399f2 C3: Fix keyboard buttons on the right getting stuck in pressed state (#22050)
* fix keyboard state stuck

* remove popup flag

* update in time
old-commit-hash: 5fea367fc98dd427497a93a9d1e73b2c2d4a2271
2021-09-03 22:24:37 -07:00
Adeeb Shihadeh 4a499114b2 only toggle sidebar visibility when clicking on the onroad widget
old-commit-hash: ee7682ae4a53d8b85872cf1f06e614c740edf9c9
2021-09-03 15:45:02 -07:00
Adeeb Shihadeh d9cbac72db fetch all branches on internal installer
old-commit-hash: 145fd88debceea1b16a30ef0f234ab84f4157ad5
2021-09-02 12:09:42 -07:00
sshane 3150250f00 UI: roaming toggle (#21750)
* roaming toggle

* clean up

* only tici

* fix order

* move to wifiManager

* should be working

* clean up

clean up

* use map icon

* move to advanced settings

* clean up

* temporarily change home-only

* keep setting for now

* set both to defaults in case ui doesn't start

* knownConnections stores conn names

* Revert "knownConnections stores conn names"

This reverts commit 4466a029a38f8c89876fad3c221e95e8fc572ded.

* save lteConnectionPath instead

* use the if statement

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6fad0055b464492d6457597116125f50155b74a3
2021-09-01 14:33:06 -07:00
Dean Lee 45ea7cc5e4 driverview.cc: cleanup paintEvent (#21531)
old-commit-hash: 30ec2bc403b9741520b0f580f8b78752cd111d8b
2021-09-01 13:56:07 -07:00
Dean Lee ae5c6aeae6 HomeWindow: cleanup mousePressEvent (#21683)
* cleanup mousePressEvent

* show/hide map in onroad

* merge master
old-commit-hash: 579fb8072a002dc0794fe8584ca0f0edc6682a35
2021-09-01 13:30:33 -07:00
Dean Lee bdc758e769 ui: clickable ElidedLabel (#21773)
* ElidedButton

* rename to ClickableLabel

* move to ElidedLabel
old-commit-hash: 1786416e3cefcd6562f18954aa81b759d0fcf2f4
2021-08-30 22:16:48 -07:00
Dean Lee ecf3ee7603 loggerd: create encoder threads from cameras_logged (#21875)
old-commit-hash: d9baaf7eb90f0815c4d635d33244975ad71876d2
2021-08-30 19:33:00 -07:00
ambientocclusion 488f3b2624 Fixed build issues on macOS (#22075)
* Fixed deprecated enum value

* Changed to build Qt replay on macOS
old-commit-hash: ed271911c218e37eb4eac8bca4e0e7b3f8acce06
2021-08-30 09:18:14 -07:00
Adeeb Shihadeh 8cbf48b550 add fit to widget option to camera view (#22056)
* add fit to widget option to camera view

* add clicked signal

* cleanup

* use release for driverview

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 86a73497de4618c7a83bfa5038fa2d27e0aadec2
2021-08-28 13:08:48 -07:00
Adeeb Shihadeh de3bb92025 installer: add cache path on userdata (#22045)
* installer: add cache path on userdata

* keep legacy as is

* only copy

* print cache path

* comment
old-commit-hash: 6c25b44369228915c825bbd1b178dc32f8505395
2021-08-26 10:43:47 -07:00
Adeeb Shihadeh e4bd887f5c UI: show thermal status instead of ambient temp (#22041)
* no number

* space evenly
old-commit-hash: 084b932eebe41d94ab21055b79429c9aab05e551
2021-08-25 11:01:04 -07:00
Dean Lee b558bbabab Alert::equal: pass Alert by const reference (#22044)
old-commit-hash: dec9addce019adde560f3b4bb2ca2f29ea502f32
2021-08-25 09:33:27 -07:00
Adeeb Shihadeh 2dd317bb03 UI: use rcc on all platforms (#21966)
old-commit-hash: 9c7c4657f09a18293fef153612ff40d28ca6a848
2021-08-23 20:12:40 -07:00