Commit Graph

551 Commits

Author SHA1 Message Date
Adeeb Shihadeh
1cb4cdab24 sim: fix sensor freq and timestamps (#25937)
* sim: fix sensor freq and timestamps

* 100hz

* fix that too
old-commit-hash: 5d33199905
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: 29d3ed2ce6
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: 784246cf54
2022-09-29 14:24:19 -07:00
Shane Smiskol
867193b686 replay: set CarParamsPersistent
old-commit-hash: 26517a0ef9
2022-09-26 23:50:49 -07:00
Adeeb Shihadeh
da2d4bebd1 compressed_vipc: add main()
old-commit-hash: f18773acbe
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: 75c434bde7
2022-09-05 14:11:32 -07:00
Adeeb Shihadeh
0325a33752 add pyside2 package (#25602)
old-commit-hash: c6b749fb96
2022-08-30 15:10:52 -07:00
Adeeb Shihadeh
35ff65121e pre-commit: add codespell (#25571)
old-commit-hash: 6590fb2b93
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: ff3ebbb13b
2022-08-30 02:40:23 -07:00
Mitchell Goff
a2d87101c7 Update DATA_ENDPOINT default to data-raw.comma.internal (#25597)
old-commit-hash: acbb230e0a
2022-08-29 13:31:43 -07:00
Dean Lee
efeb964728 replay/camera: set frame id before send (#25591)
old-commit-hash: 8f3b259f7c
2022-08-29 11:56:18 -07:00
Dean Lee
66b0c1c591 replay: add missing format specifier (#25590)
old-commit-hash: cd32f64d01
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: 90a4565eb2
2022-08-26 20:46:19 -07:00
Adeeb Shihadeh
51c5932248 update webcam readme
old-commit-hash: 051e1e0a06
2022-08-25 17:00:02 -07:00
Dean Lee
06556bd76a replay/CameraServer: yuv_buf should not be null (#25545)
old-commit-hash: f95519cb44
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: b3cfe962cf
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: f65547fbe2
2022-08-22 16:23:36 -07:00
Shane Smiskol
f49bbf60b6 joystick: revert max axes value (#25483)
revert this to 255
old-commit-hash: 16fe10e128
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: 6a3a9944c2
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: 5ed587ebef
2022-08-17 18:03:33 -07:00
Adeeb Shihadeh
6c03a57b85 pj: update torque control layout
old-commit-hash: 76a4daefff
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: 65f230e6f6
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: 7f6464d97d
2022-08-10 20:02:45 -07:00
Robbe Derks
99ef2b4d02 don't wait to install plotjuggler
old-commit-hash: 3575142071
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: cac960cb54
2022-08-08 15:10:31 -07:00
Adeeb Shihadeh
18b4b1e73e remove old tools script
old-commit-hash: 49044b5399
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: 4fb318c5be
2022-08-04 15:06:36 -07:00
Adeeb Shihadeh
ee0f5386a1 plotjuggler: add max torque layout
old-commit-hash: 20c140b10e
2022-07-31 15:36:37 -07:00
Jeroen
e215317cf0 sim: role_name attribute used by ScenarioRunner for CARLA (#25315)
old-commit-hash: 26d29d2138
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: 753f4c7fab
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: f3be47bc55
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: d462a08056
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: 551d2fe511
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: 0ca62bf7df
2022-07-21 20:54:53 -07:00
Adeeb Shihadeh
8a7454eec3 implement string representation for Bootlog
old-commit-hash: e6e8607306
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: 91eb096ac9
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: 505bbce29d
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: 356190f671
2022-07-07 16:13:05 +02:00
Adeeb Shihadeh
fa29abe740 always show avg power
old-commit-hash: d4f4809992
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: 2027d5311d
2022-06-30 15:03:15 -07:00
Greg Hogan
7998c45a3f docs: ssh.comma.ai (#25000)
old-commit-hash: e643f8e681
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: 879a7c3201
2022-06-29 14:47:46 -07:00
Dean Lee
1175e76182 framereader.cc: remove nv12toyuv_buffer (#24991)
remove nv12toyuv_buffer
old-commit-hash: e0cd3bf5fc
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: fd5b3d7603
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: 379dc24eca
2022-06-24 16:49:56 -07:00
ZwX1616
3e2828c9bb fix carla test fake driverState (#24959)
use driverstatev2
old-commit-hash: 6721f0ef57
2022-06-24 14:29:46 -07:00
Robbe Derks
39661f9291 use correct tty device for serial
old-commit-hash: 5cd8bef921
2022-06-24 12:37:30 +02:00
Adeeb Shihadeh
f06bb9d5f2 CANParser: invalid until valid (#24945)
* CANParser: invalid until valid

* bump opendbc

* bump opendbc

* fix counter in sim
old-commit-hash: 569a39ff76
2022-06-22 15:38:38 -07:00
Gijs Koning
5494622601 Improve laikad cpu usage. Less pos fix. Less local imports (#24887)
* Improve laikad cpu usage. Less pos fix. Not local imports

* Add laika to files_common

* Add laika to dockerfile sim

* Fix

* Fix

* undo
old-commit-hash: 1c4b145aa4
2022-06-20 14:24:11 +02:00
Adeeb Shihadeh
5fcc792527 sim: update cl kernel path
old-commit-hash: 1baf0e3f4a
2022-06-19 15:49:38 -07:00