Commit Graph

551 Commits

Author SHA1 Message Date
Adeeb Shihadeh 7243b9b68e Revert "UI: single-threaded CameraView (#30397)"
This reverts commit 69dcd240fcf3bac7a6bddb1647219b710d255554.

old-commit-hash: 073fc89ad49461c01ea474125a89a505543d093d
2024-01-07 14:54:39 -08:00
Dean Lee 2f8e66dbb8 UI: single-threaded CameraView (#30397)
* single-threaded CameraView

* updateFrame

* inherit from CameraWidget

* clear frame on offroadTransition

* check frame_id

* optional

* unique_ptr

* CameraView

* cleanup

* cleanup

* log skipping frame

* fix driverview

* disconnectVipc

* debug inconsistent frame

* skip frame if uiPlan is outdate

* cleanup

* set connected = false

* support camerad reboot&seeking in replay

* cleanup

* qDebug

* use deque

* cleanup

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 17ac1d3c7b3b481826d51eb82aaf9dbcc3f3bd81
2024-01-03 13:14:29 -08:00
Robbe Derks 8929336cc0 [Cabana] Fix segfault in sparkline (#30870)
old-commit-hash: eb805e889ef2f9c6e1345dc164533b44494576d0
2023-12-31 13:02:05 -08:00
Dean Lee 8056fe5aff cabana: add csv export (#30800)
export csv
old-commit-hash: 5f045176775c8c2cdd7f85e7229f78cf26f0c013
2023-12-19 11:50:16 -08:00
Dean Lee 6ae3e95542 camerad: cleanup includes (#30782)
* cleanup includes

* continue

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ab0b26d2b8dc8b3957812856917084af2cb3df0a
2023-12-17 22:42:52 -08:00
royjr 3afdea7fbb cabana: fix typo (#30678)
old-commit-hash: 84a3b10da94f6483caf94a52d76c674e62307e77
2023-12-10 16:46:41 -08:00
Dean Lee 280bef4b0c cabana: cleanp code (#30666)
old-commit-hash: aa744e84373ecacbbb45382e1a0e4cdd3d5c05fb
2023-12-09 08:12:11 -08:00
Dean Lee 091383e17c cabana: add test case for parsing all opendbc files (#30584)
* test opendbc files

* bump opendbc

* bump opendbc

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 33ee7530b39bf01051c11cb888695b0962c92f95
2023-12-04 17:12:22 -08:00
Dean Lee b01e3fe986 cabana: fix missing opendbc files (#30555)
* fix missing dbc files

* remove suffix
old-commit-hash: d87191c1c1982e5c044e5654d7a69c5cc222986c
2023-11-30 20:46:31 -08:00
DevTekVE 0f985f5d13 [cabana] fix clang17 warning (#30490)
[cabana] Improve signal timing calculation in findsingal.cc

The variables `first_sec` and `last_sec` have been separately initialized first before being used in `std::minmax` for signal timings. This resolves compilation warnings and potential risks of using temporary values of these variables.
old-commit-hash: 2a9986d9480063bb9b53d69a0cca47692c52b6ac
2023-11-18 23:05:10 -08:00
Dean Lee 6e991ea052 cabana: update message count after filtering (#30461)
update message count after filtering
old-commit-hash: 3d9f394533c3d82fc1fb5493f07fe90b366e5d88
2023-11-15 23:43:59 -08:00
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 13d0f243ff cabana: highlight dowloaded segments (#30459)
highlight dowloaded segments
old-commit-hash: 86a5ac383e938d16b19b69bb43e507abe8cdd63b
2023-11-14 03:23:33 -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 efa9cce3de cabana: allocate qt objects on the heap instead of stack (#30374)
allocate qobject in heap
old-commit-hash: 86efd70fa9e1ec2d125cc713e58c76740bc6eee5
2023-11-09 20:20:48 -08:00
Dean Lee 9b5e02d668 cabana: fix QChart leak (#30369)
fix QChart leak
old-commit-hash: f5279284f5b4d993a181e8ba2d9a6ec7985130d5
2023-11-03 11:16:58 -07:00
Dean Lee 76bddbd23d cabana/sparkline: Fix "Painter not active" warning (#30370)
fix painter not active
old-commit-hash: a46544f7084593d028ab0c202783125fa833cc79
2023-11-03 11:16:48 -07:00
Dean Lee 18f8bc79e6 cabana: remove dependence on opendbc (#30329)
* remove dependence on opendbc

* move into function
old-commit-hash: bf932c6277c25294857d68cf1a333ce9d151140c
2023-11-02 22:37:56 -07:00
Justin Newberry 3ee7b45c94 Cabana: fix wsl compilation (#30366)
fix wsl
old-commit-hash: a73412b39d1f3593c312c37b07cff6e842052433
2023-11-02 20:59:38 -07:00
Dean Lee 0f9c1bb2a7 cabana: fix messages not updated correctly after seekto() (#30351)
fix messages not updated correctly after seekto
old-commit-hash: bf5a45ed9826af7dbf9e1db82413e1340bbfa074
2023-10-31 11:34:54 -07: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
Shane Smiskol 78c15b7ea2 cabana: rename signal node
More clear what this is

Receiver Nodes

old-commit-hash: f62ee97cb0d05f71873f768145ccc122c1c82884
2023-10-25 15:03:27 -07:00
Dean Lee ae8cd280fb cabana: fix two ui bugs (#30327)
fix ui bugs
old-commit-hash: ae2628011818d3bb4277890e33e2a3917ba97f40
2023-10-25 14:39:52 -07: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 8123daceaf cabana: add Node column to message table (#30317)
* add Node column

* add views menu to toolbar

* match NODE

* rename fetchData to filterAndSort

* simplify sortMessages
old-commit-hash: 691c7c2c66785e9b06aae02bf278e343b8c9397b
2023-10-25 10:56:07 -07:00
Dean Lee b39bf7c20b cabana: fix sparkline glitch (#30320)
fix glitch
old-commit-hash: f47723d1d16c50c28c19cd79df1af000e93e9dad
2023-10-24 11:25:50 -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 c096776b31 cabana: remove the installed handlers on exit (#30297)
remove the installed handlers on exit
old-commit-hash: ac19ecee6f323f81607f4e70789be175c184da68
2023-10-20 23:48:48 -07:00
Dean Lee e785de4166 cabana: reduce minimum size (#30223)
reduce minimumsize
old-commit-hash: 818d29818fcb54f84e8fbb366fbe6913c70be2b9
2023-10-12 11:09:32 -07:00
Dean Lee 4ec199f1c1 cabana: fix crash when switching dbc file (#30227)
fix crash when switching dbc file
old-commit-hash: 47813ae8b52050237e6c39314bc0c7338daf7b56
2023-10-12 11:09:17 -07:00
Dean Lee 5de3198888 cabana: check if index is valid (#30204)
old-commit-hash: d02558c4008af9e4efc4fc36561bb5120cd47304
2023-10-06 20:13:08 -07:00
Dean Lee 0396152d98 cabana: fix parsing multiple line comment (#30178)
fix parse error
old-commit-hash: 29f10fd2aa0730681986631838f866462eb9af55
2023-10-05 01:48:56 -07:00
Adeeb Shihadeh a9153a39cc Update Python packages and pre-commit hooks (#30149)
* Update Python packages and pre-commit hooks

* fixes

* Update common/transformations/README.md

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

* fix

---------

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 377722fd5ed13349acf99c71954f56e6ccd17c3c
2023-10-03 15:31:26 -07:00
Dean Lee f01ab6cbbf cabana: fix QCompleter leak (#30097)
fix QCompleter leak
old-commit-hash: 21f4af4d6dbc5a29dcfbd467d7401d5438bf212d
2023-09-29 00:54:56 -07:00
Dean Lee ae0332d3db cabana/chart: add contex menu (#29957)
old-commit-hash: 50cca99e45d1db095ccbf47aaa155019d7c6e4c2
2023-09-18 16:14:54 -07:00
Dean Lee dbc788a418 cabana: fix QMenu leak (#29956)
fix qmenu leak
old-commit-hash: a450eff89f87670aacf7702925a41eedc8b1a234
2023-09-18 11:25:35 -07:00
Dean Lee e1df1cf15c cabana: add button to skip to the end of stream (#29953)
old-commit-hash: 6f9798745c73e82fa4ed396e697d44947b527e68
2023-09-17 15:20:21 -07:00
Dean Lee 9700838c6c cabana/chart: fix value overflow (#29924)
fix value overflow
old-commit-hash: 6a72d532963498d7de601fa79aaccc1f3d4e6b31
2023-09-15 03:20:27 -07:00
Dean Lee 97aa8b0606 cabana: support ECU node names (#29897)
* support display&edit node name

* cleanup

* set validator for Node name

* modify validator to support multiple receivers

* set default to XXX in updateMsg

* add DEFAULT_NODE_NAME

* Update tools/cabana/commands.h

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: c4df40a04a57478883609748c08d1abed539b017
2023-09-15 00:27:44 -07:00
Dean Lee a1cb457f20 cabana: use QStaticText to boost rending performance (#29900)
use QStaticText to boost rending performance
old-commit-hash: 82452ec66b0dd4e48365e794ac70ce22003edaec
2023-09-13 19:00:00 -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 fd355cc2f2 cabana/chart: use different colors to distinguish similar signals (#29890)
* Use different colors to distinguish similar signals

* check hueF value

* lighter
old-commit-hash: 34f5cad4e7a115826167d44ee48446e7e157b79f
2023-09-13 03:03:16 -07:00
Dean Lee 55a55aac6b cabana: mark the undo stack as clean after save as (#29898)
Marks the undo stack as clean after save as
old-commit-hash: 587f6ce0dc4d33f050e4b922b7727b0c9b58230f
2023-09-13 01:14:12 -07:00
Dean Lee 916f083499 cabana: improve precision of timeline (#29872)
old-commit-hash: d9f107a2c980828657c709527568f2b121962e78
2023-09-12 19:49:59 -07:00
Dean Lee 6c389dee7e cabana: display warning if failed to write settings (#29873)
* display warning if failed to write_settings

* use Settings::filePath()
old-commit-hash: f63dc5128411c6dc39c5bda9f05144c5f0af5b30
2023-09-12 13:13:59 -07:00
Dean Lee 0d7e17c995 cabana/chart: fix rubber band precision issue (#29887)
fix rubber band precision issue
old-commit-hash: 11d157369b2144f2cb73b141c7cfbf9929f923f8
2023-09-11 22:56:40 -07:00