Commit Graph

231 Commits

Author SHA1 Message Date
Dean Lee d1cd5f7ad6 cabana: improved error messaging (#32768)
* check user authenrication

* Update tools/cabana/streams/replaystream.cc

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 54da59c1feb917896538ce8aa22bf4f12af20824
2024-06-17 12:44:31 -07:00
Dean Lee 06aed0617a cabana: avoid dead locks and improve responsiveness (#32740)
avoid dead locks and improve responsive
old-commit-hash: 865b98a5c45335dcdf736ab38e89b5a1dcde2d59
2024-06-16 12:32:45 -07:00
Harald Schäfer 47d5601d8a long control: new API (#32706)
* Simplify long control

* Seperate

* Rename

* Try new api for toyota

* rm v_pid everywhere

* No speed in reset

* 0 is better default

* unassigned variable

* Update other cars

* Update gm

* SIMPLIFY

* simplify more

* fix API boundry

* Fix stopping bug

* Small fixes

* Update ref
old-commit-hash: bc303df6a0a4a9d52a2e92e5976b6c7aa5138b95
2024-06-14 00:08:58 -07:00
Harald Schäfer 05ed3d8c15 Restructure msgq (#32652)
* Update ref

* Compiles

* compiles

* Refactor rest of libs

* import all

* small fiex

* cleanup import

* Need msgq simlink too

* Add to openpilot docker too

* try repo

* Updates

* Fix lint

* fix docs

* Try blank slate

* Revert "Try blank slate"

This reverts commit f078ce04acacfe115c19e23e86038b01e2b84a6d.

* Maybe scons needs this to clear cache

* fix tests

* Disable test for now

* Update SConstruct

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Fix whitespace

* Write skip normal

* small fixes

* add test path

* Revert repo

* linting

* whitespace

* Bump msgq

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e70dc90a452e7c045d9a207f3680d846406ef789
2024-06-09 17:44:34 -07:00
Dean Lee 40de8d615f replay: add stop() function (#32673)
add stop() func
old-commit-hash: 3f84fe3557099ba74895241e8f4059b1001cd6ec
2024-06-09 11:04:21 -07:00
Harald Schäfer f870a968e9 Split cereal into cereal/msgq (#32631)
* squash

* fix doc

* compile device

* compile device

* Update ref

* add msgq to precommit exclusions

* No service ports

* fix compile

* address comments

* More comments

* Delete logger

* Update opendbc

* Linting

* bump msgq
old-commit-hash: e71ec4e8d7e39a56235f590227e7cb361cd8b79d
2024-06-06 14:31:56 -07:00
Dean Lee 958bdeda8a cabana: stop stream thread before exiting main event loop (#32634)
stop stream thread before exiting main event loop
old-commit-hash: 1d61f320a8dafc067efdf3dcc68653c8fc5dee60
2024-06-05 08:49:58 -07:00
Adeeb Shihadeh 2c6829ed67 boardd is pandad (#32628)
* boardd is pandad

* rename tests
old-commit-hash: 34e329649d7a388d4cd1f25dac9dda9d5409bf4a
2024-06-04 19:16:55 -07:00
Dean Lee 60387b191f replay: fix hang issue on system wake-up (#32341)
fix hang issue on system wake-up
old-commit-hash: c0a2ce31ee5c16545fbb3c9489f80abb9a2ae4a0
2024-05-03 10:46:39 -07:00
Dean Lee 8df37a97d3 cabana: Improve seeking and zooming (#32334)
* Improve seeking and zooming

* No repeated calculation of freq

* set min zoom seconds to 10ms
old-commit-hash: d72f000d98fc63f1ff7da44acedf95251c89faef
2024-05-03 02:42:29 -07:00
Dean Lee e41bd18540 replay: shared decoder context (#32255)
share decoder context

cleanup includes
old-commit-hash: b13456f81fdd6b0e83ba79e71f1f67fe6d220af9
2024-04-24 19:44:18 -07:00
Dean Lee df13fe2ead replay: optimize memory usage with MonotonicBuffer (#32278)
Optimize Memory Usage with MonotonicBuffe
old-commit-hash: bbd1648f0561b7b3270a2bc7b416841ac10fd9db
2024-04-22 19:21:42 -07:00
Dean Lee 84f3b07d46 replay: use nanosleep on MacOS (#32263)
* use nanosleep on MacOS

* Update tools/replay/util.cc

Co-authored-by: Willem Melching <willem.melching@gmail.com>

---------

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 618d73efd0bc282c2546776b47e7656af22efc69
2024-04-22 13:22:53 -07:00
Dean Lee 437dcc4258 Cabana: bug fixes (#32272)
* Fix SIGSEGV due to thread race conditions after seeking

* adding ID as a secondary sorting factor

* fix gaps
old-commit-hash: bab8cdfdef025b242150fb855e210ffcadc83a30
2024-04-21 22:34:24 -07:00
Dean Lee 372bea14e2 replay: bug fixes and improvements (#32193)
old-commit-hash: 2c409e0980e6145d375eb73f2d21cd03b01a5354
2024-04-21 17:09:17 -07:00
Dean Lee 4b2a00ef73 replay: refactor Event to remove the readers (#32252)
Refactor struct Event to remove the MessageReader from it
old-commit-hash: a824bd75ef38d3e40341151dd8bf5fb1eac02f3c
2024-04-19 11:15:34 -07:00
Dean Lee 7e5191422d replay/framereader: no longer cache all AVPacket instances in memory (#32236)
old-commit-hash: 8124ba5f63ff8275424a2b7aafe09768c5ed26a2
2024-04-17 10:05:32 -07:00
Dean Lee 2c14e8d540 cabana: gray out inactive messages (#32121)
* improve message list

remove TODO

* improve sort

* remove translate

* fix seeking issue
old-commit-hash: bf61e92518775f251a1ec4004889cdb8cd27b47e
2024-04-09 19:39:24 -07:00
Dean Lee 620f74d3b9 replay: use clock_nanosleep for precise waiting on the scale of nanoseconds (#32125)
use clock_nanosleep
old-commit-hash: 354cbe5a26502bf08370d5386400c0efb72fc9e9
2024-04-08 11:59:17 -07:00
Dean Lee 05d0243ff5 replay/route: adds retry on network failures (#31948)
old-commit-hash: b8f5f50d39881388fa4dcf3137693b948c2cf070
2024-03-30 17:37:14 -07:00
Dean Lee ad70ec8e45 replay/cabana : support segment range (#32026)
* support segment range

* include <QRegularExpression>
old-commit-hash: 0a2a3dfab7106e40a3934e1e80bc6573223276d8
2024-03-27 09:47:18 -07:00
Dean Lee 46384f94d3 ui.py: quit if the "X"(exit) button is clicked (#31949)
old-commit-hash: 028f6938b2e28d79054e9c11f1b95eba150bfcad
2024-03-21 10:58:48 -07:00
Dean Lee eba689d638 replay: get route datetime from INIT_DATA (#31913)
get datetime from INIT_DATA
old-commit-hash: d647361fae99b94c31e5071cbb6d81410b68c32e
2024-03-19 11:46:39 -07:00
Dean Lee 6ecd7bd524 replay: fix segfault in Replay::queueSegment (#31902)
old-commit-hash: e79cb0edaf88bde8ebdf1b0ac1b6fb5c6b5122d3
2024-03-17 21:55:27 -07:00
Cameron Clough 46cf28d822 ui.py fix typo (#31870)
old-commit-hash: 4dd5fd4619cb73df9b396aacda94c6afc553a9f1
2024-03-14 15:00:16 -07:00
Adeeb Shihadeh da31ce154a refactor camera transformations (#31818)
* refactor camera transormations

* update users

* more stuff

* more fix

* swap

* tici

* lil shorter
old-commit-hash: e3589e4b5cc783001c95b52cce066647b4ae0c6c
2024-03-10 16:56:50 -07:00
Adeeb Shihadeh 52eb1aee05 tools: update replay route parsing for timeless format
old-commit-hash: fd51bfb27bbdd089833810bec49e67e4ce7a1800
2024-03-07 18:57:59 -08:00
Adeeb Shihadeh 1a08f8a9f3 can_replay fixups for bxcan hw
old-commit-hash: 9b2665f0c1cc82ba681a7760599fce917c8eb93f
2024-03-02 12:23:46 -08:00
Justin Newberry b6b2ae1197 can_replay: log fingerprint for hardcoding (#31671)
* log

* quotes
old-commit-hash: b0496d8294b43bc63dc5cf54c19d029ac7857163
2024-03-01 13:28:58 -08:00
Justin Newberry d036050624 can_replay: add type hint (#31601)
type hint
old-commit-hash: edd26acdc324ad8d4b3ccd7406be545545f4cb6f
2024-02-26 16:26:01 -08:00
Cameron Clough 9bd90112d0 use pyupgrade to update to new typing syntax (#31580)
* add pyupgrade hook

* run pyupgrade (pre-commit run -a)

* ruff --fix

* Revert "add pyupgrade hook"

This reverts commit 56ec18bb6b8602a0b612f3803d96cdad14b52066.

* revert changes to third_party/

* manual type fixes

* explicit Optional wrapping capnp objects
old-commit-hash: 995250ae4967943ee33a3699a1d89a7a770d95e9
2024-02-24 16:41:23 -08:00
Justin Newberry bc9ad2ab13 fix static analysis
old-commit-hash: 3f104f3fbd7af6e0d1b59377165e6ae0a347c744
2024-02-21 11:26:49 -08:00
Adeeb Shihadeh 13ec05e3f3 add power cycling to can_replay
old-commit-hash: e7695c3f32e95bbd0ad31e2ef09075c93ba9f65b
2024-02-21 11:12:56 -08:00
Adeeb Shihadeh b4c03185d4 bump cereal (#31392)
* bump cereal

* update those

* update refs

* bump cereal

* bump

* bump cereal

* bump

* fix

* bump

* typo:
old-commit-hash: daceb171bde5aef4ea483e8054456187772afe92
2024-02-09 21:44:23 -08:00
Adeeb Shihadeh d14dd2dfe8 tools: fix up can_replay
old-commit-hash: 3972073fd4f33a6af3f88c6bb010171a38c03ba4
2024-02-04 14:48:06 -08:00
Harald Schäfer 66dbadb029 Delete lat planner (#31089)
* Initial commit

* Fixup

* typo

* ignore lateral plan

* Update cereal

* Remove lateralPlan

* Fix release build

* Fix release build

* give car params

* Add carParams to include_all_types

* Write car param in powerdraw test

* add demo mode

* Update model regf

* proc replay ref commit

* Try

* Move enum definition

* Update cereal

* typo

* Write car param for modeld test

* Update ref

* Update model ref again

---------

Co-authored-by: Kacper Rączy <gfw.kra@gmail.com>
old-commit-hash: e6c97c384671b448f307a7ed91416886f2186d80
2024-01-21 12:09:48 -08:00
Justin Newberry 06091f48a9 speedup replay test (#31086)
* speedup replay test

* better name

* comment not required
old-commit-hash: 5c2b7882bf5cddac38b0a323c0d18a91e9d3bc04
2024-01-19 14:39:08 -08:00
Justin Newberry 5df01b3d22 LogReader: fix plotjuggler not reading properly (#31023)
* fix plotjuggler

* simpler

* fix juggler

* fix that
old-commit-hash: 61fe705160ddb9e5c55292c7f702c5502e2c0d2e
2024-01-16 12:40:49 -08:00
Justin Newberry 4b7edec2b0 LogReader: move opci to tools/lib (#31021)
move opci
old-commit-hash: 7d400112df6692ef026245b03951345cc36dd83e
2024-01-16 10:58:51 -08:00
Adeeb Shihadeh bf6fc7a24f more unit test speedup (#30997)
* that's super slow

* fix startup test

* fix
old-commit-hash: fe6aff01311ca3c5a4a549b0eb5d081fa1740f86
2024-01-13 22:21:43 -08:00
Justin Newberry c8cc30112d rename segmentrangereader to logreader (#30981)
* Replace multilogiterator

* replace logreader

* update readme

* fix from_Bytes

* new section

* reset before iter

* selector

* fix internal

* whitespace
old-commit-hash: 3d73512c0702598d27e04039976fe0a91d5952f0
2024-01-12 12:53:50 -08:00
Justin Newberry 3231738be9 move can replay to segmentrangereader (#30971)
can replay
old-commit-hash: 042ccb9244ac167a07d289864c99e0d169bb9e1a
2024-01-11 13:11:59 -08:00
Justin Newberry dd7921de3f replace more tools with SegmentRangeReader (#30968)
* replace lrfros

* and those ones too
old-commit-hash: 7e9843b5e6d0756bc7c17ef7338c384b7b330df0
2024-01-11 11:46:31 -08:00
pencilpusher 63608539b1 replay ui: fix typo in variable name (#30851)
fix typo in variable name
old-commit-hash: ee3544d283523044cc969065af1c4c16acba7bf0
2023-12-26 16:03:59 -08:00
Dean Lee 6ae3e95542 camerad: cleanup includes (#30782)
* cleanup includes

* continue

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ab0b26d2b8dc8b3957812856917084af2cb3df0a
2023-12-17 22:42:52 -08:00
Adeeb Shihadeh 379989e863 fixup can replay for jungle v2 and tres
old-commit-hash: ae85ee093252720b749ac07b61933b51a609511c
2023-12-13 17:00:14 -08:00
Greg Hogan 70c662bf30 replay: get api url from env var (#30562)
old-commit-hash: 7e0f0165f4a036760cb3a0c179facffbe39e15ad
2023-11-30 10:42:18 -08:00
Dean Lee 8aac0bdfff replay: support for setting a custom playback speed (#30462)
* support for setting a custom playback speed

* rename to playback speed
old-commit-hash: c5f73a748e6ea9742001d771b96346e3b5eddef9
2023-11-18 22:12:35 -08:00
Dean Lee 543ea2bf57 replay: simplify the code for allow/block list (#30449)
simplify allow/block list
old-commit-hash: da95fd3019473b1f0dd8d671c22c1e618092cdb2
2023-11-13 09:19:39 -08:00
Dean Lee 0de1648cca replay: remove deprecated support for PANDA_STATE_D_E_P_R_E_C_A_T_E_D (#30447)
old-commit-hash: 9e06525642eb46892a58371cc8daa70fba95f02a
2023-11-12 10:54:08 -08:00