Commit Graph

162 Commits

Author SHA1 Message Date
Dean Lee
e1f4ce2fb1 replay/logreader: use unique_ptr for mbr_ (#29440)
old-commit-hash: 61a00d267380f8ea75e5d7b6aeb7d0dc5e17d763
2023-08-17 11:42:35 -07:00
Dean Lee
accd5f471b replay: fix seekTo issue (#29422)
* fix seekTo issue

* remove extra space
old-commit-hash: e8e03197ca73e98c152b94f64060ee57f88d2911
2023-08-16 11:01:14 -07:00
Kacper Rączy
7f02996102 replay: increase file descriptor limit macOS (#29346)
* Increase file descriptor limit for replay on macos

* Reword comment

* Move set_file_descriptor_limit to common/util.cc

* Include resource.h header
old-commit-hash: d8bda6feb491f571acf476314ce7de81a431453f
2023-08-15 00:05:27 +02:00
Dean Lee
c622a4cac5 common/util: move function random_int to util (#29388)
old-commit-hash: 22bc06fdaab24b8aa3aba2513a32ae828f6d589e
2023-08-14 09:37:16 -07:00
Justin Newberry
8e91f98da5 Replay UI: Fix zip issue (#29384)
Update ui_helpers.py

resolves https://github.com/commaai/openpilot/issues/29383
old-commit-hash: 783bb1f878a4b8f2d2902c053a9b7cc9e1ea1b8e
2023-08-13 22:55:59 -07:00
Justin Newberry
f33b4de80b Ruff: b905 (strict zip) (#29336)
* added mutable default args

* most of the Bs

* add comment about lrucache

* b905
old-commit-hash: e4ead4f1830618f5f61978491930cb0b8d36ab26
2023-08-11 16:13:51 -07:00
Justin Newberry
3ee0786de3 CI: Pylint to ruff (#29294)
* pylint to riff

* pylint to riff

* pylint to riff

* revert more

* undo exclude removal

* exclude tinygrad

* set line length

* pylint exclusions to ruff

* same excludes as old linter

* fix tools QA

* remove unrequired check

* revert linting third_party

* ignore e402
old-commit-hash: 7fdd9fc37c1c5febf1cd3dc86441ebf0dec7f370
2023-08-09 13:26:54 -07:00
Adeeb Shihadeh
3e9b67a514 bump panda (#29234)
* bump panda

* bump
old-commit-hash: 7949dfe796298502b38feb0d5a9f017993e70605
2023-08-04 11:09:20 -07:00
Shane Smiskol
d78ebfdc45 replay: new demo route (#29215)
* new demo route

* replace other references (except gps test)

* Apply suggestions from code review

* it's 13 segments
old-commit-hash: acc732efbb76b15947ce4b69cf6a97a919f4c34f
2023-08-03 13:18:44 -07:00
Mitchell Goff
49b07db500 Added python VisionBuf class (#29075)
* Added python VisionBuf class

* fixed property names

* Bump cereal
old-commit-hash: f0ae0c34cda2d032bc270efe6360a1dd1bbd77f2
2023-07-25 01:08:39 -07:00
Harald Schäfer
8a48732784 radard: no clustering (#29010)
* First commit

* cleanup

* Update ref

* Doesnt deserve two files

* cleanup radard
old-commit-hash: ca699e3989bd31849f168f665fc89c71667b008a
2023-07-19 20:31:40 -07:00
Dean Lee
2d88501e21 replay: emit segmentsMerged before updateEvent (#28849)
old-commit-hash: 3ad434c5ca98011087ce7017a9c468859ff2f787
2023-07-08 17:09:54 -07:00
Dean Lee
841f8bfb3f cabana: improve timeline (#28801)
old-commit-hash: 059529cae2dde8331eb9a4ac876b36c2c3ec7697
2023-07-04 12:03:08 -07:00
Qi Liu
5c6e533bf4 replay: fix segfault caused by pointer usage after freeing (#28779)
old-commit-hash: aa85fed91d1d2861ca65c9c44f2865127c0fa8a3
2023-07-01 23:01:47 -07:00
AlexandreSato
098cb227de minor typo on replay.cc comment (#28692)
old-commit-hash: dc06ce7ac349a38fe1aa3df9beff45ad7852f224
2023-06-25 20:24:19 +01:00
Dean Lee
c31a4a40cf replay: fix timeline issues (#28501)
old-commit-hash: bd34124a84e9d2b4fc370f2dc7dde9541d8d4b9e
2023-06-11 13:41:23 -07:00
Dean Lee
5ea1a3f778 replay: Improve the performance of the log parser (#28495)
old-commit-hash: 3a3e38e42591457f8e4a97a8559b9274d057880a
2023-06-11 08:28:30 -07:00
Dean Lee
f1bde81712 replay: fixed incorrect totalSeconds when there are invalid segments in route (#28388)
old-commit-hash: 67b27b7496289fb7f05c603f44b4a76a104cd32f
2023-06-03 11:43:27 -07:00
Kacper Rączy
0378e7ed81 replay: lock uiDebug and userFlag messages behind all flag (#28349)
* Add ui-debug flag, for replaying ui debug states

* Fix flag description

* Replace --ui-debug with --all flag

* Add base_blacklist for services blacklisted by default
old-commit-hash: 26ad9b32f35ff2f4723a871125379537071950eb
2023-06-02 15:17:25 -07:00
Kacper Rączy
3c1ae19261 replay: replay deprecated pandaState if pandaStates is whitelisted (#28275)
old-commit-hash: 00ff096ca2f9ca5e1c0f6a78702dc3cc78978092
2023-05-23 19:48:57 -07:00
Adeeb Shihadeh
edca33a78c tools: improved CAN replay (#27975)
old-commit-hash: e3bd28bddfed626440a3d1a43fd8eeb3f881d77c
2023-04-19 11:46:22 -07:00
Angus Gratton
fdfc2ac6f3 replay framereader: Log in some unlikely failure paths (#27942)
old-commit-hash: ed6e7db3cfca0fe2a393bc50b27dd022f14a68e9
2023-04-18 12:17:45 -07:00
Dean Lee
35e5b4d927 cabana: group CAN events by message id to reduce the time complex from O(N) to O(1) (#27601)
* refactor streams

* helper function xLessThan

* fix fill gaps
old-commit-hash: 74db5a4b421c822065677b12c4493c4e20aa2a9b
2023-03-17 10:16:14 -07:00
Dean Lee
0fcc3b4da7 replay: fix incorrect format string in seekTo (#27547)
old-commit-hash: 9b28897f09112ec1dc28d7196964588989029940
2023-03-09 13:13:29 -08:00
Dean Lee
aeb812b5e1 replay: fixed the status is always "loading" if there is no carState in events (#27481)
old-commit-hash: 6c4320559a05d6af1ee7b0f4bbebda171b94e20a
2023-03-02 22:30:12 -08:00
Dean Lee
43e4b84fec cabana: syc the last messages after seeking (#27149)
* fix wrong last message time

* update last messages after seekto

* cleanup

* remove src,address from CanData

* merge master

merge master
old-commit-hash: 41304db1e661fa6593d777f0f17dfd60e6f909c8
2023-02-02 20:39:16 -08:00
Dean Lee
10f39f4fd0 replay: fix hang if started with a special segment and there is no INIT_DATA in events (#27107)
* add events if allow or block is specified

* add init_data
old-commit-hash: ceceb1c6ccfec5a47b4a290ee6f81dc443ce79cc
2023-01-30 19:23:36 -08:00
Dean Lee
a6d27b050e replay: sync vision buffer (#26904)
old-commit-hash: a421c9464eec3a6b994df5ec010ff51b27aa4bbc
2023-01-09 13:48:04 -08:00
Dean Lee
3b3783a1f8 replay: remove need for fake dongle id (#26899)
old-commit-hash: 2204a7153f3f63716eedf81a8aeee9f2ed3e3c2e
2023-01-08 15:51:08 -08:00
Dean Lee
eb3429c5fb replay: show absolute time (#26869)
old-commit-hash: 2c7df6efc87f4f16aa0801ed40bc0e2542578031
2023-01-07 11:07:30 -08:00
Dean Lee
4d9eb133db replay: add option --prefix to set OPENPILOT_PREFIX (#26862)
old-commit-hash: 88fd2ea84ff7c465a2c2f7de13635f112d604637
2023-01-02 13:31:08 -08:00
Dean Lee
439549724f replay: only keep one init_data in merged events (#26863)
don't merge init_data
old-commit-hash: b5a2dfa93ed053b5e1e04f6a3b76735126c1e00f
2023-01-02 11:57:51 -08:00
Dean Lee
af496ad60f Replay: add option -c to set segment cache size (#26782)
add option to set cache size
old-commit-hash: 6431f79fd27518ffe645fd35b11da92e32a74066
2022-12-13 00:20:51 -08:00
Dean Lee
79170305dc 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
old-commit-hash: f49520db0fd343ccca5975ee62d602d09f98d8b0
2022-12-12 14:47:45 -08:00
Dean Lee
1072246cf0 Replay: fix possible segfault on exit (#26768)
old-commit-hash: 881c15c2a62135f62cb58c7f317f36365b6e643c
2022-12-12 10:25:49 -08:00
Shane Smiskol
8c4d019e7e cleanup: deprecate lqrState field (#26745)
* first commit

* clean up

* bump cereal

* revert angle controller

* revert

* clean up

* revert

* bump

* bumptomaster
old-commit-hash: df6bd0f3924b0bca2b0c0af2b2745675fb27e668
2022-12-09 18:43:45 -08:00
Dean Lee
09a84a3604 Replay: remove wrong text in TIME (#26692)
remove wrong time string
old-commit-hash: b513b832214f5427dd5d6c217f2e31b4bcecdfac
2022-12-04 11:30:31 -08:00
Dean Lee
7f578f13bb Replay: fix SEGFAULT in buildTimeline if segments are not continuous. (#26691)
fix segfault in buildtimeline
old-commit-hash: 0ff703d82fd6d93f8d260d7aa40e24c5146a0775
2022-12-04 11:28:40 -08:00
Dean Lee
bbdad5d115 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
old-commit-hash: 2b4b0cc67f59c896caf32fd937ad6ebf0f7ae640
2022-11-21 10:47:58 -08:00
Dean Lee
5b093b2da3 replay: reduce test running time (#26160)
old-commit-hash: 062267f4696c304b6ed0824a3b1046fecdd07e04
2022-10-23 13:57:32 -07:00
Adeeb Shihadeh
e293303d40 Revert "tools/replay: reduce test running time (#26110)"
This reverts commit 0dee43ab9bb8317441e69dca04d9d7d4f65f0fc9.

old-commit-hash: 755a6c0a46f07cdadb06821ced904af458fbf4e3
2022-10-17 19:15:21 -07:00
Dean Lee
b44b9b989e tools/replay: reduce test running time (#26110)
old-commit-hash: 6d07268ee5b385010961eab206b0b42a0ae6b5f8
2022-10-17 10:39:07 -07:00
Dean Lee
edb488ff41 cabana: increase replay's segment cache limit & add setting dialog (#26019)
* increase replay's segment cache limit

* todo

* add settings dialog

blank line

typo
old-commit-hash: b31932382d574b4db3c2b9b280d5410823adad1c
2022-10-12 19:31:26 -07:00
Cameron Clough
e0a63d7041 build extras together (#26051)
* build extras together

* don't check here either
old-commit-hash: 8b5ebbddf684bc7566ae41447face9f2ab053d40
2022-10-12 15:14:02 -07:00
Dean Lee
62adf87f40 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
old-commit-hash: 0fa1588f6c0bf9c9f1bebde91e02699506389ecd
2022-10-12 13:55:17 -07:00
Dean Lee
2d9dacacfe 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
old-commit-hash: 750b96aaedb88defd522a60a4bb5fbfeb46332db
2022-10-06 15:02:22 -07:00
Dean Lee
f93f4e9f9b 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
old-commit-hash: a6ba073231761e06ac6f070a01b434243d9d0693
2022-10-05 21:17:22 -07:00
Dean Lee
292d55cf8a 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
old-commit-hash: 1b8324af876e66630b5f4e50623e3136a39f6ecb
2022-10-03 15:19:42 -07:00
Shane Smiskol
867193b686 replay: set CarParamsPersistent
old-commit-hash: 26517a0ef920eb7dc89663ee599c1f1d06166c88
2022-09-26 23:50:49 -07:00
Dean Lee
ec96bc52d6 replay: add shortcuts for seeking to the next info, warning, and critical alerts (#25576)
old-commit-hash: 75c434bde708b15f392cea68f897a1450d4d8b78
2022-09-05 14:11:32 -07:00