Commit Graph

51 Commits

Author SHA1 Message Date
Dean Lee 42dd6af842 ui/networking: remove call to clearLayout (#29037)
* build list inplace

* move clearLayout to cabana

* cleanup include

* polish style

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: fd8a9c852016ccfd13ae5146648a65f01cc2468c
2023-08-13 11:57:40 -07:00
Dean Lee 841f8bfb3f cabana: improve timeline (#28801)
old-commit-hash: 059529cae2dde8331eb9a4ac876b36c2c3ec7697
2023-07-04 12:03:08 -07:00
Dean Lee b31de7db56 cabana: fixed the multi-threading issues of AbstractStream (#28590)
* fix multi-threading issues

* protect masks with mutex
old-commit-hash: e80440dc5d76c12cd6782b6a3446b12f6c62016e
2023-06-19 10:21:16 -07:00
Dean Lee c5543bf21d cabana: support multiplexed signals (#28309)
* support muxed signals

* write multiplexor in generateDBC

* edit multiplex_switch_value in signalView

* no overlapping warning for mux signals

* group signals by multiplexer indicator

* display freq for each multiplexed signals

* remove all multiplexed signals after switch deleted

* disable switch value

* cleanup

* historyView: use getValue

* sort by switch value

* check address

* rename variables

* rename signale type

* parse multiplexed signals in dbcmanater

* cache signal color in member variable

* cleanup num_decimals

* remove sources from dbcmanager and cleanup code

* fix sort

* check mltiplex in operator==

* fix sizehint

* convert multipledxed to normal after changing multiplxor to normal

* throw error on multiple 'M' signals

* add comment

* parse multipled signals in test case

* cleanup

* change order

* cleanup open

* display multiplexed/overlapping signals in binaryview

* sort overlapped signals by size

* refactor dbcmanager

* trimmed

* parse multiplexed signals in test case

* cleanup

* merge master

* space

* use pointer for sigs

* alldbcFiles

* cleanup

* cleanup sparkline

* use std::vector

* skip draw sparkline if isnull

* bigger capacity
old-commit-hash: e08569b0f31953e185369eba9afb7fb20de714fa
2023-06-13 13:22:03 -07:00
Dean Lee 33d2893fd2 cabana: segment live stream logging (#28407)
old-commit-hash: b7a2a921ecd9576799922287fd43d18c75c0042b
2023-06-05 09:44:30 -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
Dean Lee 6cc979a258 cabana: support editing dbc files without a stream (#28294)
* no stream mode

* disable tools menu if no stream

* disable splitter

* cleanup

* refactor matchMessage
old-commit-hash: d5d1ca11d4a5ba5ffcb067fd842540d5334e9360
2023-05-25 10:51:28 -07:00
Dean Lee c1fecfb6dd cabana: supports switching streams on the fly (#28081)
* open stream

* use std::atomic::exchange

* emit streamStarted immediately
old-commit-hash: a26e6d1633b994029e67611f7954250517f71acd
2023-05-24 20:47:37 -07:00
Dean Lee bd4d5ff3d4 cabana: fix the frequency was incorrect when replay from a specified segment (#28165)
old-commit-hash: f01652cc41590b08371a98f84f36d67f262c428a
2023-05-11 10:42:25 -07:00
Dean Lee ca13898b23 cabana: show and edit all messages present in DBC files (#28108)
* show all messages present in DBC files

* set last section stretch

* user can't resize data section

* re-fetch if filtering freq|count|data

* reserve set space

* use contains

* emit signalAdded for all related sources
old-commit-hash: f7e024f2f22139153aa8ee5ce9a9713bd51d99f0
2023-05-07 16:48:47 -07:00
Willem Melching 188aea549c cabana: improve panda startup dialog (#28104)
* create combo box for serial numbers

* configure bus speeds
old-commit-hash: 5c9935cc82bde9f0622c5177464b0b9bb21cbf8e
2023-05-04 10:59:26 -07:00
Willem Melching 10215bc44e cabana: add option to suppress already known signals (#28106)
* suppress using static mask

* use mask in updateLastMsgsTo

* store mask in cabana::Msg

* update mask in the right places

* actually build mask

* restore setting

* less diff
old-commit-hash: b53f748a1a328e63dff0a404114c5210eeaf2282
2023-05-04 10:50:28 -07:00
Dean Lee bcc6999411 cabana: fix wrong total seconds in replay mode (#28015)
* fix total_sec

* fix chart max range

* fix all_evnets order & use vector to improve performance

* dynamic updating max time

* get real time from qlog

* Update tools/cabana/streams/livestream.cc

Co-authored-by: Shane Smiskol <shane@smiskol.com>

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 7f856eafd98eb70d91c6b3e882991f34d1c4c4c8
2023-04-25 21:49:10 -07:00
Dean Lee b07058407b cabana: fixed incorrect comparison (#28007)
old-commit-hash: aabbe9ff1835345a67213992d026f02c1e97539e
2023-04-23 18:20:43 -07:00
Dean Lee 2b9c35ddf7 cabana: support all features except video in live stream mode. (#27994)
old-commit-hash: 91dc064ac730302ae6e6b38eddd928e702bbd0e1
2023-04-21 13:23:17 -07:00
Willem Melching bbe10913cf cabana: fix shadowed variable in abstractstream.cc (#27976)
old-commit-hash: 31cdb8de4ced73714db085d19bc12d01b2e7fab4
2023-04-19 13:31:03 -07:00
Dean Lee 1045c7d836 cabana: startup stream chooser dialog (#27938)
* new StreamDialog

* choose dbc file

* update last_dir

* move to /streams

* cleanup

* add stretch

* catch panda exception

* cleanup

* cleanup

* small cleanup

* fix pandaStream crash caused by a failed connection

* static function to create stream widget

* cleanup
old-commit-hash: 590b1bc2062d8a7f1ec253e0d0c5ab94799524c1
2023-04-19 10:49:06 -07:00
Willem Melching 69625b7f6c cabana: use cyan/red coloring for values that move mostly up/down (#27966)
old-commit-hash: 8da57459702736d8ba347965b12465e57041a82b
2023-04-19 10:45:07 -07:00
Dean Lee 70800c6397 cabana: refactor the cache for CAN events (#27969)
old-commit-hash: 8ad2d84aebc29a0cec031f798a6af5c5c202cc27
2023-04-19 10:44:52 -07:00
Dean Lee 679ae7865a cabana: fix PandaStream crash if no panda found (#27948)
old-commit-hash: dc4b7b37c050b1e44fa7cebaf39785f94b1450af
2023-04-18 10:22:57 -07:00
Willem Melching ca245b4973 cabana: make highlight fade time independent of playback speed (#27951)
old-commit-hash: fbe70c43a43ae5a3d28d9510d090b6acf5968e1b
2023-04-18 09:20:42 -07:00
Willem Melching 484eed0acf cabana: support direct streaming from panda over USB (#27936)
* refactor livestream into devicestream

* add panda stream

* unused

* whitespace

* move logging to base class

* add cmdline args

* Update selfdrive/boardd/boardd.cc

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2a981f553162ff41dd50ed6921b90ac512efa3d2
2023-04-17 15:37:26 -07:00
Dean Lee 941765994c cabana: some improvements to messages view (#27935)
* improve messageswidget

* remove double semicolon
old-commit-hash: f79654a1e7e3b6d64bf73859ae58a39d0f0b6f74
2023-04-17 13:39:43 -07:00
Dean Lee 6a98fd2bfd cabana: support logging live stream (#27884)
support logging live stream
old-commit-hash: e3a19ff074857876dca3c730f6ddc3c6e191aaf5
2023-04-13 19:53:39 -07:00
Dean Lee a5cb283b27 cabana: speed up parsing can events (#27874)
speed up parsing can events

cleanup include
old-commit-hash: f15cb01137ca4eb9bad0d134795919739969e04d
2023-04-11 19:35:11 -07:00
Dean Lee 640d68e3bc cabana: move dbc related files to dbc/ (#27712)
* move dbc related files to dbc/

* move generate_dbc_json.py to dbc/
old-commit-hash: 8903e03c8844df03783ae78d97e1294d0869ffea
2023-03-28 11:52:28 -07:00
Willem Melching e0ba3902df cabana: add support for multiple DBC files (#27435)
* split out dbc file logic into separate file

* emit dbc file changed

* change to list of dbc files

* handle missing DBC file

* dbcmanager emits signal

* close existing files before loading new one

* add placeholder open for bus menu

* implement open dbc for bus

* emit signals relevant for current dbc

* move logic into findDBC

* fix use after free

* show currently loaded names in load dialog

* enable/disable load save menus

* handle saving

* add save as to recents

* handle file already open

* do not assert

* fix return and throw on file open error

* fix test maybe

* remove todo

* typo

* fix new dbc

* fix loading fingerprint on macos

* handle replacing a currently open dbc

* fix reference and handle exception

* fix indendation
old-commit-hash: 4ab2131ec9e21d9784f2f423bd6b21c9914cd661
2023-03-27 10:29:44 -07:00
Dean Lee b70e95dcbb cabana: support qlogs (#27689)
old-commit-hash: 8150e4a4b864e266bac4a0f4cc95816424f0d463
2023-03-25 15:38:55 -07:00
Dean Lee 01a5616f82 cabana: improve find similar bits (#27651)
* improve find similar bits

* 2 precision
old-commit-hash: 89d767da49a32bd78024ac224236f82bf2b2fff5
2023-03-22 11:02:34 -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 ee692c5bec cabana: eliminate deep copy of events in live stream mode (#27588)
old-commit-hash: f00c108acb49bb633167dfdfcbdf84461cf59025
2023-03-15 10:54:22 -07:00
Dean Lee 83290c336b cabana: fix incorrect current ts in live stream mode (#27578)
old-commit-hash: 696cbb3e242a0613d4a8183df1eafd2fbcaf755b
2023-03-14 11:31:57 -07:00
Willem Melching 918bad4847 cabana: DBCManager only expose methods/signals through MessageId (#27540)
old-commit-hash: 0afd3bab34432e0ba83818c264f17e3ef16005df
2023-03-14 11:31:04 -07:00
Dean Lee c95ca5a1d5 cabana: fix hang on scrubbing in zommed chart (#27568)
old-commit-hash: d09a9a08fc21edc03edeb40e1080d8495a7d2915
2023-03-13 10:25:16 -07:00
Dean Lee 41c03ff406 cabana: split events into chunks and processed concurrently (#27562)
old-commit-hash: dc31c50aa7bda8d5aab43b0382342ae5162ed37d
2023-03-11 12:47:34 -08:00
Dean Lee a9e8d3e885 cabana: faster copy events (#27499)
old-commit-hash: 2de085d39d0b9f149526828cd02cc4ccb9122d05
2023-03-05 15:55:22 -08:00
Dean Lee 2aafd3bf01 cabana: improve UI & fix bugs (#27387)
* improve ui

* keep splitter size after msg changed

* no leading spaces allowed in msg filter and signal filter

* draw color byte AlignCenter

* always set as current index

* reduce chart flickers while resizing

* dispaly more info in tooltip for signal

* narrow combobox

* use &nbsp;

* typo

* private sigs,fix bugs

* merge  #27383

* no expanding after undo/redo

* gray color in tooltip

* clear current_msg_id before reset model

* dont call setmeesage if id is the same

* fix bugs

* cleanup

* dont fetch logs if invisible

* add new CenterWidget, make sure msg_id is always valid

* cache icons

* cleanup paint byte color

* merge #27385 implement sizeHint

* cleanup code

* fillrect if alpha>0
old-commit-hash: 4efd246bac004f3b6f1f7d733e6e285b3fdc8322
2023-02-20 14:16:30 -08:00
Dean Lee 972e91463c cabana: add support for load&save extra dbc info (#27203)
* support extra info

* support undo/redo

* fix undo/redo

* cleanup

* fix regexp

* refactor dbcmanager

* replace text in headerview

* fix binary::refresh

* cleanup

* use QRegularExpression

* add desc validation

* edit val description in table

* cleanup
old-commit-hash: ac0dbf74bc835faa46beab4bbb948c95597e4e67
2023-02-17 19:31:54 -08:00
Willem Melching e06a040f5b cabana: fix events() call in AbstractStream::updateLastMsgsTo (#27360)
old-commit-hash: 8772306467630df66716e47ec34fa36935152bf6
2023-02-16 10:34:42 -08:00
Willem Melching c9a2d19596 cabana: refactor message id from QString to struct (#27352)
* cabana: refactor message id from QString to struct

* fix tabbar

* fix findsimilarbits

* optimize hash function

* cleanup sorting

* use in updateLastMsgsTo
old-commit-hash: 5078c918056c189a3ec84bc63231fbae75c57eda
2023-02-15 12:39:03 -08:00
Dean Lee 20977cbdfa cabana: fix incorrect bit color after seek (#27287)
old-commit-hash: d19b6683655813d18c4e485b613dd32666197232
2023-02-10 10:13:39 -08:00
Willem Melching 82eeb6f256 cabana: bit level change frequency highlighting (#27259)
* cabana: bit level change highlighting

* change default color
old-commit-hash: 276586fdf051caa86feef1820e6732567d22c19c
2023-02-08 15:18:56 -08:00
Dean Lee 6640006987 cabana: delay starting live streaming thread (#27213)
old-commit-hash: 2cb0f599628f65d4fdb9dc3d84bdcc0865c33224
2023-02-04 15:25:06 -08:00
Dean Lee 7af5741071 cabana: add dialog to open route from remote or local (#27183)
* add OpenRouteDialog

* cleanup

* failed_to_load

* fix load

* clear message list and stream after open new route

* show message

* remove all tabs and charts after open

* use textEdited

* check route format

* cleanup loadRoute
old-commit-hash: 29d9d037590d2db33b7d49c44120d83307ec6568
2023-02-03 12:47:26 -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
Willem Melching 4081c51c73 cabana: add button to suppress highlighted bytes (#27131)
old-commit-hash: e3c202b4a2d79f6843aa54ec9a1ef81e39da2731
2023-02-02 13:16:09 -08:00
Dean Lee dd914f684a cabana: support pause and slow motion playback in live stream mode (#27051)
* support pause and slow motion playback in live stream mode

* override

* virtual functions

* move to function

fix

* lock handleEvent

* show speed controls in video widget

* fix pause signal

* set margins

* cleanup
old-commit-hash: 544ad25a0b9af70e2b22f3ec4e0fd8788929fd2d
2023-01-24 15:07:11 -08:00
Dean Lee fc3dac373e cabana: colorful logs based on activity (#27008)
* color logs

* remove space

* update in updateColors
old-commit-hash: b2675cef9a9d4993859b0cd924a1ca74281024f9
2023-01-24 11:36:40 -08:00
Dean Lee 57fca0c177 cabana: fix memory corruption in live stream (#27037)
old-commit-hash: 1e4721ad62d8953ed2e55ebcb4c02d7e06d393df
2023-01-22 13:20:20 -08:00
Dean Lee e675648a16 cabana: add a slider to adjust chart range from 1 sec to max cached seconds. (#27005)
* add slider to set chart range

* set minumu to 1 sec

* make chart work in any range

* cleanup

* rename to max_cached_minitues

* more

* dont draw out of plotarea

* cleanup

* updateLayout after chart removed

* cleanup

* fix clamp

* usea same cur_sec to update all charts
old-commit-hash: f0d22f88e183c381897a3d48c34bfac63feb63a3
2023-01-20 11:47:29 -08:00