Commit Graph

921 Commits

Author SHA1 Message Date
Dean Lee 3f5c7afba3 replay/camera: fix incorrect console output (#22491)
old-commit-hash: 537dff3ae0bac7ca3d40f1441297cc146dc1a9bb
2021-10-08 19:51:23 -07:00
Comma Device 358547e114 remove semicolon
old-commit-hash: 52cd06aa62a5bfc6bd6d363381f7df608cdd4a4d
2021-10-08 12:21:47 -07:00
Willem Melching 456faf16ab installer: leave some space after strings
old-commit-hash: e788f4f587be91fdd1bcae89078fcea788d6a13d
2021-10-08 11:27:54 -07:00
Adeeb Shihadeh 87be9258b1 installer: cleanup old cache paths
old-commit-hash: db81bf52ea861cc36ea7151ae87b847c07fcb7f9
2021-10-08 10:42:41 -07:00
Robbe Derks 58c99158a1 Make pandaState and safetyMode a list (#22454)
* wip: move to pandaStates

* bump cereal

* wip: SafetyMode struct

* move to safetyMode

* fix typo

* this can be None

* fix potential empty pandaStates list

* fix thermald

* fix controlsd

* rename safetyModes to safetyConfigs

* update process_replay

* fix test_models

* bump cereal
old-commit-hash: 91987f38d425e2a5dc61d09571933cffb9536113
2021-10-08 17:54:34 +02:00
Willem Melching 1c5ffc32ea Change APN from settings (#22440)
* Change APN from settings

* subtext

* one function

* bring connection down and up

* fix adapter type

* trim input

* fix scrolling in scanning state

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d898841e87d548cd057a7546b1c28be36eab0f1a
2021-10-07 23:47:23 -07:00
Adeeb Shihadeh 782d7023d2 phonelibs -> third_party (#22477)
* git mv to third_party

* find and replace

* fix release tests

* update pre-commit

* update tici bins

* update eon bins

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 5b641379ae04d3408093381629b9d60dee81da27
2021-10-07 16:32:44 -07:00
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