Commit Graph

135 Commits

Author SHA1 Message Date
Dean Lee a421c9464e replay: sync vision buffer (#26904) 2023-01-09 13:48:04 -08:00
Dean Lee 2204a7153f replay: remove need for fake dongle id (#26899) 2023-01-08 15:51:08 -08:00
Dean Lee 2c7df6efc8 replay: show absolute time (#26869) 2023-01-07 11:07:30 -08:00
Dean Lee 88fd2ea84f replay: add option --prefix to set OPENPILOT_PREFIX (#26862) 2023-01-02 13:31:08 -08:00
Dean Lee b5a2dfa93e replay: only keep one init_data in merged events (#26863)
don't merge init_data
2023-01-02 11:57:51 -08:00
Dean Lee 6431f79fd2 Replay: add option -c to set segment cache size (#26782)
add option to set cache size
2022-12-13 00:20:51 -08:00
Dean Lee f49520db0f Cabana: display all logs in log view (#26659)
* fetch more

* clear log in showevent

* fix wrong time value

* check list size

* fix canmessages::process

* cache all events

* improve segment cache

* cleanup
2022-12-12 14:47:45 -08:00
Dean Lee 881c15c2a6 Replay: fix possible segfault on exit (#26768) 2022-12-12 10:25:49 -08:00
Shane Smiskol df6bd0f392 cleanup: deprecate lqrState field (#26745)
* first commit

* clean up

* bump cereal

* revert angle controller

* revert

* clean up

* revert

* bump

* bumptomaster
2022-12-09 18:43:45 -08:00
Dean Lee b513b83221 Replay: remove wrong text in TIME (#26692)
remove wrong time string
2022-12-04 11:30:31 -08:00
Dean Lee 0ff703d82f Replay: fix SEGFAULT in buildTimeline if segments are not continuous. (#26691)
fix segfault in buildtimeline
2022-12-04 11:28:40 -08:00
Dean Lee 2b4b0cc67f Replay: fixed the freq of video and events are unstable after changing the replay speed (#26559)
fix freq is unstable after changing the replay speed
2022-11-21 10:47:58 -08:00
Dean Lee 062267f469 replay: reduce test running time (#26160) 2022-10-23 13:57:32 -07:00
Adeeb Shihadeh 755a6c0a46 Revert "tools/replay: reduce test running time (#26110)"
This reverts commit 6d07268ee5.
2022-10-17 19:15:21 -07:00
Dean Lee 6d07268ee5 tools/replay: reduce test running time (#26110) 2022-10-17 10:39:07 -07:00
Dean Lee b31932382d cabana: increase replay's segment cache limit & add setting dialog (#26019)
* increase replay's segment cache limit

* todo

* add settings dialog

blank line

typo
2022-10-12 19:31:26 -07:00
Cameron Clough 8b5ebbddf6 build extras together (#26051)
* build extras together

* don't check here either
2022-10-12 15:14:02 -07:00
Dean Lee 0fa1588f6c Cabana: stable initial release (#26004)
* increase form size & fix wrong charts number

* set max axisy to 1.0 if no value

* show 'close' button in floating window

* alwasy show scroll bar

* complete the logs

* more

* increase size to 50

* keep logs for all messages

* more

* rename signal

* better height

* avoid flicker

* dont call setupdatesenabled

* filter dbc files bye typing

* remove all charts if dbc file changed

* fix wrong idx

* bolder dbc filename

* update chart if signal has been edited

* new signals signalAdded,signalUpdated

* split class Parser into CanMessages and DBCManager

* cleanup

* updateState after set message

* cleanup

* emit msgUpdated

* clear history log if selected range changed

* always update time

* change title layout

* show selected range

hide title bar if no charts

less space between title and chart

* custome historylogmodel for extreme fast update

* move historylog to seperate file

* 2 decimal

* cleanup

cleanup

* left click on the chart to set start time

* todo

* show tooltip for header item&cleanup binaryview

add hline to signal form

* better paint

* cleanup signals/slots

* better range if min==max

* set historylog's minheight to 300

* 3x faster,sortable message list.

* zero copy in queued connection

* proxymodel

* clear log if loop to the begin

* simplify history log

* remove icon

* remove assets

* hide linemarker on initialization

* rubber width may less than 0

* dont zoom char if selected range is too small

* cleanup messageslist

* don't zoom chart if selected range less than 500ms

* typo

* check boundary

* check msg_id

* capital first letter

* move history log out of scrollarea

* Show only one form at a time

* auto scroll to header

d

* reduce msg size
entire row clickable

rename filter_msgs
2022-10-12 13:55:17 -07:00
Dean Lee 750b96aaed cabana: improve time control (#25985)
* group signals/slots together

* slider:fix wrong minimum

* add TODO

* moveing to mouse click position

* show tickmark

* fix seek back to the old pos after sliderReleased

* reduce data copied in queued connection

* drop packets while seeking

* install event filter in streaming

* stop replay in dctor
2022-10-06 15:02:22 -07:00
Dean Lee a6ba073231 canbana: complete basic functions (#25965)
* add chart header

* get all signal val from logs

* loop in selected range

* clear list before append

* automatically zoom on yaxis

* cleanup

* sync charts

* fix event_begin_sec

* set the color of rubber

* add TODO

* sync slider with charts

* keep video aspect ratio

* sync plot buttons

* reduce flickers

* cleanup

* refactor detail view

* clear counters

* more

use qcamera
2022-10-05 21:17:22 -07:00
Dean Lee 1b8324af87 c++ cabana: Initial version (#25946)
* draft

* continue

* fix QChart unresponsive with large points

* build with --extras

* add filter

* save DBC button

* more buttons

* add flag to use qcamera

* stop replay in dctor

* README

* use getMsg

* video control

* edit signal

* add colors

* correct ts

* add/edit signals

* use bus:address as key
2022-10-03 15:19:42 -07:00
Shane Smiskol 26517a0ef9 replay: set CarParamsPersistent 2022-09-26 23:50:49 -07:00
Dean Lee 75c434bde7 replay: add shortcuts for seeking to the next info, warning, and critical alerts (#25576) 2022-09-05 14:11:32 -07:00
Adeeb Shihadeh 6590fb2b93 pre-commit: add codespell (#25571) 2022-08-30 11:20:55 -07:00
Dean Lee 8f3b259f7c replay/camera: set frame id before send (#25591) 2022-08-29 11:56:18 -07:00
Dean Lee cd32f64d01 replay: add missing format specifier (#25590) 2022-08-29 11:53:11 -07:00
Dean Lee f95519cb44 replay/CameraServer: yuv_buf should not be null (#25545) 2022-08-24 11:03:54 -07:00
Cameron Clough b3cfe962cf user event flagging (#25517)
* setup home_btn in sidebar

* create UserFlag msg

* replay: show and skip to user flags

* update translations

* bump to cereal master

* remove comment

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-08-22 21:47:09 -07:00
Nelson Chen 4fb318c5be Update replay README.md to be more clear that auth.py is in tools/lib (#25366)
and a little minor format fix
2022-08-04 15:06:36 -07:00
Dean Lee 91eb096ac9 replay: add support for reading from plain logs (#25053)
* read from plain log

* reduce memory copies

* cleanup

* fix test_replay
2022-07-15 10:53:10 -07:00
Willem Melching 356190f671 fix MacOS buid: replay frameworks (#25061)
* replay: fix macos build

* here too

* keep original frameworks
2022-07-07 16:13:05 +02:00
Dean Lee e0cd3bf5fc framereader.cc: remove nv12toyuv_buffer (#24991)
remove nv12toyuv_buffer
2022-06-29 11:27:37 +02:00
Dean Lee fd5b3d7603 move replay from selfdrive/ui/replay to tools/replay (#24971)
* mv to tools/replay

* change folder

* add .gitignore

* fix build doc

* disable warning

* enable warning after build

* build qt/util.cc qt/api.cc to library

* cleanup
2022-06-28 16:12:42 +02:00
Shane Smiskol 379dc24eca can replay: get logs in parallel (#24960)
* get can replay segs in parallel

* total not needed
2022-06-24 16:49:56 -07:00
Adeeb Shihadeh f05166ae26 ui.py: update for nv12 2022-06-13 13:58:22 -07:00
Adeeb Shihadeh 32a9ccfc37 visionipc python shim (#24660) 2022-05-25 20:49:56 -07:00
Willem Melching 2bdb2cb40a ui.py: use YUV stream 2022-05-25 17:37:21 +02:00
grekiki 17e33978cd Mypy fixes for --check-untyped-defs (#24372)
more type fixes
2022-05-12 14:08:11 +02:00
Ross Fisher 32e4dc3869 tools: add link to jungle repo (#24477) 2022-05-09 14:24:09 -07:00
Shane Smiskol 2fa5a59e3f Fix can replay Jungle warning (#24364) 2022-04-28 17:43:26 -07:00
Daniel c60ce2a770 Update can_replay.py (#24346)
Fixed typo from PandaJugnle to PandaJungle
2022-04-27 21:43:36 -07:00
Adeeb Shihadeh bfeaf35d6d fix panda_jungle static analysis 2022-04-27 15:45:00 -07:00
grekiki 049b163ea0 mypy: enable --warn-unused-ignores (#24287)
* this is the easy part to check

* Not sure what this fixes, https://github.com/commaai/openpilot/pull/24282/commits/8aaf00c6a41ac4c9c5e56f8a2dfed8591f153b67

* bump laika

* works here

* cleanup

* add types-certifi

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-04-27 14:26:15 -07:00
grekiki b8b15d5cf1 mypy: enable --warn-unreachable (#24282)
* Optional solves mypy assuming None is always None

* oops

* spaces

* Update registration.py

* fix local error

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-04-21 18:27:45 +02:00
Gijs Koning 57b6fdc17a Rename RGB vision streams to match YUV streams (#23961)
* Renaming VISION_STREAM_RGB_.. to match yuv names like VISION_STREAM_ROAD
VISION_STREAM_RGB_BACK -> VISION_STREAM_RGB_ROAD
VISION_STREAM_RGB_FRONT -> VISION_STREAM_RGB_DRIVER

* little more

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-03-14 14:03:54 -07:00
Adeeb Shihadeh 5c3f3e44bc break up selfdrive.config (#23959)
* break up selfdrive.config

* add to release files

* fix import order
2022-03-13 21:42:39 -07:00
Willem Melching efc9084409 ui.py: fix model lead plotting 2022-02-21 11:56:20 +01:00
Ewout ter Hoeven 55390d273f Convert format strings strings to f-strings (#23241)
* Convert all text strings to f-strings

Reformats all the text from the old "%-formatted" and .format(...) format to the newer f-string format, as defined in PEP 498. This requires Python 3.6+.

Flynt 0.69 was used to reformat the strings. 120 f-strings were created in 51 files.

F-strings are in general more readable, concise and performant. See also: https://www.python.org/dev/peps/pep-0498/#rationale

* revert pyextra changes

* revert ublox.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-12-16 14:58:17 +01:00
Adeeb Shihadeh b8393f7271 can_replay: warning & clone cmd if jungle lib is missing 2021-11-23 23:33:26 -08:00
Dean Lee 41e5e76596 replay: fixed the alignment issue when replaying from C3 qcamera (#22734)
* fix qcamera replay

* fix alignment in replay

* upscale yuv if needed

* remove space
2021-11-01 11:06:00 +01:00