Commit Graph

921 Commits

Author SHA1 Message Date
Dean Lee 3f5c7afba3 replay/camera: fix incorrect console output (#22491)
old-commit-hash: 537dff3ae0
2021-10-08 19:51:23 -07:00
Comma Device 358547e114 remove semicolon
old-commit-hash: 52cd06aa62
2021-10-08 12:21:47 -07:00
Willem Melching 456faf16ab installer: leave some space after strings
old-commit-hash: e788f4f587
2021-10-08 11:27:54 -07:00
Adeeb Shihadeh 87be9258b1 installer: cleanup old cache paths
old-commit-hash: db81bf52ea
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: 91987f38d4
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: d898841e87
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: 5b641379ae
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: 5527736df6
2021-10-07 17:32:16 +02:00
Greg Hogan 95843a6754 replay: print current time when paused (#22468)
old-commit-hash: 188b634222
2021-10-07 10:41:49 +02:00
Adeeb Shihadeh ae93956547 retry submodule checkout on internal installer
old-commit-hash: e424f7182c
2021-10-06 19:45:22 -07:00
Dean Lee 7d67bfa606 repaly: stop publish socket on multiple publishers error (#22449)
old-commit-hash: f7cf4be995
2021-10-06 14:04:51 +02:00
Dean Lee d6614c3c89 test_replay: temporarily comment out some unit tests (#22447)
old-commit-hash: 261d51de41
2021-10-06 12:27:52 +02:00
Dean Lee 11014ca940 replay: cleanup output (#22434)
old-commit-hash: b5988d5601
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: 60b0c43c90
2021-10-05 15:15:33 +02:00
Dean Lee 38617c6c8f FrameReader: increase probesize to 10MB (#22437)
old-commit-hash: 97fc8b941e
2021-10-05 15:15:11 +02:00
Willem Melching 2291683728 replay: do not use OpenCL (#22431)
old-commit-hash: 94afd0ea0f
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: 2253cba98b
2021-10-04 18:00:49 +02:00
Dean Lee 53bec066b6 replay: cleanup console output (#22410)
old-commit-hash: 29b9c8f13b
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: 1eb79d7a59
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: fd801c454a
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: d28b98c602
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: fa8ddd992d
2021-10-04 15:00:57 +02:00
Willem Melching a16e2fba2a ui: only update ignition when panda is connected (#22425)
old-commit-hash: 009e37e797
2021-10-04 14:11:32 +02:00
Willem Melching 10d0b511b5 ui: make OpenGL context current before connecting to VisionIPC
old-commit-hash: 9c771b45fc
2021-10-04 10:37:31 +02:00
Dean Lee 0a1fa4fa7b replay/segment: std::atomic member variables (#22409)
old-commit-hash: a6da064a93
2021-10-02 16:09:39 +02:00
Adeeb Shihadeh 408273df05 update useradmin url
old-commit-hash: c11be0f49a
2021-10-01 17:36:46 -07:00
grekiki 2ea151be3c C++ replay cache folder path / fix (#22396)
old-commit-hash: 4c7acf680c
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: 23ae67bbf9
2021-09-30 20:48:02 -07:00
Jason Wen 3f2e0fc70b UI: whitespace fix (#22383)
old-commit-hash: e797439c5f
2021-09-30 14:45:24 -07:00
Adeeb Shihadeh 26e39eb441 UI: big pairing QR code (#22384)
old-commit-hash: 45409cb4fe
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: a31c6ce3f9
2021-09-30 20:13:46 +02:00
Adeeb Shihadeh 4852437483 update demo route (#22381)
old-commit-hash: dd67dc6b34
2021-09-29 18:51:30 -07:00
Willem Melching a3378ce0f7 replay: fall back to qlog (#22362)
old-commit-hash: b7c64542f4
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: 6881688af2
2021-09-29 17:43:56 +02:00
Dean Lee e5d79759ff c++ replay: more accurate sleep (#22348)
* precise sleep

* cleanup

* continue
old-commit-hash: 318a8ba854
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: a548d4b5b8
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: 4e6ff308a8
2021-09-28 12:24:48 +02:00
Dean Lee bac9a01cb2 load d/e camera by command line flags (#22341)
old-commit-hash: e888a7e939
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: 0d0aad05ce
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: 70e1c9c40c
2021-09-23 22:23:34 -07:00
Jason Wen 3a1b5c7110 Fix small typo in DisableRadar toggle description (#22333)
old-commit-hash: 67c09b4caf
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: 649af76fd4
2021-09-23 17:34:52 -07:00
Willem Melching 06e22360ae Add DisableRadar_Allow param and settings toggle (#22329)
old-commit-hash: 8c01ae5716
2021-09-23 17:19:47 -07:00
Achilles308 6770024b14 UI: re-order sidebar temp wording (#22323)
old-commit-hash: d888ef8f89
2021-09-23 15:14:00 -07:00
Dean Lee f235e39bda rename filereader.cc[h] to logreader.cc[h] (#22279)
old-commit-hash: dff6dbfbe9
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: abffc8b2ad
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: ec67d2b8f5
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: 50ae7dd6a9
2021-09-19 12:24:28 -07:00
Dean Lee e44eabb2f8 replay: don't splits empty strings (#22271)
old-commit-hash: 8eb92a98ba
2021-09-18 22:40:36 -07:00
Dean Lee 969f992d59 replay: remove array subscript (#22268)
old-commit-hash: cb49ceabf0
2021-09-18 18:58:37 -07:00