Commit Graph

597 Commits

Author SHA1 Message Date
Cameron Clough
9a8bd8c097 Revert "cabana: fix binary view for can-fd"
This reverts commit 98cac3578b.
2022-10-18 20:46:08 -07:00
Adeeb Shihadeh
98cac3578b cabana: fix binary view for can-fd 2022-10-18 18:40:47 -07:00
Dean Lee
855099eb86 cabana: display fingerprint and route on the top right (#26133) 2022-10-18 11:01:38 -07:00
Dean Lee
a121212386 cabana: fix background refresh issue (#26134) 2022-10-18 11:01:21 -07:00
Dean Lee
12058c21c7 cabana: load dbc from paste (#26098) 2022-10-17 21:44:56 -07:00
Dean Lee
544526edeb cabana: fix chart margins (#26125) 2022-10-17 21:00:36 -07:00
Dean Lee
b89b881bdc cabana: sort DBC list alphabetically (#26127) 2022-10-17 21:00:20 -07:00
Dean Lee
988fede185 cabana: reduce the padding in DetailsView (#26126) 2022-10-17 21:00:07 -07:00
Adeeb Shihadeh
755a6c0a46 Revert "tools/replay: reduce test running time (#26110)"
This reverts commit 6d07268ee5.
2022-10-17 19:15:21 -07:00
HaraldSchafer
baca1cae1f UI Onroad widget renames (#26124)
Consistent widget naming
2022-10-17 18:18:01 -07:00
Dean Lee
99b16151fc Cabana: show MSB/LSB of signals in the BinaryView (#26103)
* dispaly msb and lsb in binary view

* draw at bottom

* move binaryview to seperate files

* increase the width of vertical header

* re-draw changed cells only

* correct lsb/msb position

* check bounds

* todo
2022-10-17 17:19:41 -07:00
Dean Lee
409e8f5f89 cabana: faster history log with better stretch mode (#26112) 2022-10-17 17:18:24 -07:00
Dean Lee
cd12ef4aa1 cabana: add a splitter between message lists and detailview (#26118)
* add a splitter between message lists and detailview

* space
2022-10-17 17:18:04 -07:00
Dean Lee
60586e0d58 Cabana: align the charts properly (#26116) 2022-10-17 14:39:18 -07:00
Dean Lee
6d07268ee5 tools/replay: reduce test running time (#26110) 2022-10-17 10:39:07 -07:00
Dean Lee
93346c31d3 Cabana: add chart_height setting (#26066)
add chart_height setting
2022-10-17 10:20:27 -07:00
Dean Lee
d109dda720 Cabana: click on video to play/pause (#26099) 2022-10-16 12:31:26 -07:00
Dean Lee
d4f9343a2c Cabana: load from high quality video by default (#26100) 2022-10-16 12:30:23 -07:00
Dean Lee
e3268d88c5 cabana: use monospace font for hex string (#26102)
specify monospace font for hex string
2022-10-16 08:24:34 -07:00
Dean Lee
e25ea85296 Cabana: complete edit functions (#26097)
complete forms
2022-10-16 07:55:53 -07:00
Adeeb Shihadeh
bf5a6565c0 cabana: misc touchups (#26092)
* fix time formatting

* disable vertical resize

* Update tools/cabana/videowidget.cc
2022-10-15 16:05:52 -07:00
Dean Lee
deac907cb4 Cabana: right click on the chart to reset zoom (#26088) 2022-10-15 11:36:09 -07:00
Dean Lee
a397418ef8 Cabana: scrollable binary view (#26065) 2022-10-13 13:25:21 -07:00
Dean Lee
cc6dd18cf0 Cabana: display the (x,y) values while MouseMove on the chart (#26064) 2022-10-13 13:24:55 -07:00
jp-solutionz
1d8fc4d21c joystickd: add controller mapping (#25986)
* Correct default controller mapping.

Current config maps steering to right trigger (ABS_RZ) when using a default xinput controller: https://inputs.readthedocs.io/en/latest/user/hardwaresupport.html

This results in default full left steering angle (1) requiring right trigger to return to centre (0) or right (-1).

It appears the intended mapping for steering is right thumbstick (ABS_RX).

Cancel button is also non-existent on default xinput controller. May be X button (BTN_NORTH) or Right Trigger (ABS_RZ).

Tested on Xbox One Controller via USB Cable, Logitech F710 and GameSir T4 Pro.

* Update joystickd.py

Fixed comment

* gamepad configuration

* gamepad arg

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2022-10-12 20:48:22 -07:00
Dean Lee
b31932382d cabana: increase replay's segment cache limit & add setting dialog (#26019)
* increase replay's segment cache limit

* todo

* add settings dialog

blank line

typo
2022-10-12 19:31:26 -07:00
Dean Lee
b65fad9e8f cabana: keep scrollarea frame (#26056)
add frame back
2022-10-12 17:04:53 -07:00
Cameron Clough
8b5ebbddf6 build extras together (#26051)
* build extras together

* don't check here either
2022-10-12 15:14:02 -07:00
Dean Lee
0fa1588f6c Cabana: stable initial release (#26004)
* increase form size & fix wrong charts number

* set max axisy to 1.0 if no value

* show 'close' button in floating window

* alwasy show scroll bar

* complete the logs

* more

* increase size to 50

* keep logs for all messages

* more

* rename signal

* better height

* avoid flicker

* dont call setupdatesenabled

* filter dbc files bye typing

* remove all charts if dbc file changed

* fix wrong idx

* bolder dbc filename

* update chart if signal has been edited

* new signals signalAdded,signalUpdated

* split class Parser into CanMessages and DBCManager

* cleanup

* updateState after set message

* cleanup

* emit msgUpdated

* clear history log if selected range changed

* always update time

* change title layout

* show selected range

hide title bar if no charts

less space between title and chart

* custome historylogmodel for extreme fast update

* move historylog to seperate file

* 2 decimal

* cleanup

cleanup

* left click on the chart to set start time

* todo

* show tooltip for header item&cleanup binaryview

add hline to signal form

* better paint

* cleanup signals/slots

* better range if min==max

* set historylog's minheight to 300

* 3x faster,sortable message list.

* zero copy in queued connection

* proxymodel

* clear log if loop to the begin

* simplify history log

* remove icon

* remove assets

* hide linemarker on initialization

* rubber width may less than 0

* dont zoom char if selected range is too small

* cleanup messageslist

* don't zoom chart if selected range less than 500ms

* typo

* check boundary

* check msg_id

* capital first letter

* move history log out of scrollarea

* Show only one form at a time

* auto scroll to header

d

* reduce msg size
entire row clickable

rename filter_msgs
2022-10-12 13:55:17 -07:00
Kurt Nistelberger
54d667aa15 GPS test station first unittests (#25950)
* init gps test

* gps test v1

* add static signal gen script

* update readme

* remove LD_PRELOAD by using rpath, update values after testing

* remove LD_PRELOAD

* update fuzzy testing

* address comments

* cleanup

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2022-10-11 18:55:10 -07:00
wjxjmj
dbdb3a02a8 Add ip and port arguments to /tools/sim/bridge.py (#26011)
* Add ip and port arguments

* Add descriptions of ip and port arguments

* Update README.md

* Update README.md

* prefer host/port options

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2022-10-11 14:16:40 -07:00
Dean Lee
754b44e7ce Cabana: increase slider precision to milliseconds (#26025) 2022-10-09 08:44:19 -07:00
Dean Lee
2ed82387a5 cabana: fix Incorrect Y-Axis Scale (#26018) 2022-10-08 14:10:00 -07:00
Dean Lee
beb0f8ac23 cabana: custom slider to indicate the status of engaged/disengaged/alerts (#26003)
* timeline

* remove todo

* cleanup
2022-10-07 11:28:24 -07:00
pbkompasz
cfabae28e7 README -> README.md (#26005) 2022-10-07 08:41:14 -07:00
Adeeb Shihadeh
01d05f66fe auto-detect pigeon or quectel (#25991)
* auto-detect pigeon or quectel

* persistent

* fix sim

* fix process replay

* fix locationd unit tests

* fix that

Co-authored-by: Comma Device <device@comma.ai>
2022-10-06 16:46:15 -07:00
Shane Smiskol
e7805eb5c5 FPv2: fixed fingerprint overrides query result (#25990)
* query FW versions if fixed (override after)

* skip here

* also skip here

* and here
2022-10-06 15:24:52 -07:00
Dean Lee
750b96aaed cabana: improve time control (#25985)
* group signals/slots together

* slider:fix wrong minimum

* add TODO

* moveing to mouse click position

* show tickmark

* fix seek back to the old pos after sliderReleased

* reduce data copied in queued connection

* drop packets while seeking

* install event filter in streaming

* stop replay in dctor
2022-10-06 15:02:22 -07:00
Dean Lee
9ec262bbfd cabana: Docking and undocking charts (#25983)
* floating dock charts

* more button

* setMinimumSize

* move reset zoom button to title bar

* show chart count

* cleanup

* reduce flicker

* dont update linemarker if pos not changed

* cleanup

* remove blank line

* always show dock/undock button
2022-10-06 13:57:11 -07:00
Dean Lee
2d9e797259 cabana: Fix the incorrect Y axis (#25984) 2022-10-06 13:35:56 -07:00
Dean Lee
7156633034 cabana: use QFormLayout (#25982) 2022-10-06 11:21:04 -07:00
Dean Lee
4cd3753d98 cabana: insert new chart at the top (#25981)
* small cleanup

* new chart insert at the top
2022-10-06 11:20:49 -07:00
Dean Lee
a6ba073231 canbana: complete basic functions (#25965)
* add chart header

* get all signal val from logs

* loop in selected range

* clear list before append

* automatically zoom on yaxis

* cleanup

* sync charts

* fix event_begin_sec

* set the color of rubber

* add TODO

* sync slider with charts

* keep video aspect ratio

* sync plot buttons

* reduce flickers

* cleanup

* refactor detail view

* clear counters

* more

use qcamera
2022-10-05 21:17:22 -07:00
Adeeb Shihadeh
285fd56a1d bootlog: add helper to get a bootlog by segment id 2022-10-04 17:47:37 -07:00
Cameron Clough
4404cb42b4 fix build without extras (#25957) 2022-10-03 16:45:00 -07:00
Dean Lee
1b8324af87 c++ cabana: Initial version (#25946)
* draft

* continue

* fix QChart unresponsive with large points

* build with --extras

* add filter

* save DBC button

* more buttons

* add flag to use qcamera

* stop replay in dctor

* README

* use getMsg

* video control

* edit signal

* add colors

* correct ts

* add/edit signals

* use bus:address as key
2022-10-03 15:19:42 -07:00
Adeeb Shihadeh
5d33199905 sim: fix sensor freq and timestamps (#25937)
* sim: fix sensor freq and timestamps

* 100hz

* fix that too
2022-09-29 22:36:09 -07:00
Kurt Nistelberger
29d3ed2ce6 Sensor events splitup (#25714)
* PoC of reading sensors via interrupts instead of polling

* add Gyro and draft for magn

* add more functionality to gpio.cc

* change LSM gyro to interrupt

* resolve rebase conflict

* update BMX accel interrupt impl

* add interrupt collector thread to fetch in parallel

* change get_event interface to return true on successful read

* update BMX gyro interrupt impl

* update gpio.h/.cc according to comments

* address comments, rename Edgetype enum

* Edgetype to EdgeType

* update sensor interrupt interface

* add error handling, and read fd on trigger

* avoid sending empty messages

* fix build

* use gpiochip

* less diff

* gpiochip on both edges, but skip falling edge if rising edge is detected

* init last_ts with 0

* update sensord testcases

* update sensord testsweet

* test for pipeline

* readd with_process

* add null check

* move tests update to seperate PR

* sensord: improve test coverage (#25683)

* update sensord-interrupt testsweet

* address review comments

* inc stddev threshold

* fix format string

* add version 0 check again

* relax strictness after c3 with bmx tests

* relax strictness after tests

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>

* address PR comments

* fix typo

* remove 4ms limit, and skip first 0.5sec of data

* revert disable_interuppt change to destructor

* fix and remove timing skip

* make gpiochip generic

* sensord port

* change from sensorEvents to separated events

* fix gyro usage

* add splitted sensor tests

* modify debug script sensor_data_to_hist.py

* refactor get_event interface to remove sensorEvent message type

* update locationd to non sensorEvent usage

* tmp commit

* fix replay

* fix accelerometer type

* fix sensor to hist debug script

* update sensord tests to split events

* remove rebase artifacts

* port test_sensord.py

* small clean up

* change cereal to sensorEvents-splitup branch

* upate sensorEvents in regen

* fix route generation for splitted sensor events

* regen cleanUp from sensorEvents change

* .

* remove light and temp from locationd

* add generic init delay per sensor

* .

* update routes

* move bmx gyro/accel to its own channel

* adopt sensor tests to bmx channel

* remove rebase artifacts

* fix sensord test

* handle bmx not present

* add bmx sockets to regen

* .

* .

* code cleanUp

* .

* address PR comments

* address PR comments

* address PR comments

* lsm clean up

* readd sensorEvents

* rever regen.py

* .

* update replay refs

* move channels

* fix artifact

* bump cereal

* update refs

* fix timing issue

Co-authored-by: Bruce Wayne <batman@workstation-eu-intern2.eu.local>
Co-authored-by: gast04 <kurt.nistelberger@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-09-29 14:31:54 -07:00
Kurt Nistelberger
784246cf54 Gps test Setup, PoC (#25919)
* first ignore

* init gps test

* make LimeGPS git clone

* revert ignore

* .

* remove prebuilt bins

* Update README.md

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-09-29 14:24:19 -07:00
Shane Smiskol
26517a0ef9 replay: set CarParamsPersistent 2022-09-26 23:50:49 -07:00