Commit Graph

555 Commits

Author SHA1 Message Date
Dean Lee f93f4e9f9b 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
old-commit-hash: a6ba073231761e06ac6f070a01b434243d9d0693
2022-10-05 21:17:22 -07:00
Adeeb Shihadeh 20de7c4b55 bootlog: add helper to get a bootlog by segment id
old-commit-hash: 285fd56a1d9ceb4addc5f34c510817bb075af977
2022-10-04 17:47:37 -07:00
Cameron Clough 5c99e4ca39 fix build without extras (#25957)
old-commit-hash: 4404cb42b445cdb7c2a9583357582ba2f11f2067
2022-10-03 16:45:00 -07:00
Dean Lee 292d55cf8a 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
old-commit-hash: 1b8324af876e66630b5f4e50623e3136a39f6ecb
2022-10-03 15:19:42 -07:00
Adeeb Shihadeh 1cb4cdab24 sim: fix sensor freq and timestamps (#25937)
* sim: fix sensor freq and timestamps

* 100hz

* fix that too
old-commit-hash: 5d33199905cbf9d9b45ef722a40530b08d5cecf4
2022-09-29 22:36:09 -07:00
Kurt Nistelberger fb06d2769f 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>
old-commit-hash: 29d3ed2ce63a65f793dc0ecb553180a0d0fba03e
2022-09-29 14:31:54 -07:00
Kurt Nistelberger 90aff8c6fb 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>
old-commit-hash: 784246cf54505660afd0ebc6b8a5b43915543aef
2022-09-29 14:24:19 -07:00
Shane Smiskol 867193b686 replay: set CarParamsPersistent
old-commit-hash: 26517a0ef920eb7dc89663ee599c1f1d06166c88
2022-09-26 23:50:49 -07:00
Adeeb Shihadeh da2d4bebd1 compressed_vipc: add main()
old-commit-hash: f18773acbea2c54a2edc70d74c35a8dea6cfdf82
2022-09-26 22:27:30 -07:00
Dean Lee ec96bc52d6 replay: add shortcuts for seeking to the next info, warning, and critical alerts (#25576)
old-commit-hash: 75c434bde708b15f392cea68f897a1450d4d8b78
2022-09-05 14:11:32 -07:00
Adeeb Shihadeh 0325a33752 add pyside2 package (#25602)
old-commit-hash: c6b749fb96b3b6332fd850e733140357f84d53a4
2022-08-30 15:10:52 -07:00
Adeeb Shihadeh 35ff65121e pre-commit: add codespell (#25571)
old-commit-hash: 6590fb2b93baedb2e1c5267b4f191f8e20fcd1d2
2022-08-30 11:20:55 -07:00
qadmus 8f468a01fa 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>
old-commit-hash: ff3ebbb13b04efc44773cda75bc6a390f7764159
2022-08-30 02:40:23 -07:00
Mitchell Goff a2d87101c7 Update DATA_ENDPOINT default to data-raw.comma.internal (#25597)
old-commit-hash: acbb230e0a2887971d906d9ae057ba0a7db44316
2022-08-29 13:31:43 -07:00
Dean Lee efeb964728 replay/camera: set frame id before send (#25591)
old-commit-hash: 8f3b259f7ce85f0c72a913cdaea53d48b1112e92
2022-08-29 11:56:18 -07:00
Dean Lee 66b0c1c591 replay: add missing format specifier (#25590)
old-commit-hash: cd32f64d0111dc8a304e378207c5666ebab6a025
2022-08-29 11:53:11 -07:00
Adeeb Shihadeh d9c279aea9 params: make python and c++ API match (#25573)
* params: make python and c++ API match

* few more
old-commit-hash: 90a4565eb29fe95fc83acf6e4f0ea0851c284d61
2022-08-26 20:46:19 -07:00
Adeeb Shihadeh 51c5932248 update webcam readme
old-commit-hash: 051e1e0a062e0eb398e9bb16291b95ba3ae497eb
2022-08-25 17:00:02 -07:00
Dean Lee 06556bd76a replay/CameraServer: yuv_buf should not be null (#25545)
old-commit-hash: f95519cb440ab25e24f14c12d37da535646d8419
2022-08-24 11:03:54 -07:00
Cameron Clough 07084dcbaf 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>
old-commit-hash: b3cfe962cf346e70cce1389fe3c9bf23344a5512
2022-08-22 21:47:09 -07:00
Cameron Clough 25236f1f79 sim: fix gps message (#25521)
fix gps timestamp field renamed

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

* Apply suggestions from code review

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 6a3a9944c25da54880460a579f3d4616ed4b7fa4
2022-08-18 15:18:50 -07:00
Shane Smiskol 2bd8ee0974 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
old-commit-hash: 5ed587ebeff24bacf70c44879616c51756730bba
2022-08-17 18:03:33 -07:00
Adeeb Shihadeh 6c03a57b85 pj: update torque control layout
old-commit-hash: 76a4daefffe0462162b984aae7baba25866903bb
2022-08-16 13:16:23 -07:00
Jason Shuler 2922d5b7aa ubuntu_setup.sh detect base ubuntu version for variant distros (#25433)
ubuntu_setup detect base version
old-commit-hash: 65f230e6f607469d187da0f3d84a2759c48d3711
2022-08-13 18:53:45 -07:00
grekiki 9e577a7cb0 plotjuggler: Longer max stream buffer size (#25399)
* longer streams

* more consistent

* reduce diff
old-commit-hash: 7f6464d97d615d850dafd7a0856884b57ab4d0e0
2022-08-10 20:02:45 -07:00
Robbe Derks 99ef2b4d02 don't wait to install plotjuggler
old-commit-hash: 35751420711db541cc0392f8dd3a88eb255fb742
2022-08-10 12:22:41 +02:00
grekiki 31260ce863 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>
old-commit-hash: cac960cb548a44cd3f9f6ad711da2d5579319d3e
2022-08-08 15:10:31 -07:00
Adeeb Shihadeh 18b4b1e73e remove old tools script
old-commit-hash: 49044b5399710511cb2541faadb17109ceb66485
2022-08-07 17:10:14 -07:00
Nelson Chen c824ca1076 Update replay README.md to be more clear that auth.py is in tools/lib (#25366)
and a little minor format fix
old-commit-hash: 4fb318c5be93c2f26e2ad4149b053a6ee830ecc5
2022-08-04 15:06:36 -07:00
Adeeb Shihadeh ee0f5386a1 plotjuggler: add max torque layout
old-commit-hash: 20c140b10eef52b6f6d6b9e142ed944264865bac
2022-07-31 15:36:37 -07:00
Jeroen e215317cf0 sim: role_name attribute used by ScenarioRunner for CARLA (#25315)
old-commit-hash: 26d29d21380d3cd4b357a8ab986e71b52bb59844
2022-07-31 13:18:02 -07:00
Willem Melching dfcd3a2910 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
old-commit-hash: 753f4c7fab565234e455f19e3ca123e44171e042
2022-07-29 17:46:19 +02:00
Willem Melching cd9aa86b8a plotjuggler: allow loading ci routes (#25294)
* plotjuggler: allow loading ci routes

* update readme
old-commit-hash: f3be47bc55b2ed50ebe803fb461a6d3002b1fc7c
2022-07-27 16:19:19 +02:00
Adeeb Shihadeh 5263356958 remove CS.steeringRateLimited (#25251)
* remove CS.steeringRateLimited

* bump cereal

* update refs
old-commit-hash: d462a08056d54a957084d594286626a2509c94aa
2022-07-24 14:56:55 -07:00
pcjx 3ccab8345c 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.
old-commit-hash: 551d2fe511ac2801befaa93d525b5c8bdb608629
2022-07-23 16:49:41 -07:00
Adeeb Shihadeh 04af978260 let can packer handle counter (#25240)
* let can packer handle counter

* diff is expected

* update refs

* clean that up

* bump opendbc

* fix sim
old-commit-hash: 0ca62bf7df0fe81829c744fd8689c9b97cb6a36b
2022-07-21 20:54:53 -07:00
Adeeb Shihadeh 8a7454eec3 implement string representation for Bootlog
old-commit-hash: e6e8607306b14ca1d869846007d91f240bfe2c7a
2022-07-21 14:14:34 -07:00
Dean Lee 908eb73e35 replay: add support for reading from plain logs (#25053)
* read from plain log

* reduce memory copies

* cleanup

* fix test_replay
old-commit-hash: 91eb096ac98b46605c283c637ed1e6b15598dc52
2022-07-15 10:53:10 -07:00
Adeeb Shihadeh b73f02bf45 controlsd: handle radar missing + cleanup system error handling (#25179)
* controlsd: handle radar missing + cleanup system erorr handling

* fix carla

* update refs
old-commit-hash: 505bbce29d45c246be177d81e618f9289e78aa16
2022-07-14 19:55:18 -07:00
Willem Melching 994b31a585 fix MacOS buid: replay frameworks (#25061)
* replay: fix macos build

* here too

* keep original frameworks
old-commit-hash: 356190f6712b68218237147deddf90fbe6268b6e
2022-07-07 16:13:05 +02:00
Adeeb Shihadeh fa29abe740 always show avg power
old-commit-hash: d4f4809992c5c73e36ec1041445e6a11b2c68448
2022-07-05 14:28:54 -07:00
Maxime Desroches 4a09ab86ac tools: add support for nv12 in compressed_vipc (#24962)
reshape for nv12
old-commit-hash: 2027d5311d419addfb67ad94d45a198592b2e459
2022-06-30 15:03:15 -07:00
Greg Hogan 7998c45a3f docs: ssh.comma.ai (#25000)
old-commit-hash: e643f8e6815eee04511dceecd23b434e5255f15b
2022-06-30 10:52:56 +02:00
Shane Smiskol 2c5e890a23 UI: wrap all text for translation (#24961)
* rough multiple language demo

* more wrappings

* stash

* add some bad translations

* updates

* map from french to spanish still has same problem of needing to call setText on everything

* add files

* restart UI

* use return code

* relative path

* more translations

* don't loop restart

* Toggle and prime translations

* try on device

* try QComboBox with readable style

* stash

* not yet scrollable

* stash

* dynamic translations (doesn't work for dynamic widget strings yet)

* clean up multiple option selector

* store languages in json

* try transparent

* Try transparent popup

* see how this looks

* tweaks

* clean up

* clean up

* clean up 2 and missing tr

* wrap more strings

* missing updater

* fixes

* add basic test to ensure all strings wrapped

* try in CI

* clean up

* test name

* fix test

* always install qt dev tools

* fix deps

* fast test

* add section so it prints multiple errors

* debug

* debug

get rid of those

* make any difference?

* comment

* oh...

* run with offscreen platform

* try out section

* clean up

* fix missing wrappings (it works!)

* move down

* space

* clear relevant params, set TICI=1
old-commit-hash: 879a7c3201a037c27c92ad6b92143114f52f29d3
2022-06-29 14:47:46 -07:00
Dean Lee 1175e76182 framereader.cc: remove nv12toyuv_buffer (#24991)
remove nv12toyuv_buffer
old-commit-hash: e0cd3bf5fc56229c2a0b835d0ef43a0bf683bfa5
2022-06-29 11:27:37 +02:00
Dean Lee 2156e71e7a move replay from selfdrive/ui/replay to tools/replay (#24971)
* mv to tools/replay

* change folder

* add .gitignore

* fix build doc

* disable warning

* enable warning after build

* build qt/util.cc qt/api.cc to library

* cleanup
old-commit-hash: fd5b3d76036b78864111790931a3abcb1d11ee0f
2022-06-28 16:12:42 +02:00
Shane Smiskol aecb469f36 can replay: get logs in parallel (#24960)
* get can replay segs in parallel

* total not needed
old-commit-hash: 379dc24ecad7f1bdc9c11fbb2416cc2d68b3a297
2022-06-24 16:49:56 -07:00
ZwX1616 3e2828c9bb fix carla test fake driverState (#24959)
use driverstatev2
old-commit-hash: 6721f0ef57fd5bda5045e80edac815adcfdef380
2022-06-24 14:29:46 -07:00