Commit Graph

76 Commits

Author SHA1 Message Date
Dean Lee
02a251f50d cabana: add RouteInfo dialog to view and navigate route segment details (#35134)
add RouteInfo dialog to view and navigate route segment details
2025-05-14 11:21:28 -07:00
Dean Lee
52c8a12b08 cabana: fix crash in live streaming mode by skipping thumbnail display (#34302)
resolve crash in live streaming mode
2024-12-22 09:27:24 -08:00
Dean Lee
822f613139 cabana: real-time cursor and video frame sync for chart and video (#34301)
* sync cursor and thumbnail between chart and video

* Revert "replay: Update video immediately after seek when paused. (#34237)"

This reverts commit 3363881844.

* use thumbnails while scrubing

* draw alert

* no update on resume

* draw timestamp

* cleanup
2024-12-21 13:49:18 -08:00
Dean Lee
9e8815def4 cabana: miscellaneous bug fixes and enhancements (#34297)
* toHexString

* use QToolBar

* fix incorrect groove rect

* limit CAN_MAX_DATA_BYTES

* add series type selector to chart toolbar

* dim inactive messages

* rename

* add help to chart

* cleanup
2024-12-21 13:49:09 -08:00
Dean Lee
3c765a1f45 replay: eliminate qt dependency (#34102)
refactor to remove qt dependency and module Replay classes
2024-11-25 09:13:22 -08:00
Dean Lee
0f4ed56d51 cabana: fix thumbnail font size and timeline sorting issues (#34086)
fix thumbnail font size and timeline sorting issues
2024-11-22 10:38:27 -08:00
Dean Lee
474607ba06 cabana: refactor video widget for simplified layout and enhanced rendering (#33909)
simplify video widget
2024-11-04 10:01:14 -08:00
Dean Lee
24a32c3dec replay: remove Qt dependency from Segment and Timeline (#33847)
remove Segment, Timeline dependency on Qt
2024-10-24 13:41:01 -07:00
Dean Lee
6547d9593c cabana: fix issue where video can’t be paused by click during alert (#33746)
fix pause issue
2024-10-08 11:20:14 -07:00
Dean Lee
47409ab4d4 ui: refactor CameraView to serve as a generic vision stream display class (#33457)
refactor transform
2024-09-10 11:53:10 -07:00
Dean Lee
c8048d85e9 cabana: update event Handling from CONTROLS_STATE to SELFDRIVE_STATE (#33426)
check selfdrive_state
old-commit-hash: fdf6c9009cdc70bb1ce36fba461509a59e1be68b
2024-09-01 09:50:42 -07:00
Adeeb Shihadeh
1b2bc44227 controlsd: split out state/alerts into selfdriveState (#33421)
* setup selfdriveState

* little more

* update refs

* migration

* all too slow
old-commit-hash: 87051803ab
2024-08-31 18:48:17 -07:00
Dean Lee
dbf095522f cabana: bug fixes and improvements (#32934)
bug fixes and improvements
old-commit-hash: 36815cc6d5
2024-07-08 14:50:31 -07:00
Dean Lee
06aed0617a cabana: avoid dead locks and improve responsiveness (#32740)
avoid dead locks and improve responsive
old-commit-hash: 865b98a5c4
2024-06-16 12:32:45 -07:00
Dean Lee
8bdeb04e72 cabana: fix potential dangling pointer Issue (#32672)
Fix Potential Dangling Pointer Issue
old-commit-hash: 6688d7b91c
2024-06-09 11:04:10 -07:00
Adeeb Shihadeh
72b6504595 Revert "ui: single-threaded CameraView (#32291)"
This reverts commit 6adb53abf4d483e70bbe36725588a05cf75681fb.

old-commit-hash: c9531b463a
2024-05-18 16:34:03 -07:00
Dean Lee
4bade99d62 ui: single-threaded CameraView (#32291)
single thread cameraview
old-commit-hash: dd6e2a400b
2024-05-17 20:18:41 -07:00
Dean Lee
437dcc4258 Cabana: bug fixes (#32272)
* Fix SIGSEGV due to thread race conditions after seeking

* adding ID as a secondary sorting factor

* fix gaps
old-commit-hash: bab8cdfdef
2024-04-21 22:34:24 -07:00
Dean Lee
372bea14e2 replay: bug fixes and improvements (#32193)
old-commit-hash: 2c409e0980
2024-04-21 17:09:17 -07:00
Dean Lee
4b2a00ef73 replay: refactor Event to remove the readers (#32252)
Refactor struct Event to remove the MessageReader from it
old-commit-hash: a824bd75ef
2024-04-19 11:15:34 -07:00
Adeeb Shihadeh
7243b9b68e Revert "UI: single-threaded CameraView (#30397)"
This reverts commit 69dcd240fcf3bac7a6bddb1647219b710d255554.

old-commit-hash: 073fc89ad4
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: 17ac1d3c7b
2024-01-03 13:14:29 -08:00
Dean Lee
13d0f243ff cabana: highlight dowloaded segments (#30459)
highlight dowloaded segments
old-commit-hash: 86a5ac383e
2023-11-14 03:23:33 -08:00
Dean Lee
efa9cce3de cabana: allocate qt objects on the heap instead of stack (#30374)
allocate qobject in heap
old-commit-hash: 86efd70fa9
2023-11-09 20:20:48 -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: 01610128bb
2023-10-30 09:47:23 -07:00
Dean Lee
897a62dcfc cabana: support multiple cameras (#30339)
support multiple cameras
old-commit-hash: fe4ad96701
2023-10-29 07:05:59 -10:00
Dean Lee
ae8cd280fb cabana: fix two ui bugs (#30327)
fix ui bugs
old-commit-hash: ae26280118
2023-10-25 14:39:52 -07:00
Dean Lee
920bc9acea cabana: improve playback controller (#30325)
improve playback controller
old-commit-hash: 952838335d
2023-10-25 10:57:09 -07:00
Dean Lee
3fb329773e cabana: remove the qlog parsing thread (#30319)
remove the qlog thread
old-commit-hash: e287a5f164
2023-10-24 10:38:50 -07:00
Dean Lee
e785de4166 cabana: reduce minimum size (#30223)
reduce minimumsize
old-commit-hash: 818d29818f
2023-10-12 11:09:32 -07:00
Dean Lee
e1df1cf15c cabana: add button to skip to the end of stream (#29953)
old-commit-hash: 6f9798745c
2023-09-17 15:20:21 -07:00
Dean Lee
2716ef3a23 cabana: speed up exit (#29813)
old-commit-hash: 74daab120d
2023-09-07 11:30:53 -07: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: 2d99521e75
2023-08-23 13:25:17 -07:00
Dean Lee
841f8bfb3f cabana: improve timeline (#28801)
old-commit-hash: 059529cae2
2023-07-04 12:03:08 -07:00
Dean Lee
3fc8d79044 cabana: fix seeking issue (#28346)
* fix seekto

* rename loadThumbnail to parseQLog
old-commit-hash: e853af2ca6
2023-05-31 11:22:47 -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: a26e6d1633
2023-05-24 20:47:37 -07:00
Dean Lee
14443527cc cabana: fix time is displayed incorrectly when mouse dragged outside of the slider (#28048)
fix time is displayed incorrectly when the mouse is dragged outside of the slider
old-commit-hash: 64fb5cb922
2023-04-27 14:19:06 -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: 7f856eafd9
2023-04-25 21:49:10 -07:00
Dean Lee
2b9c35ddf7 cabana: support all features except video in live stream mode. (#27994)
old-commit-hash: 91dc064ac7
2023-04-21 13:23:17 -07:00
Dean Lee
a9f0e50aba cabana: fix thumbnail position issue (#27852)
* fix thumbnail position issue on WSL

* continue

* remove Qt::tool

* set parent
old-commit-hash: 7fff874755
2023-04-10 17:33:27 -07:00
Dean Lee
c635bf8723 cabana: switch theme on the fly (#27855)
* switch theme on the fly

* better chart theme

* Darcula like dark theme

* add TODO

* use theme aware toolbutton in ChartView

* add margin to text title

* lighter activity colors

* fix historylog header

* replace hardcoded color

* improve chart tooltip color

* use macro

* space

* remove function toolbutton

* fix remove all btn

* remove menu arrow

* improve chart::removeIf

* cleanup charts
old-commit-hash: fc90814199
2023-04-10 15:53:50 -07:00
Dean Lee
fbaefab443 cabana: dispaly alert info in thumbnail&video player (#27837)
* show alert info in thumbnail

* dispaly alert info in video
old-commit-hash: 2d061e2041
2023-04-08 11:34:37 -07:00
Justin Newberry
447a7bf9b1 cabana: sort events based on priority (#27809)
* sort events based on priority

* cleanup for pr

* pr cleanup 2

* pr cleanup 3
old-commit-hash: f8d9263eae
2023-04-06 21:31:04 -07:00
Dean Lee
9897bc83c4 cabana: add a slider to set sparkline time range (#27727)
* add slider to set sparkline time range

* rename signaleedit to signalview

* default is 15s

* util::formatSeconds

* update() is faster than invalidate

* draw points

* fix scatter width
old-commit-hash: d6961152b8
2023-03-29 12:43:43 -07:00
Dean Lee
d2fcf6dbae cabana: improve video thumbnail (#27711)
old-commit-hash: a1fb8d2480
2023-03-28 13:24:54 -07:00
Dean Lee
6e7afd47ec cabana: clear the old timeline after opening a new route from menu (#27672)
old-commit-hash: 9c84af296c
2023-03-24 11:01:26 -07: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: 4efd246bac
2023-02-20 14:16:30 -08:00
Dean Lee
e31c5b20cc cabana: add description for timeline color in help (#27375)
old-commit-hash: 524f7079a9
2023-02-17 10:35:50 -08:00
Dean Lee
c043ea7fa2 cabana: add online-help (#27349)
* add online helps

* typo

* remove duplicate 'too'

* show idle message:For Help, Press F1

* improve drawHelp

* fix color desc
old-commit-hash: 2510f78126
2023-02-16 14:47:36 -08:00
Dean Lee
b21b627271 cabana: fix inconsistent size for play button (#27298)
old-commit-hash: 152f1bf485
2023-02-10 12:57:20 -08:00