Commit Graph

712 Commits

Author SHA1 Message Date
Dean Lee 9363f6fb04 Cabana: setSectionResizeMode to QHeaderView::Fixed (#26655)
fixed header
old-commit-hash: 74c0ac3deced5ac85b72ec1a4e51dae851cdb440
2022-12-01 09:17:02 -08:00
Adeeb Shihadeh 5f4cc55c2c sim: disable micd (#26653)
old-commit-hash: 996a6c06d4522100357e04fea0182d33dc6e7f23
2022-11-30 23:12:35 -08:00
Cameron Clough 9bcf83f493 micd: scale sound volume with ambient noise level (#26399)
* test changing sound volume

* test changing sound volume

* create system/hardware/pc/hardware.h

* implement Hardware::set_volume using pactl

* soundd: use Hardware::set_volume

* add sounddevice dependency

* sounddevice example

* simple micd

* cleanup

* remove this

* fix process config

* add to release files

* hardware: get sound input device

* no more offroad

* debug

* calculate volume from all measurements since last update

* use microphone noise level to update sound volume

* fix scale

* mute microphone during alerts

* log raw noise level

* hardware: reduce tici min volume

* improve scale

* add package

* clear measurements on muted

* change default to min volume and respond quicker

* fixes

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

* logarithmic scaling

* fix

* respond quicker

* fixes

* tweak scaling

* specify default device

* Revert "hardware: get sound input device"

This reverts commit 50f594f7a3bab005023482bc793147a8c8dae5d7.

* tuning

* forgot to update submaster

* tuning

* don't mute microphone, and clip measurement

* remove submaster

* fixes

* tuning

* implement Hardware::set_volume using pactl

* Revert "test changing sound volume"

This reverts commit 4bbd870746ec86d1c9871a6175def96cf7f751a6.

* draft

* draft

* calculate sound pressure level in dB

* fix setting

* faster filter

* start at initial value

* don't run command in background

* pactl: use default sink

* use sound pressure db

* tuning

* bump up max volume threshold

* update filter slower

* fix divide by zero

* bump cereal

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 108ff15f5dc16f79a36a2d33397b36dba42d70cf
2022-11-30 21:56:03 -08:00
Cameron Clough 8a4a390d6f Fix OpenCL driver URL (#26650)
old-commit-hash: 3d2f6c1dc05c716acb40ed612719f7d0ba3d2a8f
2022-11-30 21:45:44 -08:00
Cameron Clough 132e5fe200 tools: pyenv setup fix (#26601)
* setup pyenv immediately

* sudo

* fix
old-commit-hash: 821d8ff12f3b9c9c9ba852dd7160f5a72d3d761d
2022-11-30 15:11:26 -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
James beadbb1b39 Fixed typo in CARLA README.md (#26615)
old-commit-hash: 67fb3441463976d016a6ca0499abdc8691238f2d
2022-11-29 01:05:38 -08:00
Kurt Nistelberger 2b9010b467 CI: gps test hackrf support (#26364)
* first ignore

* init gps test

* make LimeGPS git clone

* revert ignore

* .

* remove prebuilt bins

* gps test v1

* add static signal gen script

* update readme

* remove LD_PRELOAD by using rpath, update values after testing

* .

* remove LD_PRELOAD

* .

* fix README

* .

* .

* .

* gps test v1

* cleanUp

* init

* update fuzzy tests

* .

* finalize qcom gps tests

* .

* .

* .

* add downloader

* finalize unit tests

* .

* .

* inc limeGPS startup time

* tmp

* loosen init time

* .

* .

* .

* add ublox warmstart test

* .

* improve location tests

* .

* .

* .

* .

* .

* .

* .

* .

* last cleanUp

* .

* .

* add hackrf support

* hackrf support

* .

* .

* .

* .

* .

* .

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: a48ec655ac4983145bc93c712ecabac75b886e11
2022-11-28 16:13:54 -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
Cameron Clough f2e0b35e9e tuning: measure steering accuracy for existing routes (#25722)
* support parsing route logs

* optionally use cached data

* support segment or route names

* get control type from log
old-commit-hash: b15018387c774b9f470e88f22b96861d62917656
2022-11-23 14:03:15 -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 bbdad5d115 Replay: fixed the freq of video and events are unstable after changing the replay speed (#26559)
fix freq is unstable after changing the replay speed
old-commit-hash: 2b4b0cc67f59c896caf32fd937ad6ebf0f7ae640
2022-11-21 10:47:58 -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
Adeeb Shihadeh 4124aa821f compressed vipc: fix client connect
old-commit-hash: 102669a232824c309dae269cfbdf763af5214da8
2022-11-13 22:28:27 -08:00
Dean Lee 27e79880ab Cabana: update detail view on change (#26476)
update on changed
old-commit-hash: 4ef941e954198a6ed77b4d1cf9389cd621da6aac
2022-11-13 12:56:48 -08:00
Dean Lee 69d3a5f4ba Cabana: added color labels to signal list (#26485)
add color label
old-commit-hash: 3d208567f34bac3f7f910c8f0343d9472b67bf6c
2022-11-13 12:56:26 -08:00
Dean Lee 1ece0c2f38 Cabana: remove bus time from can message (#26475)
remove bustime
old-commit-hash: f924e797b745bf3a93201de85f807a0d101eaa0e
2022-11-13 12:56:05 -08:00
Dean Lee 9897d0dda8 Cabana: miscellaneous fixes (#26477)
* update pos after adjusted margins

* ts >=0

* output debug message to console

* fix freq&count incorrect after replay auto loop restart replay

* fix different height of play/pause

* delay posting CAN message if UI thread is busy

* >=

* clear undo stack after saving

* no space allowed in names

* const referer
old-commit-hash: 7b0f7312e577754958468ff6a176077976f1d6e2
2022-11-13 12:55:46 -08:00
Dean Lee c9a3795057 Cabana: auto update signal on field changes (#26464)
* auto update signal on field changes

* better icon
old-commit-hash: 3c507e8ad7a4de1d03402b178389de2bee9c4363
2022-11-11 10:34:49 -08:00
Dean Lee df73f5a15d Cabana: fix segfault on exit (#26465)
fix segfault on exit
old-commit-hash: 6cf9fff9193f3d61c81de65e88ba9ea908552062
2022-11-11 10:34:25 -08:00
Dean Lee 2ed7ce2eed Cabana: confirm exit without saving (#26452)
* confirm exit without saving

* typo
old-commit-hash: e08896c45d84f4005de156317ae902d601e9b895
2022-11-10 12:57:52 -08:00
Dean Lee 26fb7d0db0 Cabana: remember last directory in open file dialog (#26449)
* remember last directory in open file dialog

* use QFileInfo
old-commit-hash: 122c0ec135804ac6a106f1e06f4cb3467fb13b1a
2022-11-10 10:37:52 -08:00
Dean Lee 5f80ca6359 Cabana: Added support for undo & redo (#26440)
* undo/redo

* display command list to rolling the state backwards or forward

* update detailview after rolling states

* add * to title bar to indicate dbc has changed

* fix signal pointer address changed after removed

* cleanup

* fix id error

* clear undo stack after dbc file changed

* cleanup

* use map

* cleanup

* typo
old-commit-hash: 7c922eafe9d9c8e07de80f8bafcd9b2dc2932c13
2022-11-10 10:37:38 -08:00
Dean Lee e48e9b30f0 Cabana: improve the BinaryView & fix known issues (#26409)
* fix flipping issue

* dragging up to create little endian signal

* transform between little & big endian

* complete selection functions

* scroll to top after msg updated

* remove empty line

* cleanup code

* remove extra semicolon

* fix indentation

* minmax

* dont select hex column

* create msg if not existed
old-commit-hash: b320ac6c237eb0d31ab54227066e8ea6ba0f4dec
2022-11-09 22:05:18 -08:00
Dean Lee f3fb385a74 Cabana: support deleting message (#26418)
delete message
old-commit-hash: 59bf2fc0085420b13b7854d1a106c1706d7df265
2022-11-09 14:19:11 -08:00
Dean Lee ca2faafdb9 Cabana: add menu bar to main window (#26419)
* add menu bar

* show DBC name in title

* cleanup
old-commit-hash: fc872271ae73a0139be6b085b90467c2e8d83c66
2022-11-09 11:10:57 -08:00
Kurt Nistelberger 34adf259e8 CI: update qcom tests (#26404)
update qcom tests

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 1181efb288db18420e5a376ed5dba53eadf8c2cb
2022-11-08 14:01:07 -08:00
Dean Lee c55ba450cc Cabana: improve message sorting,filtering and updating. (#26396)
* optimize sort/filter/update

* helper function msgName

* cleanup
old-commit-hash: 1cf293f3a6c02bb44af9ef1e715b005104de1bc1
2022-11-07 07:53:42 -08:00
Dean Lee b858a1c4a4 Cabana: use QToolBar to manage the controls in ChartsView (#26388)
use QToolBar
old-commit-hash: 45891c79079ae4404b8828d9bcfe5cd79bce0c90
2022-11-06 11:06:42 -08:00
Dean Lee 32ff5a5b1c Cabana: Reimplement HistoryLog::sizeHintForColumn to improve performance (#26393)
Reimplement sizeHintForColumn to improve performance
old-commit-hash: cdcc0fb3695d75e781053f9feda6b6b91a08ea86
2022-11-06 11:06:10 -08:00
Dean Lee 2a6edbea60 Cabana: move the chart title into graphics view (#26389)
remove class ChartWidget
old-commit-hash: 3dc5dbf103290355b85a146f213f733cbb1dfeb5
2022-11-06 11:05:46 -08:00
Dean Lee aa4d1816a5 Cabana: move dbc related code from MessagesWidget to MainWin (#26387)
* move dbc related code to mainwin

* trigger ci
old-commit-hash: 529504e201a4130bad7ff9ab712e01c1341ac349
2022-11-06 11:05:14 -08:00
Dean Lee 650a6a921c Cabana: fix wrong hardcoded column index (#26392)
fix wrong column count
old-commit-hash: ea5587d1d14e01b7a2aeae34f8abc73886699519
2022-11-06 11:03:57 -08:00
Dean Lee 1bc0166499 Cabana: cleanup code (#26369)
* remove ChartView::enterEvent

* cleanup ChartsWidget::removeAll

* group graphics items

* remove rubber->setPalette

* helper function DBCManager::parseId

* remove variable name from dbcManager

* fix readme/Usage

* use QSlider::setRange

* cleanup include

* use emplace_back

* remove varialbe routeName from CanMessages

* remove tmp variable

* remove blank line

* cleanup layout

* clean settings layout

* connect to streamStarted

* cleanup signal/slot
old-commit-hash: ac76cc93256578f24db255cefd10c013dd906c28
2022-11-05 16:52:16 -07:00