Commit Graph

816 Commits

Author SHA1 Message Date
Dean Lee 10f39f4fd0 replay: fix hang if started with a special segment and there is no INIT_DATA in events (#27107)
* add events if allow or block is specified

* add init_data
old-commit-hash: ceceb1c6ccfec5a47b4a290ee6f81dc443ce79cc
2023-01-30 19:23:36 -08:00
Willem Melching e814b0f9f7 cabana: add --dbc command line argument (#27132)
old-commit-hash: f3a9dac93e0d1a9058e94d60b48ae5a189841d6c
2023-01-30 17:42:38 -08:00
Dean Lee bb56e75d0f cabana: restrict the rubber band in plot area. (#27154)
old-commit-hash: fba4827a7b9c6441cf85799770503229a361667f
2023-01-30 13:56:34 -08:00
Dean Lee 6741c99afc cabana: small improvements to MessageListModel::setFilterString (#27153)
old-commit-hash: 3815afbde74b69ce1057ae0162364f19f5baee0a
2023-01-30 10:57:35 -08:00
Dean Lee 8f812acb0d cabana: remove the margins of the legend item (#27152)
old-commit-hash: afa85e0256a482f046fcb89495a06ef67b5d673f
2023-01-30 10:57:16 -08:00
Dean Lee 86266c0cea cabana: draw message bytes at the same width (#27150)
old-commit-hash: 078f06dbaff2d1af57f1294095cfbd9c6e357ce1
2023-01-30 10:56:03 -08:00
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: 9822f1b0b46c5d63290e3ef8b3f103d7aba13bd9
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: 7a485d4308ff263cd3432edaa27d118d264b25b5
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: fdc4a7f84cb68c63cc5013a052b49663ffb6881c
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: fa4f37a0985802f83ec47b7fe0b29d1607ebe83c
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: a84b601d4cd2dbd1494ea1dcf31e21aacd579574
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: d60aca8dd28731f947153f9f5dcb26d0f92ac2ad
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: f038193f4447afc8ae7b6034dec430d08f6da331
2023-01-29 12:57:01 -08:00
Willem Melching d24fb585b5 cabana: fix occasional ellipsis on y axis ticks (#27142)
old-commit-hash: bdb42f7f84516279f308f95496a5f5f901c4adc1
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: 3d641fa5e530bd51ec40e9f1d9b466d75d2aefdf
2023-01-29 12:54:46 -08:00
Willem Melching 56618cdea6 cabana: fix overlap in byte highlighting (#27139)
old-commit-hash: d76012ec38ff5b996a329d35adc21ade17845d53
2023-01-29 12:52:42 -08:00
Willem Melching ccc28b40b5 cabana: fix crash when combining graphs on MacOS (#27128)
old-commit-hash: ba5c6715a8099eb5850382a5b7918da33a6c13dd
2023-01-28 12:06:04 -08:00
Willem Melching d7b677f441 cabana: DoubleValidator fix locale (#27129)
old-commit-hash: 68c0012bf62bcbe9a273d8d4caca0c1ce0d8e9bb
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: 07b32750c16fe4e71abbf81e07aa839ac60b5343
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: e1e043231720712d7c1e2d7342f13756d68efcde
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: f0078eafac20ac5af7e9683e61045bfb524f82cf
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: 50fc560b43bb24570400834edcaaa84d7270f38c
2023-01-26 20:29:28 -08:00
Dean Lee 499df99c9e cabana: saving & restoring columns widths (#27080)
saving & restoring columns widths
old-commit-hash: 08060e42c4bab39b85a64707f8eb801580ed2245
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: de5f792b3e893711a47c8f4db04162ab259ef286
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: 0f37ff6c0284b91881984ce5cf2d74c48bdf7e68
2023-01-26 12:37:04 -08:00
Dean Lee d8edb6962d cabana: improve detail view (#27099)
* improve detailview

* cleanup layout
old-commit-hash: 27e8f8ff3e3336fe4d5737cf7c766d16725706bc
2023-01-26 12:32:25 -08:00
Dean Lee 37badb184e cabana: fix video_splitter created twice (#27101)
old-commit-hash: 1d5d57a3847285af4bcce934dad49ffa65397fc1
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: 2de2bab2864eeaea8104ac0cbb619c5c25b8b4d6
2023-01-25 10:59:05 -08:00
Dean Lee 88e3c87072 cabana: fix a wrong settings key (#27085)
fix wrong key
old-commit-hash: 892835da7ad02d109794c5dc8e79ec938eebd572
2023-01-25 10:51:31 -08:00
Dean Lee a114a6bf17 cabana: improve layout (#27039)
improve layout
old-commit-hash: 81956649c8fad46beb6668009f2136b341260434
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: 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 54154252f6 cabana: fix slider crash on exit if loadThumbnails is running (#27052)
old-commit-hash: e49c7fa2bf3bbc2eb6aa851c51d82f1cfd6b9212
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: a0f91b0a8b1f9e8d14adfb32691c8dec66807d13
2023-01-22 13:20: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 7a5ee2eb11 cabana: add new plot btn to create chart (#27023)
old-commit-hash: 35a943030ba67b89a13bdf95257e0b349ffb0ef7
2023-01-21 16:00:39 -08:00
Dean Lee 3e8901cac4 cabana: new chart on top (#27031)
old-commit-hash: 945d0c7696e79fd1889743f112d68060c0b67650
2023-01-21 12:41:55 -08:00
Dean Lee 182ab2a31e cabana: add no-vipc flag (#26999)
old-commit-hash: fa6e6a4eb52010466efb5a65d3b9ee7b59e86a58
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: c88853afaeab9c9ccf7f7c693c69d9d3e77ae6ac
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: f0d22f88e183c381897a3d48c34bfac63feb63a3
2023-01-20 11:47:29 -08:00
Dean Lee dbb05d6bd5 cabana: improve video splitter (#27012)
old-commit-hash: 21af68e3c36eef4a84b076a41305caabf76bd4a9
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: 1c128db8b07a1abf10b9a2f2cc6a7af22c9ae065
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: f9490739ab37ae680aef272d51eb3cf2b36b4103
2023-01-19 15:26:00 -08:00
Dean Lee 26ca64da0f cabana: add support for multiple columns charts (#27000)
old-commit-hash: fd4dc109e1ab01b2d1ea6aaf3e99126dbaddc63b
2023-01-19 13:51:55 -08:00
Willem Melching 4a56cddaff cabana: search by signal name (#26944)
old-commit-hash: 35b83579634f2cdee4d6ef4652995b1844773b6e
2023-01-19 10:37:27 -08:00
Willem Melching 9eee128e1f cabana: improve open/save functions (#27007)
old-commit-hash: d365d99cb005b99ce7385d169e696847b0726315
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: 5b8d124be7d1277d816ff337fd69600da0e891e2
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: cebee69f304357c5966dec9b316a4d15e68c571b
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: c21d9408a191ba8e3303f2459d1f7476fefd35ba
2023-01-18 13:19:23 -08:00
Dean Lee 215526119d cabana: make video resizable (#26998)
old-commit-hash: 351d97ab5a72f3dfb22de2e7e321c4cc447a44c9
2023-01-18 11:40:44 -08:00