Commit Graph

162 Commits

Author SHA1 Message Date
Dean Lee 84b6e18b53 cabana: fix chart glitches (#26928)
old-commit-hash: 97b931a12ae94567062891586496e7a73bd3ebbd
2023-01-12 11:27:20 -08:00
Dean Lee 16d5526839 cabana: fix find similar bits (#26918)
* dynamic find bit

* change

* Revert "change"

This reverts commit 12cf513e2725a52ee40b8999521adcd6ecb00221.

* change sorting and headers

* make perc a float

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: f3fa4d759d5967e8590492005b8ede8bd17a6981
2023-01-11 21:21:11 -08:00
Dean Lee 1a5867b973 cabana: sync play button state (#26917)
sync play button
old-commit-hash: 9884957e3e07e09df6c021222949a4a77e2bd8ff
2023-01-11 15:32:13 -08:00
Dean Lee 371ac89f84 Cabana: add dynamic/static mode to logs view (#26832)
old-commit-hash: e01809857174533e61a25d4bcb85b708031aa8cb
2022-12-30 13:57:29 -08:00
Dean Lee d37a669449 Cabana: double click on logs cell to open the chart (#26833)
old-commit-hash: ab797588f800c02c6ea181a86b3b1c7d760e8c72
2022-12-28 18:22:04 -08:00
Dean Lee 7f783e79d5 Cabana: make all panels dockable into each other (#26838)
old-commit-hash: 7ae87923864af4cd1378eeccc23c002fc66447e5
2022-12-28 18:21:06 -08:00
Dean Lee 6ccaa89961 Cabana: add tool to find similar bits (#26834)
* find similar bits

* set window title
old-commit-hash: 65509669b676bad41d57443454dbea8ffbc1c8f7
2022-12-28 16:51:02 -08:00
Dean Lee b6cece6abe cabana: align y axis correctly (#26837)
old-commit-hash: f15a5c9ad697e41eb273875577855ec5edede7f4
2022-12-28 16:47:49 -08:00
Dean Lee a3a052b828 Cabana: improve DBC file selector (#26787)
old-commit-hash: 68272449e1775df2326f7f62d1f4868c701dff29
2022-12-13 20:25:50 -08:00
Dean Lee 18689809fa Cabana: add auto completion for Msg selector (#26788)
old-commit-hash: ffb709e6a68c8dd254f96bbf05f6799370352e7f
2022-12-13 20:25:29 -08:00
Dean Lee 4fc1724609 Cabana: warn and exit if no rlogs in route (#26784)
warn and exit if no rlogs in route
old-commit-hash: 322dec1ec835e18a162b32dc75a293f57130ee62
2022-12-13 00:19:04 -08:00
Dean Lee 82761359a3 Cabana: add not equal (!=) filter (#26780)
add not equal filter
old-commit-hash: 1e596f964c65ddec1303cebf9128e26df2379d90
2022-12-12 23:04:36 -08:00
Dean Lee 62dbfd8fd6 Cabana: add signal value filters to the logs view (#26779)
add filter to logs view
old-commit-hash: cecef89124be03eae55b6ee3bc33b3d5cdf7f93c
2022-12-12 22:31:36 -08:00
Dean Lee 79170305dc Cabana: display all logs in log view (#26659)
* fetch more

* clear log in showevent

* fix wrong time value

* check list size

* fix canmessages::process

* cache all events

* improve segment cache

* cleanup
old-commit-hash: f49520db0fd343ccca5975ee62d602d09f98d8b0
2022-12-12 14:47:45 -08:00
Dean Lee 725e0665df common: add new class OpenPilotPrefix (#26753)
* new class OpenPilotPrefix

* move random_string to util

* rename file

* style

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 0d8254e95935f27d7c371ecc4c2d6c9ff8c204d0
2022-12-12 14:47:27 -08:00
Dean Lee b4a98b8740 Cabana: fix "show plot" button state sync issue (#26769)
old-commit-hash: fd91ab6469506ee2afe5db3c8b718433bc9317c6
2022-12-12 10:25:23 -08:00
Dean Lee 443e49b659 Cabana: use opengl to draw the line series. (#26761)
old-commit-hash: 4e3598c9f60e16bc48cbbb3152d74a5d89bebbea
2022-12-11 15:00:58 -08:00
Dean Lee 3acdabe2c2 Cabana: add button to display all cached data in chart (#26575)
* display all data btn

* remove timer

* update toolbar later

* dont update axis y in updateSeries

faster get_raw_value

* faster update

* optimize zoom y axis

* cleanup

* revert changes to get_raw_value

* updateState in eventsMerge

* cleanup:

* cleanup
old-commit-hash: 9ffb7a751874ce829b01c23809615a955819b9a6
2022-12-10 13:21:23 -08:00
Dean Lee 426d6988c7 Cabana: increase cell height of BinaryView and cleanup code (#26754)
* setDefaultSectionSize

* cleanup
old-commit-hash: 4b7b257fdcc7c027993e0d823997305e3f5de284
2022-12-10 13:09:07 -08:00
Dean Lee e88e88555d Cabana: fix header word wrap issue (#26737)
old-commit-hash: 767261e61cd9e50cc93941792bc14c8932321150
2022-12-09 10:42:43 -08:00
Dean Lee 161b2a8902 Cabana: fix the binaryview is not updated correctly (#26731)
old-commit-hash: 6bea668e35408361fd8efa5bec641d2fe7cf94e8
2022-12-08 11:54:22 -08:00
Dean Lee 2d49d819d3 Cabana: add --ecam flag to dispaly the wide road camera (#26727)
old-commit-hash: 7006230e0885d3da26c034517660f566c8dd37e9
2022-12-08 11:19:57 -08:00
Dean Lee 1d583fa497 Cabana: fix build error on mac (#26730)
fix build error on mac
old-commit-hash: cf67ae6ac13944fd0236ac7ffa3151b8c2617229
2022-12-08 11:18:52 -08:00
Dean Lee 773024cc93 Cabana: support multiple instances (#26286)
* multiple instance

* new file qtuitl.h

* Revert "new file qtuitl.h"

This reverts commit 19ef28945e8647724bbfc6c8469a664a58c09f16.
old-commit-hash: 57ad0c94586d12df54d5ab4a65d0e47945a35065
2022-12-06 21:17:37 -08:00
Dean Lee 0fe9bffc43 Cabana: show welcome widget if no msg selected (#26703)
* show a blank widget if no msg selected

* smaller font

* rename to WelcomeWidget
old-commit-hash: e598438a97b9ae6c4d5d921cd094efe1f40320b4
2022-12-05 15:30:43 -08:00
Dean Lee ae59b2075a Cabana: display dash instead of zero if no data (#26686)
display dash instead of zero if no data
old-commit-hash: 4d74e44ae14301aab27b833974bb90955d20d04e
2022-12-05 15:12:36 -08:00
Dean Lee 93b43cad3e Cabana: show video thumbnail over slider (#26689)
* show thumbnail

* copy segments vector

* cleanup

cleanup mouseMoveEvent

cleanup include

* move lambda to memeber function

* reduce lock time

* private functions

* split to small functions
old-commit-hash: f6496ce6702090747f2ee45f26a8ef91730cc9ef
2022-12-04 11:28:54 -08:00
Dean Lee 78c649c60a Cabanba: new dialog to manage chart series (#26675)
* New dialog to manage chart series

* connect to signal currentIndexChanged

* cleanup

use cbegin/cend
old-commit-hash: 59ed74ae4a7a51fcfa673393947b755d7b29c323
2022-12-02 13:15:32 -08:00
Dean Lee 9e61dbfeba Cabana: add shortcuts (#26528)
add shortcuts
old-commit-hash: daea877c07a51d82903880e9464eace38ef9a95d
2022-12-02 13:15:14 -08:00
Dean Lee 9363f6fb04 Cabana: setSectionResizeMode to QHeaderView::Fixed (#26655)
fixed header
old-commit-hash: 74c0ac3deced5ac85b72ec1a4e51dae851cdb440
2022-12-01 09:17:02 -08:00
Dean Lee 4f1ff1d253 Cabana: sort signals by address in logs view (#26639)
cleanup
old-commit-hash: 2b916044f5e7e6466709bd45301765d0b7599eec
2022-11-30 12:40:36 -08:00
Dean Lee 4887149d38 Cabana: execute generate_dbc_json.py after building (#26620)
* use env.command to generete json after build

* Update tools/cabana/SConscript

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: f9bb024a464f8714a1edc7190985fcb612415eec
2022-11-29 11:42:56 -08:00
Dean Lee 85f8f38923 Cabana: fix segfault in dragging zoom (#26598)
fix segfault
old-commit-hash: 909a884dc5d2aaaff270e86d2707b51037c87bc4
2022-11-28 15:43:27 -08:00
Dean Lee 854f930b27 Cabana: fixed form glitches (#26587)
fix visual glitches
old-commit-hash: 6dec92df439183ff15155654e558b37ffa861631
2022-11-23 09:48:24 -08:00
Dean Lee 4a67971c61 Cabana: auto theme, detect from system. (#26563)
* auto theme

* cleanup

* get font color from ForegroundRole

* fix label color

* add padding for header

* smaller warning icon

* fix bg of binary view

* hightlight after init
old-commit-hash: 4662f1e0be77d6636ef7e3f663fb839448d86af6
2022-11-22 14:23:49 -08:00
Dean Lee dfdede362f Cabana: display dashes if no value available (#26557)
show dot if no value
old-commit-hash: efbfbc062280063b1cde744a97ecde5abb711784
2022-11-21 10:48:19 -08:00
Dean Lee 7bf05bc4d2 Cabana: fix auto zoom y-axis for multiple line series (#26558)
auto zoom y-axis for multiple series
old-commit-hash: 7b46928fc9cda9e5200d72c15253f60981eedc74
2022-11-21 10:48:08 -08:00
Dean Lee d7569d5a11 Cabana: update chart and video position (after a click) in pause mode (#26560)
update chart and video position (after a click) in pause mode
old-commit-hash: 89eeb72dbdb82258fdd26d7260f0c6455a371bf1
2022-11-21 10:47:47 -08:00
Dean Lee 7dbeb8ebe1 Cabana: 'edit-find' icon is not avaible on some platforms (#26561)
Fixed edit-find icon is not avaible on some platforms
old-commit-hash: de443d30b37aa5d8b15c94749399d836155bcf60
2022-11-21 10:47:36 -08:00
Dean Lee b902c26c6f Cabana: faster align charts, visual glitches removed. (#26543)
* faster adjust chart margins

* delay adjust

* update foreground after set margins

* set display range on create

* fix init display_range

* common function updateDisplayRange

* set min max to 0 if no values

* fix axis y

* use mapToValue

* cleanup

* get minmax from series

* cleanup

* cleanup eventsMerged

* cleanup include
old-commit-hash: 17b1839e0a358302e049f37f5c843532fb9c7f26
2022-11-20 13:23:59 -08:00
Dean Lee de99eb91c6 Cabana: draw line marker in drawForegound (#26542)
draw line marker in drawForegound
old-commit-hash: 9c815c2081fb61dfe84a79b617f17280c0396773
2022-11-18 10:25:11 -08:00
Dean Lee 40123aed4b Cabana: support for multiple series in chart (#26538)
* customize axis x & y

* new function chartView::addSignal

* support multiple series in chartView

* more

* show legend

* update changed signals only

* fix z value

* cleanup

* limit trake line in plot area

* display signal name in value_text

* &nbsp

* fix axis y

* add spaces

* cache min max value for axis y

* cleanup

* better values text

* remove force_update
old-commit-hash: 37ad8f4f3fe0e730c46ba60f60e9c8db20c4c20e
2022-11-17 10:52:04 -08:00
Dean Lee b2e08f2ac7 Cabana: improve binary view (#26525)
* improve

* set minimum width

* click signal to open&hide form

* disable vertical header's click
old-commit-hash: 66edb15b8f558ce81b5a57af4e60fc24e1fc489c
2022-11-16 15:51:05 -08:00
Dean Lee 9aee43274f Cabana: save & restore splitter state (#26526)
save & restore splitter state
old-commit-hash: b6de850dd7b9935ded59895a84b3edf5c767dae0
2022-11-16 15:45:08 -08:00
Dean Lee 78a2c19d0b Cabana: sort signal by start bit and keep cursor position after save (#26529)
sort signals by start bit and keep cursor position after save
old-commit-hash: e3c913bfa1d8c534f351d6ead5c2156ee4ee4ffa
2022-11-16 15:43:49 -08:00
Willem Melching 624ef2d73b cabana: default factor to 1 (#26521)
old-commit-hash: e099e42147af23a700bf4b64e08540574aa1d285
2022-11-16 09:12:31 -08:00
Dean Lee ac0055307f Cabana: fix right panel layout after undocking charts (#26497)
* fix stretch

* set window title
old-commit-hash: 73ec91f3bc20409e672480428f125dd6c8b9f2a1
2022-11-15 21:10:05 -08:00
Dean Lee 53922eaed4 Cabana: Move history logs to a tabbed widget (#26481)
* tabwidget

* cleanup

* update state  before show

* cleanup

* remove spacing

* fix right panel stretch issue

* fix missing }
old-commit-hash: 8e91ce1eb4f91c976570056fd8979a4afcf43a53
2022-11-14 19:09:19 -08:00
Dean Lee 2cd0421823 Cabana: add test case for parsing can messages (#26495)
* add test case for parsing can messages

* require size equal

* cleanup
old-commit-hash: ae40774425872b9d680448a41e2835c017c48e6c
2022-11-14 10:13:16 -08:00
Dean Lee ec2a47f007 Cabana: Fix title overlapping on chart with long names (#26494)
fix title overlapping
old-commit-hash: 29f24c7491d74ff2d2f7ca12e9a085dbe91c93fb
2022-11-14 10:04:14 -08:00