Commit Graph

874 Commits

Author SHA1 Message Date
Dean Lee
43a846843f c++ replay: support local routes (#22288)
* support local route

* kind of works

* works

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-10-12 00:51:22 -07:00
Adeeb Shihadeh
ff771d9fcf add tool to watch all three beautiful cameras (#22528) 2021-10-12 00:23:31 -07:00
Adeeb Shihadeh
f1fcf17c4c replay: support old, pre-pandaStates routes (#22525)
* replay: support old, pre-pandaStates routes

* cleanup
2021-10-11 15:58:44 -07:00
Dean Lee
c801c65b9d replay: get EncoderIndex from capnp::AnyStruct (#22518)
* get EncoderIndex from capnp::AnyStruct

* const
2021-10-11 09:57:35 -07:00
Dean Lee
afaf235acd UI: fix stuck in visionIPC receive timeout (#22450) 2021-10-09 14:43:27 -07:00
Dean Lee
537dff3ae0 replay/camera: fix incorrect console output (#22491) 2021-10-08 19:51:23 -07:00
Comma Device
52cd06aa62 remove semicolon 2021-10-08 12:21:47 -07:00
Willem Melching
e788f4f587 installer: leave some space after strings 2021-10-08 11:27:54 -07:00
Adeeb Shihadeh
db81bf52ea installer: cleanup old cache paths 2021-10-08 10:42:41 -07:00
Robbe Derks
91987f38d4 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
2021-10-08 17:54:34 +02:00
Willem Melching
d898841e87 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>
2021-10-07 23:47:23 -07:00
Adeeb Shihadeh
5b641379ae 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>
2021-10-07 16:32:44 -07:00
Dean Lee
5527736df6 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
2021-10-07 17:32:16 +02:00
Greg Hogan
188b634222 replay: print current time when paused (#22468) 2021-10-07 10:41:49 +02:00
Adeeb Shihadeh
e424f7182c retry submodule checkout on internal installer 2021-10-06 19:45:22 -07:00
Dean Lee
f7cf4be995 repaly: stop publish socket on multiple publishers error (#22449) 2021-10-06 14:04:51 +02:00
Dean Lee
261d51de41 test_replay: temporarily comment out some unit tests (#22447) 2021-10-06 12:27:52 +02:00
Dean Lee
b5988d5601 replay: cleanup output (#22434) 2021-10-05 15:15:46 +02:00
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