Commit Graph

906 Commits

Author SHA1 Message Date
Dean Lee 60b0c43c90 replay: refresh segment window after current segment is changed by seek (#22436) 2021-10-05 15:15:33 +02:00
Dean Lee 97fc8b941e FrameReader: increase probesize to 10MB (#22437) 2021-10-05 15:15:11 +02:00
Willem Melching 94afd0ea0f replay: do not use OpenCL (#22431) 2021-10-04 19:43:52 +02:00
Dean Lee 2253cba98b 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
2021-10-04 18:00:49 +02:00
Dean Lee 29b9c8f13b replay: cleanup console output (#22410) 2021-10-04 17:15:03 +02:00
Dean Lee 1eb79d7a59 c++ replay: publish all frames in CameraServer (#22378)
* cameraserver

* support yuv

* init camera server in start()

* trigger ci
2021-10-04 16:45:28 +02:00
Dean Lee fd801c454a c++ replay: get socket name from capnp::Schema (#22367)
* get socket name from canp::Schema

* use vector
2021-10-04 15:44:06 +02:00
Dean Lee d28b98c602 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
2021-10-04 15:39:59 +02:00
Dean Lee fa8ddd992d 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.
2021-10-04 15:00:57 +02:00
Willem Melching 009e37e797 ui: only update ignition when panda is connected (#22425) 2021-10-04 14:11:32 +02:00
Willem Melching 9c771b45fc ui: make OpenGL context current before connecting to VisionIPC 2021-10-04 10:37:31 +02:00
Dean Lee a6da064a93 replay/segment: std::atomic member variables (#22409) 2021-10-02 16:09:39 +02:00
Adeeb Shihadeh c11be0f49a update useradmin url 2021-10-01 17:36:46 -07:00
grekiki 4c7acf680c C++ replay cache folder path / fix (#22396) 2021-10-01 17:32:41 +02:00
Adeeb Shihadeh 23ae67bbf9 UI: auto wide detection on PC (#22392)
* UI: auto wide detection on PC

* invert width

* cleanup
2021-09-30 20:48:02 -07:00
Jason Wen e797439c5f UI: whitespace fix (#22383) 2021-09-30 14:45:24 -07:00
Adeeb Shihadeh 45409cb4fe UI: big pairing QR code (#22384) 2021-09-30 14:00:52 -07:00
Willem Melching a31c6ce3f9 tools: make auth optional for public routes (#22386)
* tools: make auth optional for public routes

* handle 403

* show warning from c++ replay
2021-09-30 20:13:46 +02:00
Adeeb Shihadeh dd67dc6b34 update demo route (#22381) 2021-09-29 18:51:30 -07:00
Willem Melching b7c64542f4 replay: fall back to qlog (#22362) 2021-09-29 17:44:10 +02:00
Willem Melching 6881688af2 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
2021-09-29 17:43:56 +02:00
Dean Lee 318a8ba854 c++ replay: more accurate sleep (#22348)
* precise sleep

* cleanup

* continue
2021-09-29 16:59:12 +02:00
Dean Lee a548d4b5b8 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
2021-09-28 12:28:29 +02:00
Dean Lee 4e6ff308a8 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
2021-09-28 12:24:48 +02:00
Dean Lee e888a7e939 load d/e camera by command line flags (#22341) 2021-09-28 11:25:18 +02:00
Adeeb Shihadeh 0d0aad05ce setup: add low voltage warning (#22342)
* setup: add low voltage warning

* read voltage

* fix path
2021-09-24 14:30:49 -07:00
cydia2020 70e1c9c40c UI: Fix mph and wi-fi spelling (#22334)
* display WiFi as Wi-Fi

* fix typo in metric setting description
2021-09-23 22:23:34 -07:00
Jason Wen 67c09b4caf Fix small typo in DisableRadar toggle description (#22333) 2021-09-23 19:52:59 -07:00
Adeeb Shihadeh 649af76fd4 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
2021-09-23 17:34:52 -07:00
Willem Melching 8c01ae5716 Add DisableRadar_Allow param and settings toggle (#22329) 2021-09-23 17:19:47 -07:00
Achilles308 d888ef8f89 UI: re-order sidebar temp wording (#22323) 2021-09-23 15:14:00 -07:00
Dean Lee dff6dbfbe9 rename filereader.cc[h] to logreader.cc[h] (#22279) 2021-09-19 15:54:03 -07:00
Dean Lee abffc8b2ad 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>
2021-09-19 15:14:54 -07:00
Dean Lee ec67d2b8f5 replay: pause/resume using spacebar (#22278)
* pause/resume using spacebar

* Update selfdrive/ui/replay/replay.cc

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

* cleanup

small cleanup

* merge 22239

* cleanup

* add optional argument for start time

* small cleaup
2021-09-19 12:24:28 -07:00
Dean Lee 8eb92a98ba replay: don't splits empty strings (#22271) 2021-09-18 22:40:36 -07:00
Dean Lee cb49ceabf0 replay: remove array subscript (#22268) 2021-09-18 18:58:37 -07:00
Adeeb Shihadeh f49e7629ee replay: add nice arg parser (#22264)
* replay: add nice arg parser

* demo

* cleanup
2021-09-17 00:33:23 -07:00
Dean Lee f5aa3a30c9 replay: thread-safe seek (#22228) 2021-09-16 23:45:46 -07:00
Adeeb Shihadeh 78b97eaa36 UI: show steering wheel icon while engaged or engageable 2021-09-16 23:43:19 -07:00
Adeeb Shihadeh 86beb9a81a UI: fix getting stuck after vipc recv timeout 2021-09-15 20:31:24 -07:00
George Hotz 8d554abbf7 demo route note in replay 2021-09-14 13:53:49 -07:00
Willem Melching abae4ef72c Revert "ui: use C3 video sizes by default on PC"
This reverts commit cf4cd3b693.
2021-09-14 11:48:34 -07:00
Willem Melching cf4cd3b693 ui: use C3 video sizes by default on PC 2021-09-14 11:27:34 -07:00
Dean Lee a89bdb6a05 fix Replay::mergeEvents: use std::end() (#22215) 2021-09-13 09:49:32 -07:00
Dean Lee 365e8bfd93 replay: unlock mutex before sleep (#22213) 2021-09-13 00:57:03 -07:00
Dean Lee eb4a28af11 replay: fix bugs in merging events (#22205) 2021-09-12 16:29:37 -07:00
Dean Lee 2d640e25c3 UI: lazy onboarding widgets init (#21780)
* don't show onboarding on startup

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-11 18:18:58 -07:00
Dean Lee a1a0201069 replay: thread safe merge & free logs (#22196) 2021-09-11 17:35:04 -07:00
Dean Lee f3683dd4cb 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
2021-09-10 21:53:46 -07:00