Commit Graph

914 Commits

Author SHA1 Message Date
Dean Lee 0f49ecbff7 replay: simplify seek&merge (#22463)
* simplify seek&merge

* update test cases

update test cases

* cleanup test cases

* new function currentSeconds

* add TODO

* thread safe publishFrame

* cleanup

* fix 'at x S' not printed if seek back to old time

* exit replay if failed to load route

* move out setCurrentSegment from if statement

* cleanup

* use std::find

* const variables
old-commit-hash: 5527736df6ffb1f94be48d6a84245165fdf0cac0
2021-10-07 17:32:16 +02:00
Greg Hogan 95843a6754 replay: print current time when paused (#22468)
old-commit-hash: 188b634222bb97af08afe4a37028a5e9b64d499b
2021-10-07 10:41:49 +02:00
Adeeb Shihadeh ae93956547 retry submodule checkout on internal installer
old-commit-hash: e424f7182cb01bb4341849aba5be2cb0583fcc72
2021-10-06 19:45:22 -07:00
Dean Lee 7d67bfa606 repaly: stop publish socket on multiple publishers error (#22449)
old-commit-hash: f7cf4be9958b720b8d072e44c754a058a38045dc
2021-10-06 14:04:51 +02:00
Dean Lee d6614c3c89 test_replay: temporarily comment out some unit tests (#22447)
old-commit-hash: 261d51de414b9cb1001639e513b8182ac3682e33
2021-10-06 12:27:52 +02:00
Dean Lee 11014ca940 replay: cleanup output (#22434)
old-commit-hash: b5988d56013f05429e03c79621be9e15ad3e0806
2021-10-05 15:15:46 +02:00
Dean Lee 3df339e1ed replay: refresh segment window after current segment is changed by seek (#22436)
old-commit-hash: 60b0c43c9061467e81d6bf3d35fb2a67c8d48f70
2021-10-05 15:15:33 +02:00
Dean Lee 38617c6c8f FrameReader: increase probesize to 10MB (#22437)
old-commit-hash: 97fc8b941e6144a395a93c09a0c90c53a8311d88
2021-10-05 15:15:11 +02:00
Willem Melching 2291683728 replay: do not use OpenCL (#22431)
old-commit-hash: 94afd0ea0f8bc17fc9d24e122f6447116ca75525
2021-10-04 19:43:52 +02:00
Dean Lee 7b3200362b c++ replay: graceful shutdown (#22280)
* graceful shutdown

* reset termios

* continue

* call clear in dctor

* unpause

* delete vipc_server

* relase context

* notify_one

* merge master

* merge master

* print vipc stop listen before shutdown down
old-commit-hash: 2253cba98bcc1cf5799567fc9050f10871ddce1d
2021-10-04 18:00:49 +02:00
Dean Lee 53bec066b6 replay: cleanup console output (#22410)
old-commit-hash: 29b9c8f13bf7c56c31289c35095dc73057267903
2021-10-04 17:15:03 +02:00
Dean Lee a8c5acb884 c++ replay: publish all frames in CameraServer (#22378)
* cameraserver

* support yuv

* init camera server in start()

* trigger ci
old-commit-hash: 1eb79d7a59a36e75ef2ccb1a8b1cea084784fc43
2021-10-04 16:45:28 +02:00
Dean Lee 2dc5a00e3d c++ replay: get socket name from capnp::Schema (#22367)
* get socket name from canp::Schema

* use vector
old-commit-hash: fd801c454abd302e6731fa9abbbc3d4cf74b6646
2021-10-04 15:44:06 +02:00
Dean Lee 66ca3985c9 replay : move utility functions into separate file (#22414)
* move functions into util

* read bz2 into stream

* pre-decompress log in the download thread

* cleanup logreader

* cache sha256 path

* use readBZ2file in test_logger

* Revert "cache sha256 path"

This reverts commit 60459d3ea09a2c80f4560cf95b1ce7d6af59f06d.

* use macro

* use ostringstream

* cleanup readBZ2File

* move precise_nano_sleep into util
old-commit-hash: d28b98c60244e2bb9e32810e881ea445a912606c
2021-10-04 15:39:59 +02:00
Dean Lee 430e9808b3 c++ replay: more robust seek (#22375)
* skip invalid segment

* test seek

* fix wrong cur_mono_time when route_start_ts is 0

* don't notify stream thread if current segment not merged

* continue merge next segment if current is invalid

* cleanup seekTo

* continue

* fix seek cross-boundary

* new demo route has 11 segments

* continue

* fix cross-boundary

* cleanup & better test cases

cleanup

remoe &

typo

update comment

* update test

* reserve space for new_events

* parallel sorting

* usleep(0)

* Revert "parallel sorting"

This reverts commit d7d1b42f49944aef0b6ca2962e45a7f5318a1152.
old-commit-hash: fa8ddd992d6838e0e8f0f1178c26ec272c40f943
2021-10-04 15:00:57 +02:00
Willem Melching a16e2fba2a ui: only update ignition when panda is connected (#22425)
old-commit-hash: 009e37e797425581c3f5cb787700a95a14a8a8f7
2021-10-04 14:11:32 +02:00
Willem Melching 10d0b511b5 ui: make OpenGL context current before connecting to VisionIPC
old-commit-hash: 9c771b45fcb56197f5f0680690c372199736fb87
2021-10-04 10:37:31 +02:00
Dean Lee 0a1fa4fa7b replay/segment: std::atomic member variables (#22409)
old-commit-hash: a6da064a93691779a7367e10487c2837a01cd8af
2021-10-02 16:09:39 +02:00
Adeeb Shihadeh 408273df05 update useradmin url
old-commit-hash: c11be0f49a848ba36a183172038b661a554d2a15
2021-10-01 17:36:46 -07:00
grekiki 2ea151be3c C++ replay cache folder path / fix (#22396)
old-commit-hash: 4c7acf680cc29537ad73a51f8ce32253306cac15
2021-10-01 17:32:41 +02:00
Adeeb Shihadeh 361ee0e83c UI: auto wide detection on PC (#22392)
* UI: auto wide detection on PC

* invert width

* cleanup
old-commit-hash: 23ae67bbf95fd95e9a092ca19bd3391a2f16f453
2021-09-30 20:48:02 -07:00
Jason Wen 3f2e0fc70b UI: whitespace fix (#22383)
old-commit-hash: e797439c5f8d924ec5fd8b32b9a71e1c65c07ea1
2021-09-30 14:45:24 -07:00
Adeeb Shihadeh 26e39eb441 UI: big pairing QR code (#22384)
old-commit-hash: 45409cb4fe485dc12168dc9740eb561ffedebe4c
2021-09-30 14:00:52 -07:00
Willem Melching f4ac70557b tools: make auth optional for public routes (#22386)
* tools: make auth optional for public routes

* handle 403

* show warning from c++ replay
old-commit-hash: a31c6ce3f9c352dfe683cc7fa26e1cf630e105e1
2021-09-30 20:13:46 +02:00
Adeeb Shihadeh 4852437483 update demo route (#22381)
old-commit-hash: dd67dc6b34e4b70af6f7ef13b2a701aad2512174
2021-09-29 18:51:30 -07:00
Willem Melching a3378ce0f7 replay: fall back to qlog (#22362)
old-commit-hash: b7c64542f4b521e10725f34767079cd1f50f6496
2021-09-29 17:44:10 +02:00
Willem Melching 04e5fdb931 replay: send frames based on encodeIdx packet (#22361)
* send frames based on encodeIdx

* use start of frame time if set

* also use end of frame if set

* fix timestamp for encode packets

* handle all cameras

* add comment

* add twice
old-commit-hash: 6881688af2c2a438a90d211a3e0fedad438edd17
2021-09-29 17:43:56 +02:00
Dean Lee e5d79759ff c++ replay: more accurate sleep (#22348)
* precise sleep

* cleanup

* continue
old-commit-hash: 318a8ba8546043f7cde018561d8a62ce2f56946d
2021-09-29 16:59:12 +02:00
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