Commit Graph

2060 Commits

Author SHA1 Message Date
Dean Lee 5e1b64285f cabana: fixed the column selector is always hidden if settings.chart_column_count is 1 (#27146)
fix column selector
old-commit-hash: 9822f1b0b4
2023-01-29 19:20:52 -08:00
Dean Lee a583bd621f cabana: refactor and improve signal view (#26997)
* refactor and improve signal view

* cleanup undostack after save

* set clean

* fix logswidget::refresh

* fix bugs in historylog

* historylog:dont reset display_type on msg changed

* inline displaySignals

* historylog:add stretch to header

* remove sizePolicy

* always show toolbar

* add icon to tabwidget

* create new chart on top

* fix 'show plot' btn state sync issue

* rename removeSeries to removeItem

* historylog::fix displayRange

* MessageListModeL: improve setFilterString

* set as current index after expanded

* disable update during setmessage

* ChartWidget: fix issue in updateState

* skip align charts if there only one chart

* fix updateLayout

* cleanup historylog

* updateState before end reset model

* add validator

* improve sigmodel

* expand new signal

* add comment

* reserve vector

* cleanup condition

* single click on row to expand signal

* improve layout for canfd(64 bytes)

* cleanup

* return false on default

* show the latest signal value next to the signal name

* update sig value after setmessage.to make the value updated in pause mode.

* better size policy

* +1 for grid size

* better palette

* set autofillbg
old-commit-hash: 7a485d4308
2023-01-29 19:19:50 -08:00
martinl 0970d900a2 MacOS: build fixes (#27143)
* MacOS: exclude common/gpio.cc

* MacOS: no spi for boardd

* MacOS: loggerd: no v4l_encoder.cc

* MacOS: update libdbc path for cabana
old-commit-hash: fdc4a7f84c
2023-01-29 13:55:17 -08:00
Willem Melching a8b63f672b cabana: small improvements to charts (#27140)
* cabana: small improvements to charts toolbar

* show column count when wide enough

* call setspacing

* set in same place

* remove call to updateToolBar()
old-commit-hash: fa4f37a098
2023-01-29 13:02:32 -08:00
Dean Lee 1034573f1d Cabana: load commaai/opendbc from menu (#27114)
* load from opendbc

* move load from commaai/opendbc to menu

* keep margins
old-commit-hash: a84b601d4c
2023-01-29 13:02:20 -08:00
Dean Lee adfdbfac54 cabana: only update the colors of newly fetched messages in historylog (#27144)
only update new msgs color
old-commit-hash: d60aca8dd2
2023-01-29 13:01:57 -08:00
Willem Melching 423f22b51c cabana: show dots when zoomed far into a signal (#27145)
* cabana: show dots when zoomed far into a signal

* review comments
old-commit-hash: f038193f44
2023-01-29 12:57:01 -08:00
Willem Melching d24fb585b5 cabana: fix occasional ellipsis on y axis ticks (#27142)
old-commit-hash: bdb42f7f84
2023-01-29 12:55:10 -08:00
Willem Melching fe511a5269 cabana: replace space by underscore when editing signal name (#27130)
cabana: replace space by _ whene editing signal name
old-commit-hash: 3d641fa5e5
2023-01-29 12:54:46 -08:00
Willem Melching 56618cdea6 cabana: fix overlap in byte highlighting (#27139)
old-commit-hash: d76012ec38
2023-01-29 12:52:42 -08:00
Willem Melching ccc28b40b5 cabana: fix crash when combining graphs on MacOS (#27128)
old-commit-hash: ba5c6715a8
2023-01-28 12:06:04 -08:00
Willem Melching d7b677f441 cabana: DoubleValidator fix locale (#27129)
old-commit-hash: 68c0012bf6
2023-01-28 12:05:51 -08:00
Dean Lee db8d4c8ff7 cabana: remove extra frame border in logs (#27133)
remove extra frame border
old-commit-hash: 07b32750c1
2023-01-28 12:03:59 -08:00
Dean Lee c08eeb0cf2 cabana: display warning if failed to load dbc from clipboard (#27115)
display warning if failed to load from clipboard
old-commit-hash: e1e0432317
2023-01-27 11:34:17 -08:00
Dean Lee dd369848cd cabana: set time column to fixed width (#27117)
improve column width
old-commit-hash: f0078eafac
2023-01-27 11:33:52 -08:00
Dean Lee 8d4a81c97d cabana: improve mainwin (#27053)
* open recent

* improve mainwin

* move to submenu

* new file & remind save before load

dd
old-commit-hash: 50fc560b43
2023-01-26 20:29:28 -08:00
Dean Lee 499df99c9e cabana: saving & restoring columns widths (#27080)
saving & restoring columns widths
old-commit-hash: 08060e42c4
2023-01-26 12:56:38 -08:00
Dean Lee 63f89e9746 cabana: only repaint changed cells in BinaryView::highlight (#27046)
dont update all cells on highlight
old-commit-hash: de5f792b3e
2023-01-26 12:41:17 -08:00
Dean Lee 7f350927d1 cabana: cleanup historylog and fix some known issues (#27100)
improve history logs
old-commit-hash: 0f37ff6c02
2023-01-26 12:37:04 -08:00
Dean Lee d8edb6962d cabana: improve detail view (#27099)
* improve detailview

* cleanup layout
old-commit-hash: 27e8f8ff3e
2023-01-26 12:32:25 -08:00
Dean Lee 37badb184e cabana: fix video_splitter created twice (#27101)
old-commit-hash: 1d5d57a384
2023-01-26 11:02:17 -08:00
Dean Lee 455452a1b1 cabana: fix divde by zero for std::log10 (#27077)
fix divde by zero for std::log10
old-commit-hash: 2de2bab286
2023-01-25 10:59:05 -08:00
Dean Lee 88e3c87072 cabana: fix a wrong settings key (#27085)
fix wrong key
old-commit-hash: 892835da7a
2023-01-25 10:51:31 -08:00
Dean Lee a114a6bf17 cabana: improve layout (#27039)
improve layout
old-commit-hash: 81956649c8
2023-01-24 16:14:08 -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: 544ad25a0b
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: b2675cef9a
2023-01-24 11:36:40 -08:00
Dean Lee 54154252f6 cabana: fix slider crash on exit if loadThumbnails is running (#27052)
old-commit-hash: e49c7fa2bf
2023-01-23 10:16:11 -08:00
Dean Lee 37a16ff95e cabana: fix chart range not updated when replay is seeking back. (#27036)
old-commit-hash: a0f91b0a8b
2023-01-22 13:20:40 -08:00
Dean Lee 57fca0c177 cabana: fix memory corruption in live stream (#27037)
old-commit-hash: 1e4721ad62
2023-01-22 13:20:20 -08:00
Dean Lee 7a5ee2eb11 cabana: add new plot btn to create chart (#27023)
old-commit-hash: 35a943030b
2023-01-21 16:00:39 -08:00
Dean Lee 3e8901cac4 cabana: new chart on top (#27031)
old-commit-hash: 945d0c7696
2023-01-21 12:41:55 -08:00
Dean Lee 182ab2a31e cabana: add no-vipc flag (#26999)
old-commit-hash: fa6e6a4eb5
2023-01-20 15:43:42 -08:00
Dean Lee b25f0356ee cabana: fix wrong column count displayed in combobox (#27020)
fix wrong column count displayed in combobox
old-commit-hash: c88853afae
2023-01-20 12:45:47 -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: f0d22f88e1
2023-01-20 11:47:29 -08:00
Dean Lee dbb05d6bd5 cabana: improve video splitter (#27012)
old-commit-hash: 21af68e3c3
2023-01-20 10:43:30 -08:00
Shane Smiskol 264a61fefc Cabana: darken signal backgrounds on hover (#27010)
* darker signal background when hovering

* remove import

* little better
old-commit-hash: 1c128db8b0
2023-01-19 20:54:50 -08:00
Dean Lee 504453c3e4 Cabana: support live streaming (#26946)
* support live streaming

* update live stream's time

* cleanup stream classes

* disable video control in live streaming mode

* emit streamStarted() in LiveStream::streamThread

* disable some features in live streaming mode

* refactor charts to support live streaming mode

* disable dynamic mode checkbox in live streaming mode

* updateDispalyRange

* thread safe events

* TODO: add support for ZMQ

* atomic time stamp

* only keep settings.cached_segment_limit*60  seconds data in liveStream

* make charts work better in live mode

* cleanup ChartView

* fix toolbar

* cleanup

cleanup

* disable openpilotPrefix and useOpenGL on macos

* add comment

* exit gracefully

* support ZMQ

* use ::operator new/delete

* cleanup streams

* cleanup

* align stream buffers

* check looping back

* check if series is empty

* cleanup

* add TODO: write stream to log file to replay it

* upper_bound

* remove class member event_range

* change default settings value

* cleanup updateDisplayrange

* fix merge error
old-commit-hash: f9490739ab
2023-01-19 15:26:00 -08:00
Dean Lee 26ca64da0f cabana: add support for multiple columns charts (#27000)
old-commit-hash: fd4dc109e1
2023-01-19 13:51:55 -08:00
Willem Melching 4a56cddaff cabana: search by signal name (#26944)
old-commit-hash: 35b8357963
2023-01-19 10:37:27 -08:00
Willem Melching 9eee128e1f cabana: improve open/save functions (#27007)
old-commit-hash: d365d99cb0
2023-01-19 10:36:17 -08:00
Willem Melching 589c7d951f cabana: color bytes based on activity (#26970)
* cabana: color bytes based on activity

* newlines

* fix text color when selected

* fix indent

* add colors to binary view

* no need to check contains

* whitespace

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 5b8d124be7
2023-01-19 10:35:18 -08:00
Dean Lee e95c8e665b cabana: click time label to seek to a specified time (#27006)
old-commit-hash: cebee69f30
2023-01-19 10:32:48 -08:00
Dean Lee fa47048e44 cabana: use bootstrap icons (#26981)
* use bootstrap icons

* typo

* build into asset_obj

* add to files_common
old-commit-hash: c21d9408a1
2023-01-18 13:19:23 -08:00
Dean Lee 215526119d cabana: make video resizable (#26998)
old-commit-hash: 351d97ab5a
2023-01-18 11:40:44 -08:00
Willem Melching 10a738c845 cabana: sort bus:id numerically instead of alphabetically (#26996)
* cabana: sort bus:id numerically instead of alphabetically

* Update tools/cabana/canmessages.h
old-commit-hash: e69e4f4052
2023-01-18 10:32:04 -08:00
Willem Melching 7ad0b07b7b cabana: fix segfault on descending sort (#26995)
old-commit-hash: ef89ec3eb0
2023-01-18 10:31:40 -08:00
Dean Lee 34a0e44026 cabana: more compact form (#26985)
old-commit-hash: 2ef127ebc0
2023-01-17 13:09:18 -08:00
Kurt Nistelberger 8d5e71eb8e Improve GPSbox tests (#26983)
* add altitude testing

* fix proc check

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: a43a243b6e
2023-01-16 20:02:30 -08:00
Dean Lee e982122f90 cabana: add a combobox to switch between signal and raw hex value (#26974)
* switch between hex&signal value

* sync display mode between view & model
old-commit-hash: 164880524a
2023-01-16 11:21:15 -08:00
Willem Melching 2c22914bf8 cabana: MacOS fixes (#26973)
* make qtcharts a framework

* cabana: dfisable openpilot prefix on macos

* cabana: disable opengl on charts

* fix linux build

* no newline

* add comments
old-commit-hash: 5cc192be4d
2023-01-15 22:13:16 -08:00