Commit Graph

1521 Commits

Author SHA1 Message Date
Dean Lee
cf67ae6ac1 Cabana: fix build error on mac (#26730)
fix build error on mac
2022-12-08 11:18:52 -08:00
Dean Lee
57ad0c9458 Cabana: support multiple instances (#26286)
* multiple instance

* new file qtuitl.h

* Revert "new file qtuitl.h"

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

* smaller font

* rename to WelcomeWidget
2022-12-05 15:30:43 -08:00
Dean Lee
4d74e44ae1 Cabana: display dash instead of zero if no data (#26686)
display dash instead of zero if no data
2022-12-05 15:12:36 -08:00
Dean Lee
b513b83221 Replay: remove wrong text in TIME (#26692)
remove wrong time string
2022-12-04 11:30:31 -08:00
Dean Lee
f6496ce670 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
2022-12-04 11:28:54 -08:00
Dean Lee
0ff703d82f Replay: fix SEGFAULT in buildTimeline if segments are not continuous. (#26691)
fix segfault in buildtimeline
2022-12-04 11:28:40 -08:00
Dean Lee
59ed74ae4a Cabanba: new dialog to manage chart series (#26675)
* New dialog to manage chart series

* connect to signal currentIndexChanged

* cleanup

use cbegin/cend
2022-12-02 13:15:32 -08:00
Dean Lee
daea877c07 Cabana: add shortcuts (#26528)
add shortcuts
2022-12-02 13:15:14 -08:00
Dean Lee
74c0ac3dec Cabana: setSectionResizeMode to QHeaderView::Fixed (#26655)
fixed header
2022-12-01 09:17:02 -08:00
Adeeb Shihadeh
996a6c06d4 sim: disable micd (#26653) 2022-11-30 23:12:35 -08:00
Cameron Clough
108ff15f5d 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>
2022-11-30 21:56:03 -08:00
Cameron Clough
3d2f6c1dc0 Fix OpenCL driver URL (#26650) 2022-11-30 21:45:44 -08:00
Cameron Clough
821d8ff12f tools: pyenv setup fix (#26601)
* setup pyenv immediately

* sudo

* fix
2022-11-30 15:11:26 -08:00
Dean Lee
2b916044f5 Cabana: sort signals by address in logs view (#26639)
cleanup
2022-11-30 12:40:36 -08:00
Dean Lee
f9bb024a46 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>
2022-11-29 11:42:56 -08:00
James
67fb344146 Fixed typo in CARLA README.md (#26615) 2022-11-29 01:05:38 -08:00
Kurt Nistelberger
a48ec655ac 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>
2022-11-28 16:13:54 -08:00
Dean Lee
909a884dc5 Cabana: fix segfault in dragging zoom (#26598)
fix segfault
2022-11-28 15:43:27 -08:00
Cameron Clough
b15018387c 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
2022-11-23 14:03:15 -08:00
Dean Lee
6dec92df43 Cabana: fixed form glitches (#26587)
fix visual glitches
2022-11-23 09:48:24 -08:00
Dean Lee
4662f1e0be 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
2022-11-22 14:23:49 -08:00
Dean Lee
efbfbc0622 Cabana: display dashes if no value available (#26557)
show dot if no value
2022-11-21 10:48:19 -08:00
Dean Lee
7b46928fc9 Cabana: fix auto zoom y-axis for multiple line series (#26558)
auto zoom y-axis for multiple series
2022-11-21 10:48:08 -08:00
Dean Lee
2b4b0cc67f 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
2022-11-21 10:47:58 -08:00
Dean Lee
89eeb72dbd Cabana: update chart and video position (after a click) in pause mode (#26560)
update chart and video position (after a click) in pause mode
2022-11-21 10:47:47 -08:00
Dean Lee
de443d30b3 Cabana: 'edit-find' icon is not avaible on some platforms (#26561)
Fixed edit-find icon is not avaible on some platforms
2022-11-21 10:47:36 -08:00
Dean Lee
17b1839e0a 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
2022-11-20 13:23:59 -08:00
Dean Lee
9c815c2081 Cabana: draw line marker in drawForegound (#26542)
draw line marker in drawForegound
2022-11-18 10:25:11 -08:00
Dean Lee
37ad8f4f3f 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
2022-11-17 10:52:04 -08:00
Dean Lee
66edb15b8f Cabana: improve binary view (#26525)
* improve

* set minimum width

* click signal to open&hide form

* disable vertical header's click
2022-11-16 15:51:05 -08:00
Dean Lee
b6de850dd7 Cabana: save & restore splitter state (#26526)
save & restore splitter state
2022-11-16 15:45:08 -08:00
Dean Lee
e3c913bfa1 Cabana: sort signal by start bit and keep cursor position after save (#26529)
sort signals by start bit and keep cursor position after save
2022-11-16 15:43:49 -08:00
Willem Melching
e099e42147 cabana: default factor to 1 (#26521) 2022-11-16 09:12:31 -08:00
Dean Lee
73ec91f3bc Cabana: fix right panel layout after undocking charts (#26497)
* fix stretch

* set window title
2022-11-15 21:10:05 -08:00
Dean Lee
8e91ce1eb4 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 }
2022-11-14 19:09:19 -08:00
Dean Lee
ae40774425 Cabana: add test case for parsing can messages (#26495)
* add test case for parsing can messages

* require size equal

* cleanup
2022-11-14 10:13:16 -08:00
Dean Lee
29f24c7491 Cabana: Fix title overlapping on chart with long names (#26494)
fix title overlapping
2022-11-14 10:04:14 -08:00
Adeeb Shihadeh
102669a232 compressed vipc: fix client connect 2022-11-13 22:28:27 -08:00
Dean Lee
4ef941e954 Cabana: update detail view on change (#26476)
update on changed
2022-11-13 12:56:48 -08:00
Dean Lee
3d208567f3 Cabana: added color labels to signal list (#26485)
add color label
2022-11-13 12:56:26 -08:00
Dean Lee
f924e797b7 Cabana: remove bus time from can message (#26475)
remove bustime
2022-11-13 12:56:05 -08:00
Dean Lee
7b0f7312e5 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
2022-11-13 12:55:46 -08:00
Dean Lee
3c507e8ad7 Cabana: auto update signal on field changes (#26464)
* auto update signal on field changes

* better icon
2022-11-11 10:34:49 -08:00
Dean Lee
6cf9fff919 Cabana: fix segfault on exit (#26465)
fix segfault on exit
2022-11-11 10:34:25 -08:00
Dean Lee
e08896c45d Cabana: confirm exit without saving (#26452)
* confirm exit without saving

* typo
2022-11-10 12:57:52 -08:00
Dean Lee
122c0ec135 Cabana: remember last directory in open file dialog (#26449)
* remember last directory in open file dialog

* use QFileInfo
2022-11-10 10:37:52 -08:00
Dean Lee
7c922eafe9 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
2022-11-10 10:37:38 -08:00
Dean Lee
b320ac6c23 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
2022-11-09 22:05:18 -08:00
Dean Lee
59bf2fc008 Cabana: support deleting message (#26418)
delete message
2022-11-09 14:19:11 -08:00