Commit Graph

1626 Commits

Author SHA1 Message Date
Maxime Desroches a1a0e9e8a0 switch to uv (#32853)
* switch to uv

* pin back numpy

* remove lock

* try without cache

* test with no cache

* no cache for all

* debug

* remove debug

* remove pygame dep

* Update README.md

* remove lower bound

* update repo maintenance job

* upgradable

* repo maintenance

* copy poetry api

* build system

* unpin pygame

* readd cache

* readd cache

* basic command

* lower delay

* macos

* fix authors

* macos fix

* use uv

* preview

* other way

* new metadrive

* uv sync

* cp lock in docker

* fix docker

* use hatchling

* fix devcontainer

* fix container

* path

* uv run

* cleanup

* pre-commit

* format

* release_file
old-commit-hash: 12d5afba73
2024-06-28 00:04:05 +00:00
StefanLekanic-SYRMIA 5887093eed LogReader: print number of missing rlogs (#32830)
* count rlogs

* minimization changes

* cache to avoid duplicate checks

* no real point in checking qlogs to just show the warning

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 504dd4543d
2024-06-26 22:15:13 -07:00
Maxime Desroches 42163dde76 ui: add missing qt package on 24.04 (#32827)
fix qml
old-commit-hash: 0922ab2b8d
2024-06-25 02:11:35 +00:00
Dean Lee 26b02b2ed4 cabana: fixed row height issue in multi-line hex display (#32816)
fix multile line bytes
old-commit-hash: 8b7ffc96b5
2024-06-24 08:54:17 -07:00
Dean Lee 43197fb8e8 cabana: fix chart value tip flickers when the mouse moves over it (#32796)
fix chart value tip flickers
old-commit-hash: 5aac2e5a89
2024-06-21 13:29:40 -07:00
Dean Lee 1133898f68 replay: fix hangs on exit (#32795)
fix hang on exit
old-commit-hash: 776b08d561
2024-06-20 00:16:14 -07:00
Adeeb Shihadeh d152f7c0f1 remove nav apt dependencies (#32792)
old-commit-hash: 9a084a73c5
2024-06-19 19:59:48 -07:00
Adeeb Shihadeh 80c83532e8 macOS: remove pyenv
old-commit-hash: 5341512fce
2024-06-19 19:49:49 -07:00
Adeeb Shihadeh 3b8ed67aa3 remove navigation (#32773)
* remove navigation

* lil more

* fix cabana

* revert for now

* fix docs

* move that over

* lock

* rm assets
old-commit-hash: e491c9d964
2024-06-19 19:14:13 -07:00
Maxime Desroches 4558fbd824 Remove pyenv (#32786)
* no pyenv

* better

* check poetry

* docker

* syntax

* manual env

* pre-commit

* revert

* format
old-commit-hash: de75372880
2024-06-19 16:55:23 +00:00
royjr 5f0c5f5616 Ubuntu 24.04 fix setup (#32783)
* fix tk-dev

* fix missing pip

* Update tools/install_python_dependencies.sh

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 987b0d9e03
2024-06-18 11:27:28 -07:00
Maxime Desroches 1b836bdb86 Ubuntu 24.04 (#32624)
* noble build

* workflow

* symlink

* map only for noble

* sym

* add qt to cppcheck

* cppcheck noreturn in non void funct

* get kaitai header

* kaitai header

* syntax

* try new pyopencl

* try this version

* install lsb-core manually

* support old 20.04 lsb-core

* try arm

* try latest pyopencl

* revert

* use pocl icd

* no lock

* no arm pyopencl

* new intel opencl runtime

* pin filelock

* undo

* glsl version

* new version

* build test

* remove test

* new metadrive

* remove glsl restrictions

* <optional>

* Update .github/workflows/tools_tests.yaml

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

* cache

* new cache

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 5c4ea14a3c
2024-06-18 03:30:32 +00:00
Maxime Desroches 5658a6a9ea cabana: include optional (#32772)
optional
old-commit-hash: 3de6ee5ee3
2024-06-17 20:24:04 +00:00
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: 54da59c1fe
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: 865b98a5c4
2024-06-16 12:32:45 -07:00
Adeeb Shihadeh c390a678e7 sim: remove docker script
old-commit-hash: 02ed9c584c
2024-06-16 12:20:15 -07:00
Shane Smiskol 9f50db15c0 LogReader: try zst on internal source (#32751)
* internal source list files like azure api

* messy but works

* no limit

* simpler

* clean up

* clean up

* clean up

* that's obvious

* better

* we need to unfortunately return a url, so best to take a naive approach for now

* todo

* fix

* clean up
old-commit-hash: b45caf4033
2024-06-14 01:12:19 -07:00
Shane Smiskol 644156420b LogReader: revert broken check
it returns files OR None

old-commit-hash: 68e22faa29
2024-06-14 00:30:14 -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: bc303df6a0
2024-06-14 00:08:58 -07:00
Dean Lee a854878499 cabana: Fix visibility issue for a single data point in series (#32749)
Fix visibility issue for a single data point in series
old-commit-hash: 38529c5057
2024-06-13 23:38:02 -07:00
Shane Smiskol 8f402f29a3 SegmentRange: remove timestamp (#32750)
* add deprecation warning

* remove timestamp

* Update logreader.py
old-commit-hash: d5ce4b3085
2024-06-13 23:19:32 -07:00
Shane Smiskol cd8d440c86 LogReader: support reading zst logs from Azure (#32745)
* staging api

* other stuff

* ugh this should really not be duplicated, we already check the max segnum in Route class

* better error message!!

* more better

* clean up

* clean up

* breaks again
old-commit-hash: a0bbc005b6
2024-06-13 22:43:24 -07:00
Shane Smiskol ed80e9357a LogReader: improve error messages (#32747)
* better error messages

* clean up
old-commit-hash: 3ede1e2a7c
2024-06-13 22:37:00 -07:00
Shane Smiskol e88cbb0162 add zstd Python library (#32731)
* add zstd

* fix

* uploader

* logreader: zst support

* caps

* only logreader
old-commit-hash: 04a93dd849
2024-06-12 21:14:23 -07:00
Dean Lee 450d012166 logreader.py: optimize event loading and sorting in _LogFileReader (#32729)
* improve logfilereader

* less changes
old-commit-hash: c64bca97ba
2024-06-12 14:20:06 -07:00
Adeeb Shihadeh 632060c0dc remove .python-version (#32714)
* remove .python-version

* no cp
old-commit-hash: ddfb31f1bf
2024-06-11 16:25:24 -07:00
Mauricio Alvarez Leon 008008b03a Update to Python 3.12 (#32548)
* 3.12

* pprofile is broken

* use modified metadrivepy3-12

* 0.3.0 metadrive

* add metadrive/commaai git dependency

* metadrive git set

* pin sounddevice 0.4.6

* datetime.utcnow() deprecation

* poetry lock

* make datetime not aware

* poetry lock

* pin pytools

* google_crc32c wheel

* unpin sounddevice

* clean metadrive

* use python crc

* mypy

* 3.12.4

* allow python3.11

* test

* no pip

* poetry

* better

* better

* merge

* remove

* try

* test

* try  this

* snok

* python

* simpler

* setuptools

* lower

* try

* try

* work?

* ubuntu deps

* ubuntu

* try

* remove

* move

* remove this

* names

* Update .github/workflows/tools_tests.yaml

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

* python<4

* <3.13

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
old-commit-hash: 148eaf8fa6
2024-06-11 20:45:15 +00:00
Andrei Radulescu 5ef789daf5 compressed_vipc.py fixes (#32699)
* Restored VISION_STREAM_* to original index order

* Register exit handler
old-commit-hash: 4581f6c368
2024-06-11 07:57:56 -07:00
commaci-public 0ee93c6a90 [bot] Update Python packages and pre-commit hooks (#32682)
* Update Python packages and pre-commit hooks

* fix linter

* poetry lock

---------

Co-authored-by: Vehicle Researcher <user@comma.ai>
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
old-commit-hash: 71063d66cd
2024-06-10 17:19:01 -07:00
Hoang Bui c34f76bc1a tools/rerun: correct reset to defined default blueprint (#32692)
old-commit-hash: 1e3d62c88a
2024-06-10 16:58:51 -07:00
Harald Schäfer 7e4edcc8d5 MSGQ refactor: cleanup outstanding issues (#32685)
* Rm sim dockerfile from bad merge

* Add watch back

* Fix watch3 compilation
old-commit-hash: 1b2bd205b8
2024-06-10 13:18:47 -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: e70dc90a45
2024-06-09 17:44:34 -07:00
Harald Schäfer eb2e5e335d Sim: don't need nvidia docker anymore (#32676)
Dont need nvidia docker anymore
old-commit-hash: b573a4cc48
2024-06-09 14:49:20 -07:00
Dean Lee 40de8d615f replay: add stop() function (#32673)
add stop() func
old-commit-hash: 3f84fe3557
2024-06-09 11:04:21 -07:00
Dean Lee 8bdeb04e72 cabana: fix potential dangling pointer Issue (#32672)
Fix Potential Dangling Pointer Issue
old-commit-hash: 6688d7b91c
2024-06-09 11:04:10 -07:00
Adeeb Shihadeh 8472df65ea tools/sim: remove special docker image (#32659)
old-commit-hash: 541b5cbf13
2024-06-08 09:18:28 -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: e71ec4e8d7
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: 1d61f320a8
2024-06-05 08:49:58 -07:00
Adeeb Shihadeh 2c6829ed67 boardd is pandad (#32628)
* boardd is pandad

* rename tests
old-commit-hash: 34e329649d
2024-06-04 19:16:55 -07:00
Shane Smiskol 19d9e7ac6b revert marking some files as unexecutable (#32613)
* this is not a test

* these are not tests!
old-commit-hash: c7b3ece37e
2024-06-03 17:19:27 -07:00
Adeeb Shihadeh 86b6103657 test_*.py files are no longer executable (#32610)
* test_*.py files are no longer executable

* cleanup empty lines

* update precommit

* fixme

* enable

* build
old-commit-hash: c59887c810
2024-06-03 15:48:56 -07:00
Hoang Bui 10b536f73f tools/rerun: streaming to one Viewer from multiple processes (#32595)
* one spawn only

* one blueprint

* comment
old-commit-hash: f717e1e4e6
2024-06-02 21:05:15 -07:00
Hoang Bui 86e2641636 Simulator: update MetaDrive to latest (#32576)
* bump metadrive

* comment
old-commit-hash: aa081f5748
2024-05-30 11:25:21 -07:00
Dean Lee cdea057d4b cabana: fix panda stream issues (#32537)
fix segfault
old-commit-hash: 6b3d2b5a80
2024-05-28 12:02:15 -07:00
Hoang Bui 8d51127ef7 tools/simulator: Remove superseded build script for sim docker (#32546)
* remove

* add those back
old-commit-hash: d6a738bef7
2024-05-27 09:22:41 -07:00
Adeeb Shihadeh 549bc535cd Revert no pyenv (#32547)
* Revert "`ubuntu_setup`: fix `No module apt_pkg` error when setting up (#32526)"

This reverts commit d850f07acb58e4fc6d530241a31c0917c2b6613e.

* Revert "Removal of pyenv (#32512)"

This reverts commit 41f72d5ca75aab9a9beb3181aca9f177e5a003f8.
old-commit-hash: 1eb938b8e8
2024-05-26 21:21:50 -07:00
Adeeb Shihadeh cc4f53e6c6 manager: move to system/ (#32538)
* manager: move to system/

* one more
old-commit-hash: accdade4cf
2024-05-25 12:41:17 -07:00
Adeeb Shihadeh f1c241361c speedup pj demo test
old-commit-hash: cd21d64058
2024-05-25 11:40:10 -07:00
Hoang Bui 60b476a5b6 CI/simulator: metadrive test starts when OP engaged and world is initialized (#32523)
* fix metadrive start time

* fix
old-commit-hash: 613f73c53f
2024-05-25 10:37:07 -07:00
Mauricio Alvarez Leon f90655a1ff `ubuntu_setup`: fix `No module apt_pkg` error when setting up (#32526)
* no apt_pkg fix

* check arch

* fix if

* cleanup

* reorder

* increase shm size for selfdrive tests

* add comment explaining reinstall

* refine
old-commit-hash: f4322666c6
2024-05-24 21:38:23 -07:00
Mauricio Alvarez Leon e665f05efe Removal of pyenv (#32512)
* initial removal of pyenv

* remove .python-version copy in dockerfile

* successful image build with ppa

* update prompt

* pip install scons

* apt install scons

* finally fix dockerfile to work with venv

* cleanup userflow

* increase memory to 100m

* typos

* wrong variable

* lmao
old-commit-hash: f5752121f8
2024-05-23 07:56:18 -07:00
Hoang Bui b8fd64f3e7 CI: Drive a loop in MetaDrive (#32308)
* finish failure on crossing any line

* update

* standardize queue messages

* update control_command_gen

* fix

* fix logic

* update closing type

* update test

* update logic

* update test

* add out of lane to local

* ci arrive_dest

* pytest integration

* update ci_config

* fix ruff

* move test termination to time

* better

* better order

* curve_len

* add buffer

* cleanup

* cleanup

* cleanup

* cleanup

* out_of_lane

* cleanup

* merge tests

* run 90s

* change test name

* local out of lane detect

* out_of_lane

* static anal

* cleanup

* test_duration

* change setup_class -> setup_create_bridge

* no print state during test

* new out_of_lane detect

* cleanup print in common.py

* fix

* fix

* check distance vs time

* cleanup

* cleanup increase check time

* minimum bridge test time

* wording

* cleanup
old-commit-hash: fe9a091f11
2024-05-22 10:04:43 -07:00
Adeeb Shihadeh 64c444544f more apt dependency cleanup (#32502)
rm
old-commit-hash: 406f30add4
2024-05-21 15:40:00 -07:00
Mauricio Alvarez Leon eca631af2d minimize ubuntu deps. needed to run build openpilot (#32492)
* minimize common deps list

* fix

* fix endline error

* add portaudio3

* add build-essential

* upload old loggerd deps

* libqt5charts5-dev

* libncurses5-dev

* libbz2-dev

* libsqlite3-dev
old-commit-hash: 1203f5eeb3
2024-05-20 20:47:53 -07:00
Adeeb Shihadeh 3358745103 ruff: enable UP
old-commit-hash: b2e4c64cf8
2024-05-20 17:43:54 -07:00
macdoos 52dbb6eae4 split out dev apt dependencies (#32476)
* init

* add more extra packages

* update Dockerfile

* cleanup

* Update Dockerfile.openpilot_base

* needed to build

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e0fa26b1a4
2024-05-20 17:35:33 -07:00
Hoang Bui acd61af9fc CI/simulator: Fix metadrive test `pyopencl.CompilerWarning` (#32487)
* add pytest.mark.filterwarnings

* remove -W pyopencl.CompilerWarning

* add comment
old-commit-hash: f3f22a5698
2024-05-20 14:41:31 -07:00
Mauricio Alvarez Leon 1600939a38 deps: add rerun-sdk into pyproject.toml (#32472)
* add rerun-sdk into pyproject.toml

* install/wheel cleanup

* unpin version
old-commit-hash: bd6bea39bf
2024-05-18 17:21:04 -07:00
Adeeb Shihadeh 72b6504595 Revert "ui: single-threaded CameraView (#32291)"
This reverts commit 6adb53abf4d483e70bbe36725588a05cf75681fb.

old-commit-hash: c9531b463a
2024-05-18 16:34:03 -07:00
Adeeb Shihadeh 0585f670f1 remove libopencv-dev (#32469)
old-commit-hash: 48e24321e8
2024-05-18 14:29:49 -07:00
Hoang Bui 6c438b8902 CI: fix metadrive test (#32457)
* fix test

* this?

* fix

* this?

* deprecation warning inside

* comment
old-commit-hash: 950aeae544
2024-05-18 14:04:22 -07:00
Adeeb Shihadeh a06c569595 remove gcc from mac_setup.sh
old-commit-hash: 3e023146d2
2024-05-17 21:06:18 -07:00
Dean Lee 4bade99d62 ui: single-threaded CameraView (#32291)
single thread cameraview
old-commit-hash: dd6e2a400b
2024-05-17 20:18:41 -07:00
Adeeb Shihadeh 678e05be08 remove dead webcam dockerfile
old-commit-hash: 52acae5797
2024-05-17 20:00:10 -07:00
Hoang Bui 565e06b66a Simulator: standardize queue messages (#32313)
* standardize queue messages

* update control_command_gen

* fix

* fix logic

* update closing type

* qmessagetype -> enum

* update type hint

* old close() makes more sense

* cleanup

* fix

* revert that

* revert that

* better name

* actually this is better
old-commit-hash: 630e152900
2024-05-17 19:51:07 -07:00
Adeeb Shihadeh eaa6fe2510 remove old valgrind replay test
old-commit-hash: e1a697fee5
2024-05-17 19:43:47 -07:00
cl0cks4fe 639a634f7c Unittest to pytest (#32366)
* add pytest-asyncio

* switch common

* switch selfdrive

* switch system

* switch tools

* small fixes

* fix setUp and valgrind pytest

* switch to setup

* fix random

* switch mock

* switch test_lateral_limits

* revert test_ui

* fix poetry.lock

* add unittest to banned-api

* add inline ignores to remaining unittest imports

* revert test_models

* revert check_can_parser_performance

* one more skip

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dd9d5d4528
2024-05-17 11:01:44 -07:00
Greg Hogan a17639bddb logreader: skip internal source if connection refused (#32418)
* logreader: skip internal source if connection refused

* fix indentation

* fix spacing

* explicit ipv4 and tcp
old-commit-hash: 2a46d71fc8
2024-05-13 16:02:28 -07:00
Adeeb Shihadeh 6e0d84d829 rerun.io proof of concept (#32416)
* Adding demo version for acceleration only

* Adding, plot any event

* Adding dynamic blueprint creation and menu to choose what to plot

* Adding, pool of processes for faster data visualization

* Adding, install rerun if not present

* Adding. thumbnail support

* Refactoring, minor cleanup

* -Use rerun pre-release
-Remove json as a middle format
-Replace recursion with stack-based approach

* Refactoring, using services from cereal instead of hardcoding them

* Use of lr.run_across_segments instead of pool,
Use of python dict instead of capnp objs - better performance
Use LogReader syntax

* Enable logging of liveTracks, pandaStates

* Use of plotjuggler user experience

* Fixing bug in log_msg function

* cleanup

---------

Co-authored-by: savojovic <jovo.savic00@gmail.com>
Co-authored-by: savojovic <74861870+savojovic@users.noreply.github.com>
old-commit-hash: 1c481c5ad3
2024-05-13 15:04:37 -07:00
Julio Salamanca 190fec65f4 Remove qlog param from demo example (#32406)
Remove qlog param from demo instructions

qlog param was removed in this commit

fae2400f40
old-commit-hash: 6aa17ab10a
2024-05-12 17:00:17 -07:00
Shane Smiskol bd843cc5e7 Cleanup auto_fingerprints.py (#32377)
* messyyy

* super clean car wash

* rm
old-commit-hash: b895095031
2024-05-08 15:58:27 -07:00
Dean Lee a2226ad906 cabana: Implement Remote Route Browsing Feature (#32332)
browse remote routes
old-commit-hash: b551e7c1a2
2024-05-07 19:59:30 -07:00
Shane Smiskol 43cac3cf24 PlatformConfig: clean up and print all flags (#32369)
* script to print flags

* don't need

* SAL

* back

* fix
old-commit-hash: f597d63bf6
2024-05-07 15:00:02 -07:00
Adeeb Shihadeh 0020672bfa remove tools/zookeeper/
old-commit-hash: f93b139098
2024-05-06 20:01:15 -07:00
Adeeb Shihadeh 124b4566db remove foxglove, rerun is the future
old-commit-hash: 1de6428896
2024-05-06 16:29:23 -07:00
Shane Smiskol 40fea75562 debug test_models script fixes (#32362)
* some things were renamed without checking

* fix that
old-commit-hash: e5107b1eab
2024-05-06 15:01:06 -07:00
Hoang Bui 29a1763d01 CI/Simulator: Add Metadrive test to CI (#32352)
* works consistently

* ci gha

* fix

* navd

* fix

* cleanup

* change button

* cleanup

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: aca01365e6
2024-05-05 16:32:08 -07:00
Dean Lee aa7d828769 cabana: fix the panda serial selector disappeared after `buildConfigForm()` (#32342)
old-commit-hash: 5f8b53be33
2024-05-04 09:40:54 -07:00
Dean Lee 60387b191f replay: fix hang issue on system wake-up (#32341)
fix hang issue on system wake-up
old-commit-hash: c0a2ce31ee
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: d72f000d98
2024-05-03 02:42:29 -07:00
Adeeb Shihadeh cec27f9db5 prep for ubuntu 24.04 (#32307)
* update to ubuntu 24.04

* latest

* revert those

* fix that

* vla

* try that

* fix uid

* keep 20.04 support

* just prep for now
old-commit-hash: a44add160e
2024-04-28 16:24:04 -07:00
Dean Lee 65660350dd cabana: show enum string in chart tooltip (#32303)
old-commit-hash: 37877185f8
2024-04-27 16:31:48 -07:00
Dean Lee e7aab62050 cabana: increase cache limits (#32295)
old-commit-hash: 3efd0ff4fa
2024-04-25 10:35:49 -07:00
Mauricio Alvarez Leon 8c69ae5381 update pip/poetry versions (#32289)
old-commit-hash: bbbd510fcc
2024-04-24 19:47:22 -07:00
Dean Lee e41bd18540 replay: shared decoder context (#32255)
share decoder context

cleanup includes
old-commit-hash: b13456f81f
2024-04-24 19:44:18 -07:00
Dean Lee f372bf3a1b cabana: some improvements (#32161)
some improvements
old-commit-hash: 2d1078ee5b
2024-04-24 15:56:25 -07:00
Dean Lee e756325451 cabana: improve `DBCFile::parse()` (#32160)
improve parse()
old-commit-hash: a6396be53e
2024-04-24 15:55:58 -07:00
Dean Lee 9118013d9c cabana: refactor HistoryLog for simplification and enhancements (#32284)
old-commit-hash: 5e61775561
2024-04-23 09:53:50 -07:00
Dean Lee df13fe2ead replay: optimize memory usage with `MonotonicBuffer` (#32278)
Optimize Memory Usage with MonotonicBuffe
old-commit-hash: bbd1648f05
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: 618d73efd0
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: bab8cdfdef
2024-04-21 22:34:24 -07:00
Dean Lee 372bea14e2 replay: bug fixes and improvements (#32193)
old-commit-hash: 2c409e0980
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: a824bd75ef
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: 8124ba5f63
2024-04-17 10:05:32 -07:00
Shane Smiskol accfaa29af Volkswagen: fingerprint on VIN chassis code (#32148)
* add function signature and behavior comment

* add test

* move chassis codes to platform config!

* add a shared chassis code test

* function

* test matching

* this commit isn't complete yet

* Revert "this commit isn't complete yet"

This reverts commit ae77d5cd54.

* need to check WMI

* TODO: test WMI

* test wmi

* radar FW sanity check

* fix test

* fixes from merge

fixes from merge

* whoops

* fix static analysis!

* do match_fw_to_car

match_fw_to_car takes vin

* makes sense to keep it one function, and we can return exact or fuzzy!

* clean up

* kinda pointless

* fix more tests

* back to function being only fuzzy

* revert test_fw_fingerprint

* revert test_fw_fingerprint

* simplify

* clean up/fixes

* rename test

* less duplicatey WMI descriptions

* fix

* convert to enum

* I am confident about these WMIs

* these are also good

* we support 5N AUS/NZ and NAR (North American) AX Tiguans

fixes

* Tiguan also Mexico

* only one user for caddy

* got from the test route

* check that the gateway type matches the platform (each platform has 1 or 2 types)

* ~gateway~ -> exact FW match

* remove re

* ensure WMIs are set

* actually no reason to delete

* move comment up to the platform config

* proper wmis typing

* spacing

* flip
old-commit-hash: 6acf763db4
2024-04-12 22:00:03 -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: bf61e92518
2024-04-09 19:39:24 -07:00
Justin Newberry 6cc3c1ee0f jenkins: publish casync releases from device (#32142)
* publish in ci

* overwrite

* publish in ci

* fix

* test it

* Revert "test it"

This reverts commit b3de51dc69.

* use right token

* cleanup after uploading

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 8364cd2f2c
2024-04-09 11:38:18 -07:00
Dean Lee 620f74d3b9 replay: use `clock_nanosleep` for precise waiting on the scale of nanoseconds (#32125)
use clock_nanosleep
old-commit-hash: 354cbe5a26
2024-04-08 11:59:17 -07:00
Shane Smiskol 972fa0b086 missing shebang
old-commit-hash: 1c6924ac67
2024-04-05 15:10:14 -07:00
Shane Smiskol 76650793ad make fox.py executable
old-commit-hash: ab744b7344
2024-04-05 15:04:38 -07:00