Commit Graph

71 Commits

Author SHA1 Message Date
Dean Lee 2a2988f180 cabana: fix double comparisons (#30468)
compare double with epsilon
old-commit-hash: 7ded7a072027ce235b5166e50f695dd184585481
2023-11-14 21:44:22 -08:00
Dean Lee 543ea2bf57 replay: simplify the code for allow/block list (#30449)
simplify allow/block list
old-commit-hash: da95fd3019473b1f0dd8d671c22c1e618092cdb2
2023-11-13 09:19:39 -08:00
Dean Lee be9d291dad cabana: support suppress highlighted bits (#30336)
* support suppress highlighted bits

d

* faster filtering and sorting

* improve livestream

* specify the context in the connections

* remove inline
old-commit-hash: 01610128bb340f83ebf08b344404330806178825
2023-10-30 09:47:23 -07:00
Dean Lee 897a62dcfc cabana: support multiple cameras (#30339)
support multiple cameras
old-commit-hash: fe4ad9670179b6f823b7332d5a903a7049a3ac03
2023-10-29 07:05:59 -10:00
Dean Lee 03ba671b96 cabana: save settings to user-specific directory (#30328)
* save settings to user-specific directory

* include
old-commit-hash: b73329092c1eeb9b7472db97fcdf5544ee848156
2023-10-25 14:39:41 -07:00
Dean Lee 920bc9acea cabana: improve playback controller (#30325)
improve playback controller
old-commit-hash: 952838335d318ab3ecc2365d4f466800ad87aac4
2023-10-25 10:57:09 -07:00
Dean Lee 83678f7a87 cabana/chart: populate the points incrementally (#30326)
* populate the points incrementally

* less spacing
old-commit-hash: 57621afcb0f4a95f5fd36cc47a7801a776383af5
2023-10-25 10:56:49 -07:00
Dean Lee 3fb329773e cabana: remove the qlog parsing thread (#30319)
remove the qlog thread
old-commit-hash: e287a5f1641ae93a31deaeb3c03c5fd27ed80759
2023-10-24 10:38:50 -07:00
Dean Lee 47b9097674 cabana: set the COMMA_CACHE environment variable (#29849)
* set COMMA_CACHE enviroment

* use /tmp/comma_donwloand_cache
old-commit-hash: 0431bbaa8b5df4dbde27f91808064d3887512faf
2023-10-23 20:51:39 -07:00
Dean Lee b43ea8de7b cabana: bug fixes (#29902)
* fix freq

* fix chart legend alignment issue
old-commit-hash: 0bd9df31930abb4f72cdef9908a6b3240426b659
2023-09-13 12:52:56 -07:00
Dean Lee c7efe08e08 cabana: add comparision operator for CanEvent (#29864)
old-commit-hash: ef4c963c60276a62d64a89c158a1a1ff1dbe8a10
2023-09-10 16:09:22 -07:00
Dean Lee 2716ef3a23 cabana: speed up exit (#29813)
old-commit-hash: 74daab120d8528bc39c4cc74df5bf4ee46ccc9d9
2023-09-07 11:30:53 -07:00
Dean Lee 64c3dc5ad6 cabana: add empty check before insert events (#29798)
old-commit-hash: 60593660e61e3ede35ecb401ca0714eaac5edf52
2023-09-06 10:24:58 -07:00
Dean Lee 6394bf09d3 cabana: fix crash when no can events in the log (#29795)
fix crash when no events
old-commit-hash: 0afcf1236818f20e159cc2565e57814a08acd883
2023-09-06 02:36:07 -07:00
Dean Lee 3d04606233 cabana: use a monotonic buffer to allocate CanEvent (#29652)
* use a monotonic buffer to allocate CanEvent

* set the next buffer size to 6MB

* static

* cleanup

* use const iter

* rename to insert_pos
old-commit-hash: 57ad4f02f8e693639262aa3a982be8ed6c433ee0
2023-08-26 08:42:50 -07:00
Dean Lee 7a1b7d4206 cabana: improve frequency accuracy (#29631)
* improve frequency accuracy

* apply review

* 2 less lines!

* another!

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 2484548fddd1de51a75c52736b1709081ea61eb9
2023-08-25 15:15:16 -07:00
Dean Lee 0984736972 cpplint: add filter build/include_subdir (#29585)
old-commit-hash: 21da5a216fc8f5269d2deedc538c2f543a1c270a
2023-08-24 15:42:17 +01:00
Dean Lee 97e9d55588 cpplint: build/include_what_you_use (#29556)
* include_what_you_use

* remove comments

* include <memory>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2d99521e7500902070d0aacce69528bcfd8b9964
2023-08-23 13:25:17 -07:00
Willem Melching 6b98b83ad4 cabana: socketcan support (#27952)
* empty socketcan class

* works on linux with vcan

* add open stream widget

* fix MacOS build

* update readme

* unused

* no socketcan on C3

* fix in cabana sconstruct

* serial -> device
old-commit-hash: 2b0e4d46bbbb0ccbf028c975c3345d05765a7213
2023-08-23 10:50:11 -07:00
Dean Lee 004a097c95 cpplint: add readability/braces filter (#29554)
old-commit-hash: 363740a497620249066522c87ddb03e1362749d4
2023-08-23 10:13:46 -07:00
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