Commit Graph

242 Commits

Author SHA1 Message Date
Andrei Radulescu 4e73b76a12 fix multiprocessing issue with can_replay.py on macOS (#33139)
fix multiprocessing issue with can_replay.py on mac
2024-07-30 10:34:46 -07:00
Dean Lee ade13722cd replay: add support for decompressing ZST log files (#32910)
* Add Support for Decompressing ZST Log Files

* 2 space and check magic number

* match BZ2

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-07-29 13:48:06 -07:00
Kacper Rączy c96dbd5a0b Fix msgq context overrides (#33014)
* Fix msgq context overrides

* Remove unneccesary changes

* add reset_context helper

* Remove redundant import
2024-07-18 20:19:39 -07:00
Shane Smiskol 35a4a773f1 Revert "selfdrive/car: ban imports from external modules" (#32993)
Revert "selfdrive/car: ban imports from external modules (#32973)"

This reverts commit 83d4623590.
2024-07-15 11:14:04 -07:00
Dean Lee 83d4623590 selfdrive/car: ban imports from external modules (#32973)
* lint import

* Update selfdrive/car/__init__.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-07-15 11:12:24 -07:00
savojovic 75b07c042f Replace ui.py with a Rerun visualizer (#32850)
* Replace ui.py with rerun

* Visualizing radarpoints

* Visualizing all points

* Code clean-up

* Merging matrices into one

* Removing pygame depndency

* Replacing ui.py with rp_visualization.py

* Minor fix, changing color names

* Update README.md
2024-07-13 13:36:21 -07:00
Dean Lee f1416f337c replay: update README (#32966)
update README
2024-07-12 16:42:10 -07:00
Dean Lee 36815cc6d5 cabana: bug fixes and improvements (#32934)
bug fixes and improvements
2024-07-08 14:50:31 -07:00
DevTekVE 3c74ad145e Processor definition check for __APPLE__ has a typo on replay (#32930) 2024-07-08 17:10:26 +00:00
Dean Lee 632c484dd5 replay: handle route not found error with user warning message (#32895)
handle 404
2024-07-03 15:27:54 -07:00
Dean Lee 776b08d561 replay: fix hangs on exit (#32795)
fix hang on exit
2024-06-20 00:16:14 -07:00
Dean Lee 54da59c1fe cabana: improved error messaging (#32768)
* check user authenrication

* Update tools/cabana/streams/replaystream.cc

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-06-17 12:44:31 -07:00
Dean Lee 865b98a5c4 cabana: avoid dead locks and improve responsiveness (#32740)
avoid dead locks and improve responsive
2024-06-16 12:32:45 -07:00
Harald Schäfer bc303df6a0 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
2024-06-14 00:08:58 -07:00
Harald Schäfer e70dc90a45 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>
2024-06-09 17:44:34 -07:00
Dean Lee 3f84fe3557 replay: add stop() function (#32673)
add stop() func
2024-06-09 11:04:21 -07:00
Harald Schäfer e71ec4e8d7 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
2024-06-06 14:31:56 -07:00
Dean Lee 1d61f320a8 cabana: stop stream thread before exiting main event loop (#32634)
stop stream thread before exiting main event loop
2024-06-05 08:49:58 -07:00
Adeeb Shihadeh 34e329649d boardd is pandad (#32628)
* boardd is pandad

* rename tests
2024-06-04 19:16:55 -07:00
Dean Lee c0a2ce31ee replay: fix hang issue on system wake-up (#32341)
fix hang issue on system wake-up
2024-05-03 10:46:39 -07:00
Dean Lee d72f000d98 cabana: Improve seeking and zooming (#32334)
* Improve seeking and zooming

* No repeated calculation of freq

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

cleanup includes
2024-04-24 19:44:18 -07:00
Dean Lee bbd1648f05 replay: optimize memory usage with MonotonicBuffer (#32278)
Optimize Memory Usage with MonotonicBuffe
2024-04-22 19:21:42 -07:00
Dean Lee 618d73efd0 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>
2024-04-22 13:22:53 -07:00
Dean Lee bab8cdfdef Cabana: bug fixes (#32272)
* Fix SIGSEGV due to thread race conditions after seeking

* adding ID as a secondary sorting factor

* fix gaps
2024-04-21 22:34:24 -07:00
Dean Lee 2c409e0980 replay: bug fixes and improvements (#32193) 2024-04-21 17:09:17 -07:00
Dean Lee a824bd75ef replay: refactor Event to remove the readers (#32252)
Refactor struct Event to remove the MessageReader from it
2024-04-19 11:15:34 -07:00
Dean Lee 8124ba5f63 replay/framereader: no longer cache all AVPacket instances in memory (#32236) 2024-04-17 10:05:32 -07:00
Dean Lee bf61e92518 cabana: gray out inactive messages (#32121)
* improve message list

remove TODO

* improve sort

* remove translate

* fix seeking issue
2024-04-09 19:39:24 -07:00
Dean Lee 354cbe5a26 replay: use clock_nanosleep for precise waiting on the scale of nanoseconds (#32125)
use clock_nanosleep
2024-04-08 11:59:17 -07:00
Dean Lee b8f5f50d39 replay/route: adds retry on network failures (#31948) 2024-03-30 17:37:14 -07:00
Dean Lee 0a2a3dfab7 replay/cabana : support segment range (#32026)
* support segment range

* include <QRegularExpression>
2024-03-27 09:47:18 -07:00
Dean Lee 028f6938b2 ui.py: quit if the "X"(exit) button is clicked (#31949) 2024-03-21 10:58:48 -07:00
Dean Lee d647361fae replay: get route datetime from INIT_DATA (#31913)
get datetime from INIT_DATA
2024-03-19 11:46:39 -07:00
Dean Lee e79cb0edaf replay: fix segfault in Replay::queueSegment (#31902) 2024-03-17 21:55:27 -07:00
Cameron Clough 4dd5fd4619 ui.py fix typo (#31870) 2024-03-14 15:00:16 -07:00
Adeeb Shihadeh e3589e4b5c refactor camera transformations (#31818)
* refactor camera transormations

* update users

* more stuff

* more fix

* swap

* tici

* lil shorter
2024-03-10 16:56:50 -07:00
Adeeb Shihadeh fd51bfb27b tools: update replay route parsing for timeless format 2024-03-07 18:57:59 -08:00
Adeeb Shihadeh 9b2665f0c1 can_replay fixups for bxcan hw 2024-03-02 12:23:46 -08:00
Justin Newberry b0496d8294 can_replay: log fingerprint for hardcoding (#31671)
* log

* quotes
2024-03-01 13:28:58 -08:00
Justin Newberry edd26acdc3 can_replay: add type hint (#31601)
type hint
2024-02-26 16:26:01 -08:00
Cameron Clough 995250ae49 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
2024-02-24 16:41:23 -08:00
Justin Newberry 3f104f3fbd fix static analysis 2024-02-21 11:26:49 -08:00
Adeeb Shihadeh e7695c3f32 add power cycling to can_replay 2024-02-21 11:12:56 -08:00
Adeeb Shihadeh daceb171bd bump cereal (#31392)
* bump cereal

* update those

* update refs

* bump cereal

* bump

* bump cereal

* bump

* fix

* bump

* typo:
2024-02-09 21:44:23 -08:00
Adeeb Shihadeh 3972073fd4 tools: fix up can_replay 2024-02-04 14:48:06 -08:00
Harald Schäfer e6c97c3846 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>
2024-01-21 12:09:48 -08:00
Justin Newberry 5c2b7882bf speedup replay test (#31086)
* speedup replay test

* better name

* comment not required
2024-01-19 14:39:08 -08:00
Justin Newberry 61fe705160 LogReader: fix plotjuggler not reading properly (#31023)
* fix plotjuggler

* simpler

* fix juggler

* fix that
2024-01-16 12:40:49 -08:00
Justin Newberry 7d400112df LogReader: move opci to tools/lib (#31021)
move opci
2024-01-16 10:58:51 -08:00