Commit Graph

568 Commits

Author SHA1 Message Date
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
Adeeb Shihadeh
f18773acbe compressed_vipc: add main() 2022-09-26 22:27:30 -07:00
Dean Lee
75c434bde7 replay: add shortcuts for seeking to the next info, warning, and critical alerts (#25576) 2022-09-05 14:11:32 -07:00
Adeeb Shihadeh
c6b749fb96 add pyside2 package (#25602) 2022-08-30 15:10:52 -07:00
Adeeb Shihadeh
6590fb2b93 pre-commit: add codespell (#25571) 2022-08-30 11:20:55 -07:00
qadmus
ff3ebbb13b plotjuggler readme: refer to openpilot env setup (#25609)
* plotjuggler readme: refer to openpilot env setup

* Update tools/plotjuggler/README.md

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

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-08-30 02:40:23 -07:00
Mitchell Goff
acbb230e0a Update DATA_ENDPOINT default to data-raw.comma.internal (#25597) 2022-08-29 13:31:43 -07:00
Dean Lee
8f3b259f7c replay/camera: set frame id before send (#25591) 2022-08-29 11:56:18 -07:00
Dean Lee
cd32f64d01 replay: add missing format specifier (#25590) 2022-08-29 11:53:11 -07:00
Adeeb Shihadeh
90a4565eb2 params: make python and c++ API match (#25573)
* params: make python and c++ API match

* few more
2022-08-26 20:46:19 -07:00
Adeeb Shihadeh
051e1e0a06 update webcam readme 2022-08-25 17:00:02 -07:00
Dean Lee
f95519cb44 replay/CameraServer: yuv_buf should not be null (#25545) 2022-08-24 11:03:54 -07:00
Cameron Clough
b3cfe962cf user event flagging (#25517)
* setup home_btn in sidebar

* create UserFlag msg

* replay: show and skip to user flags

* update translations

* bump to cereal master

* remove comment

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-08-22 21:47:09 -07:00
Cameron Clough
f65547fbe2 sim: fix gps message (#25521)
fix gps timestamp field renamed

bug introduced in https://github.com/commaai/cereal/pull/341
2022-08-22 16:23:36 -07:00
Shane Smiskol
16fe10e128 joystick: revert max axes value (#25483)
revert this to 255
2022-08-18 23:34:48 -07:00
Erich Moraga
6a3a9944c2 ssh docs: corrections and readability improvements (#25482)
* Corrections and readability improvements

* Apply suggestions from code review

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-08-18 15:18:50 -07:00
Shane Smiskol
5ed587ebef controls: block resume if cruise not previously engaged (#25402)
* see if this works at all

* can revert this

* think adding a no entry conditionally is nicer

* then we can revert this

* 0 makes more sense

* Revert "0 makes more sense"

This reverts commit efc89e8a2389ef58fbc0cec0a2872d24db524867.

* gm CC uses > 70

* bump cereal

* comment

* test on Honda

* whoops

* works

* add exception with todo

* moved button enable events to controlsd

* get rid of that

get rid of that

* different values for now

* car interfaces add enable event, controlsd can block it

* Regen and update refs

* delete if not set

* One place

one place

* regen routes are uninitialized first few frames

* Trim start of segment so it's like original segment

* stash

* regen

* not working

* clean up

* more cleanup

* revert

* bump ceral

* actually check resume button

* whoops

* pcmCruise cars don't use setSpeed, so we're good

* engage correctly in sim

* Update ref_commit

* Update refs
2022-08-17 18:03:33 -07:00
Adeeb Shihadeh
76a4daefff pj: update torque control layout 2022-08-16 13:16:23 -07:00
Jason Shuler
65f230e6f6 ubuntu_setup.sh detect base ubuntu version for variant distros (#25433)
ubuntu_setup detect base version
2022-08-13 18:53:45 -07:00
grekiki
7f6464d97d plotjuggler: Longer max stream buffer size (#25399)
* longer streams

* more consistent

* reduce diff
2022-08-10 20:02:45 -07:00
Robbe Derks
3575142071 don't wait to install plotjuggler 2022-08-10 12:22:41 +02:00
grekiki
cac960cb54 plotjuggler: route name in window title (#25370)
* Route titles

* minimum version check

* use tuples

* minor clean up

* use check_output

* space

* belongs here

* add prompt

* no f string

* Update juggle.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-08-08 15:10:31 -07:00
Adeeb Shihadeh
49044b5399 remove old tools script 2022-08-07 17:10:14 -07:00
Nelson Chen
4fb318c5be Update replay README.md to be more clear that auth.py is in tools/lib (#25366)
and a little minor format fix
2022-08-04 15:06:36 -07:00
Adeeb Shihadeh
20c140b10e plotjuggler: add max torque layout 2022-07-31 15:36:37 -07:00
Jeroen
26d29d2138 sim: role_name attribute used by ScenarioRunner for CARLA (#25315) 2022-07-31 13:18:02 -07:00
Willem Melching
753f4c7fab casync unittests (#25306)
* simple extract test

* add test with loopback

* test for chunk reuse

* test seeding

* add instructions

* cleanup

* install casync

* make more tests work without a loopback
2022-07-29 17:46:19 +02:00
Willem Melching
f3be47bc55 plotjuggler: allow loading ci routes (#25294)
* plotjuggler: allow loading ci routes

* update readme
2022-07-27 16:19:19 +02:00
Adeeb Shihadeh
d462a08056 remove CS.steeringRateLimited (#25251)
* remove CS.steeringRateLimited

* bump cereal

* update refs
2022-07-24 14:56:55 -07:00
pcjx
551d2fe511 Make ubuntu_setup.sh use codenames to support Ubuntu based distros (#25261)
Using codenames allows the ubuntu_setup.sh to install
properly on systems like Pop!_OS or Linux Mint.
2022-07-23 16:49:41 -07:00