Justin Newberry
414d4cd8d0
compare_logs: separate format_process_diff into a new function ( #30284 )
...
support separate
old-commit-hash: b86567d330
2023-10-18 15:12:43 -07:00
Justin Newberry
f2dcaf6f79
compare_logs: better names for short/long diffs ( #30263 )
...
* better names
* dont need that
* those too
old-commit-hash: def2b93895
2023-10-16 17:04:14 -07:00
Shane Smiskol
338987a5d2
scripts: format diff when comparing logs ( #30174 )
...
* move format diff to compare_logs to pretty print
* smaller
old-commit-hash: a1ca5dc484
2023-10-04 22:59:03 -07:00
Adeeb Shihadeh
16ec56398c
add openpilot prefix to imports ( #29498 )
...
* add openpilot prefix to imports
* more
* more
* fix docs
* fix linter
* bump submodules
* fix patched tests
* update dynamic imports
* debug
* Revert "debug"
This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b.
* fix pm test
old-commit-hash: a9626f95b6
2023-08-20 20:49:55 -07:00
Harald Schäfer
92d1e3fabb
Proc replay: field tolerance unused ( #29479 )
...
field tolerance unused
old-commit-hash: 1dea20e574
2023-08-20 13:05:18 -07:00
Justin Newberry
f33b4de80b
Ruff: b905 (strict zip) ( #29336 )
...
* added mutable default args
* most of the Bs
* add comment about lrucache
* b905
old-commit-hash: e4ead4f183
2023-08-11 16:13:51 -07:00
Adeeb Shihadeh
9b8d86e562
process replay: remove sorting before comparison ( #29072 )
...
* process replay: remove sorting before comparison
* keep ignore msgs
old-commit-hash: 716d0d5918
2023-07-20 19:22:59 -07:00
Kacper Rączy
2edd65ad4e
process_replay: helpers ( #28367 )
...
* process_replay helper
* Refactor
* refactor check_enabled uses
* fix __init__
* noqa in __init__ imports
* Move compare_logs outside of process_replay
* Move save_logs to tools.lib.helpers
* Remove save_log from compare_logs
* fix lint issues
old-commit-hash: 64377a88f9
2023-06-06 10:31:13 -07:00
Kacper Rączy
dd70d2bdf3
process_replay: drain sockets instead recv_one ( #28161 )
...
* Drain the sockets until the next cycle in python process replay
* Add waiting mechanism to native process replay, which mimics the syncing
* Sort logs when comparing them. Drain all the sockets instead of only recv_socks.
* Reverse the retrieval order of FakeSocket
* Change pub order for torqued
* Update ref commit
old-commit-hash: 12b3ffcc49
2023-05-23 12:59:09 -07:00
Kacper Rączy
ca32ac861b
process_replay: sort logs before comparing them ( #28201 )
...
* Sort logs before comparing them in process replay
* Simplify
old-commit-hash: 504768f922
2023-05-16 15:30:28 -07:00
Adeeb Shihadeh
44098cc024
navmodel: check images in replay test ( #26747 )
...
* move position
* log images
* enable test
* update refs
* ignore
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: f3a711953a
2022-12-09 22:56:32 -08:00
Adeeb Shihadeh
01db07375c
nav model replay ( #26697 )
...
* nav model replay
* set token
* fix gh actions
* update refs
* fix pc
old-commit-hash: 1da6f6a6e2
2022-12-07 19:36:30 -08:00
HaraldSchafer
a8ec6f4cfd
Rocket Launcher Model ( #25963 )
...
* 1456d261-d232-4654-8885-4d9fde883894/440 6b7d7cec-ead8-40f3-86cc-86d52c9b03fe/300
* compute only 9 tokens: 1456d261-d232-4654-8885-4d9fde883894/440 6b7d7cec-ead8-40f3-86cc-86d52c9b03fe/300
* tinygrad: cleanup gather
* 1456d261-d232-4654-8885-4d9fde883894/440 6b7d7cec-ead8-40f3-86cc-86d52c9b03fe/700
* empty commit for tests
* bump tinygrad
* dont use tinygrad matmul for now
* bump tinygrad
* 1456d261-d232-4654-8885-4d9fde883894/440 e63ab895-2222-4abd-a9a5-af86bb70e260/700
* float16 1456d261-d232-4654-8885-4d9fde883894/440 e63ab895-2222-4abd-a9a5-af86bb70e260/700
* increase steer rate cost
* Revert "increase steer rate cost"
This reverts commit 74ce9ab9be7ef17ecfec931f96851b12f37f2336.
* fork tinygrad
* empty commit for tests
* basics
* Kinda works
* new lat
* new tuning
* Move LATMPCN so scons compiles
* Update long weights
* Add tinygrad optim
* Update model ref
* update weights
* Update ref
* Try
* Error message for field ignore
* update model regf
* ref commit
* Fix onnx test
Co-authored-by: Yassine Yousfi <yyousfi1@binghamton.edu >
old-commit-hash: cb0b7375b7
2022-10-05 21:43:38 -07:00
Gijs Koning
a1143bafc8
Replay: tolerances per field ( #25116 )
...
* tolerances per field in replay
* refactor
* Remove laikad parameters
* Small comment change
old-commit-hash: 4d7b7483d7
2022-07-12 03:36:57 -07:00
Lukas Petersson
d1e21cef79
process replay: support running in parallel ( #24534 )
...
* prefix params
* set env
* prefix in manager
* filesystem except
* dont delete manager folder
* Update selfdrive/common/params.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* debug same path
* remove cleanup + same default
* dont use filesystem lib
* param symlink path
* prefix helpers
* path
* dont delete d
* parallel loop
* refactor loop
* msgq
* clean msgs
* spelling
* nestable pool
* spelling
* logreaders in parallel
* bugfix
* assert msgq
* Update selfdrive/test/process_replay/test_processes.py
Co-authored-by: Shane Smiskol <shane@smiskol.com >
* Update selfdrive/test/process_replay/test_processes.py
Co-authored-by: Shane Smiskol <shane@smiskol.com >
* assert in cereal
* folder exists
* create dirs in test
* bump cereal
* Update selfdrive/test/process_replay/process_replay.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* PR feedback
* params path in basedir
* ref commit
* param path
* bugfix
* upload_only
* param path
* Update selfdrive/test/process_replay/process_replay.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* msgq path name
* python concurrency.features
* progress bar
* remove progress bar from compare logs
* Update selfdrive/test/process_replay/test_processes.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* Update selfdrive/test/process_replay/test_processes.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* defaultdict
* context manager
* update refs
* dont get logs if upload only
* upload refs in parallel
* cleanup
* Update selfdrive/test/process_replay/test_processes.py
Co-authored-by: Shane Smiskol <shane@smiskol.com >
* cleanup
* text
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
Co-authored-by: Shane Smiskol <shane@smiskol.com >
old-commit-hash: 444d265821
2022-05-18 19:59:30 -07:00
Adeeb Shihadeh
bd71c594a2
pylint: enforce indentation (W0311) ( #24039 )
...
* pylint: enforce indentation (W0311)
* few more
old-commit-hash: 8af20af66d
2022-03-24 23:23:29 -07:00
Willem Melching
179f5ac2e7
compare_logs: catch typeError ( #23632 )
...
old-commit-hash: 5ac32705d0
2022-01-26 17:13:32 +01:00
Adeeb Shihadeh
14dbd6b1f5
process replay: handle inf and nan in absolute tolerance
...
old-commit-hash: 9941c99f7c
2022-01-12 13:34:46 -08:00
Ewout ter Hoeven
f206ebd054
Pyupgrade 3.6: Update syntax with Python 3.6+ features ( #23305 )
...
Updated Python code with Python 3.6+ features:
- utf-8 encoding is now the default (PEP 3120)
- Replace list comprehensions by Generator Expressions (PEP 289)
- Replace yield loop by yield from (PEP 380)
- Remove the (object) subclass when defining a class
- Replace the IOError alias by OSError (PEP 3151)
- Define sets with curly braces {} instead of set()
- Remove "r" parameter from open function, which is default
Co-Authored-By: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com >
Co-Authored-By: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com >
Co-authored-by: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com >
Co-authored-by: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com >
old-commit-hash: 332f568a82
2021-12-24 11:18:39 -08:00
grekiki
9e4cc1f7ff
Python: Replace more lists with generators ( #23116 )
...
* Replace lists with generators v2
* Replace set with {}
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* Replace more set() with {}
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 6951b3271d
2021-12-03 22:57:19 -08:00
Adeeb Shihadeh
ec7913cbe5
delay controls start ( #20761 )
...
* delay controls start
* shouldn't need this stuff anymore
* only delay board
* bail after 2s
* fix loopback test
* fix process replay
* update refs
* bump cereal
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: f9a961f6fb
2021-04-30 13:55:17 -07:00
Willem Melching
d8da956f0d
speed up log writing
...
old-commit-hash: f728edfd03
2021-02-17 12:06:55 +01:00
Adeeb Shihadeh
f562fdb059
add modelV2 to model replay ( #2725 )
...
* add modelV2 to model replay
* update refs
* ignore fields for modelv2
* execution time
* fix compare logs
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 8992639754
2020-12-08 22:01:34 -08:00
grekiki
83b7ec3ce1
Process replay for C++ daemons ( #2288 )
...
* more like a stash
* mem
* comment cpp
* remove some tests
* WORKSpython test_processes.py python test_processes.py
* all tests work, time to clean up
* initialize cleanup
* fix spaces
* refactor
* Update selfdrive/test/process_replay/process_replay.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* revert debug change
* mini refactor
* remove submaster
* update README
* add delay
* check for missaligned start
* Update compare_logs.py
* should finally work now, I hope...
* update comment
* real fix
* real fix now
* fix styling
* fix styling
* Update process_replay.py
* fix code review
* speed up tests
* Update selfdrive/test/process_replay/process_replay.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* Update selfdrive/test/process_replay/process_replay.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* fix reviews
* nicer code
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 870644b59e
2020-10-12 11:18:53 +02:00
HaraldSchafer
bc3b340694
Misc locationd improvements ( #1714 )
...
* I like this more
* rewind less
* bump rednose
* falling off windshield detectopr
* adjust thresholds
* this is a soft disable now
* move that
* process replay fixes
* update refs
Co-authored-by: Comma Device <device@comma.ai >
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 8e2d344135
2020-07-30 15:33:22 -07:00
Willem Melching
dcef0e394b
add tolerance to process replay compare ( #1904 )
...
old-commit-hash: 5139b827af
2020-07-22 11:50:58 +02:00
Willem Melching
76a465e0ec
Write orientation & transform in C++ ( #1637 )
...
* locationd at 20hz
* update ref
* bump cereal
* dont modify global state
* add scons files
* ecef2geodetic and geodetic2ecef
* Finish local coords class
* Add header file
* Add orientation.cc
* cleanup
* Add functions to header file
* Add cython wrapper
* y u no work?
* This passes the tests
* test rot2quat and quat2rot
* Teste euler2rot and rot2euler
* rot_matrix
* test ecef_euler_from_ned and ned_euler_from_ecef
* add benchmark
* Add test
* Consistent newlines
* no more radians supported in geodetic
* test localcoord single
* test localcoord single
* all tests pass
* Unused import
* Add alternate namings
* Add source for formulas
* no explicit tests needed
* remove benchmark
* Add release files
* Typo
* Remove print statement
* no access to raw transform matrix
* temporarily add tolerance
* handcode quat2euler
* update ref
old-commit-hash: c18e7da3c2
2020-06-09 16:44:26 -07:00
Willem Melching
a56e2b01f8
Make pylint more strict ( #1626 )
...
* make pylint more strict
* cleanup in progress
* done cleaning up
* no opendbc
old-commit-hash: 843a64c72f
2020-06-02 16:29:32 -07:00
Adeeb
5e857427ba
Enable more flake8 checks ( #1602 )
...
* enable some more flake8 checks
* some more quick ones
* bump opendbc
* e401
* e711 e712
* e115 e116
* e222
* e301
* remove that
* e129
* e701 e702
* e125 e131
* e227
* e306
* e262
* W503
* e713
* e704
* e731
* bump opendbc
* fix some e722
old-commit-hash: d9bf9f0a40
2020-05-30 20:14:58 -07:00
Willem Melching
2b60ee9531
Run mypy commit hook ( #1591 )
...
* run mypy commit hook
* fix mypy errors
old-commit-hash: 3d08dcc3b2
2020-05-28 15:05:04 -07:00
Willem Melching
e78cad8989
add progress to save_logs
...
old-commit-hash: 78c1745ed5
2020-03-05 13:24:21 -08:00
Adeeb
c6f9b68ef9
Process replay enhancements ( #1153 )
...
* process replay: exclude processes and cars
old-commit-hash: 796d5c8cca
2020-02-26 11:31:27 -08:00
George Hotz
06a02fd8bd
selfdrive/test
...
old-commit-hash: c0bfbc12c7
2020-01-17 11:16:14 -08:00
George Hotz
81dd5a50cf
root commit
...
old-commit-hash: 6c33a5c1f3
2020-01-17 10:02:52 -08:00
Vehicle Researcher
99b637c7ce
openpilot v0.7 release
...
old-commit-hash: c025b96e8a
2019-12-13 13:03:08 -08:00
Vehicle Researcher
b713eae9f8
openpilot v0.6.6 release
...
old-commit-hash: d7f0b402a8
2019-11-04 15:13:52 -08:00
Vehicle Researcher
89d1d84c70
openpilot v0.6.5 release
...
old-commit-hash: cf80f7a28b
2019-10-09 18:43:53 +00:00