Shane Smiskol
d684d8f0f6
Reapply "selfdrive/car: ban imports from external modules" ( #32993 ) ( #32994 )
...
* Reapply "selfdrive/car: ban imports from external modules" (#32993 )
This reverts commit 35a4a773f1
.
* controls will just use controls
* also these
* ignore
10 months ago
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
.
10 months ago
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>
10 months ago
Dean Lee
045b9f20b7
improve get_torque_params ( #32586 )
...
* Loading torque data only once and reusing it across function calls.
* apply review
* still check only one entry
* fix that
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
11 months ago
Shane Smiskol
7cfd91bb69
Restore lateral limits report ( #32640 )
...
* stash
* staaaaash
* clean up
* more clean up
* fix
fix
* fix
* stash
clean up
* more
* this is just simpler to understand
* explicitly check
11 months ago
Adeeb Shihadeh
c59887c810
test_*.py files are no longer executable ( #32610 )
...
* test_*.py files are no longer executable
* cleanup empty lines
* update precommit
* fixme
* enable
* build
11 months ago
cl0cks4fe
dd9d5d4528
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>
12 months ago
Shane Smiskol
692a21e4a7
lateral limits: remove Subaru exception ( #32244 )
...
* remove exception
* update Outback params
* clean up
* adjust to the upper limit
* don't change control, only docs
* rough
1 year ago
Justin Newberry
b0eb3ba4f4
cars: platform enums -> prepend brand name ( #31927 )
...
* with brand name
* migrate
* Fix
* fixes
* more
* passes
* fix
* fix the doc
* collects
* these too
* more stuff
* body exception :/
* more
* hardcode i guess
* update ref
* toyota
* more toyota
* and here
* final!
* fix notebooks and ccs
* move this here
1 year ago
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 56ec18bb6b
.
* revert changes to third_party/
* manual type fixes
* explicit Optional wrapping capnp objects
1 year ago
Shane Smiskol
d689a4e653
Fix string indentation ( #30943 )
...
* fix bad spacing
* more
* these aren't important
1 year ago
Justin Newberry
dde225221e
CI: run unittests in parallel with xdist ( #29756 )
...
* parallel tests
* review suggesions
* add to pyproject
* add a bit more buffer on that
* fix rare athena issue
* remove from pypoetry
2 years ago
Adeeb Shihadeh
a9626f95b6
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 db5e13b991
.
* fix pm test
2 years ago
Justin Newberry
cf64b27168
Linter: Fix >160 line length test ( #29287 )
...
* test
* fix line length
* fix line length
* fix file size
* revert poetry
* cleanup for PR
2 years ago
Shane Smiskol
88ce2f7a52
Test lateral limits: fix jerk calculation ( #27654 )
...
* fix test
* add lower jerk limit, lower up tolerance
* add to ignored cars
2 years ago
Shane Smiskol
8b8c4d810f
test lateral limits: remove Konas from blacklist ( #27424 )
...
* remove konas from blacklist
* update measured accel
* remove
* no longer needed
2 years ago
Shane Smiskol
b00bc4f57e
Car interface: require fingerprint and FW versions to get params ( #26932 )
...
* require fingerprint and FW versions
* add get_non_essential_params()
* comment
* all required
* classmethod, need to allow subclasses to override _get_params
* fix that
* fix
* fix
* wrong fix 🤦
2 years ago
Shane Smiskol
aab33b1c5f
Lateral jerk unit test ( #25759 )
...
* stash
* more test
* less test
* clean test
* no angle
* add tolerance
* fix gm
fix gm
* test both
* lower some rates on hkg
* stash
* simpler
* bump panda
* Revert "bump panda"
This reverts commit f2137c2211
.
* only torque
* make kona pass
* duplicate __init__
* move
* half clean up
* half clean up
* more clean up
* more clean up
* fix static analysis
* calculate over 0.5 seconds
* limit to max steer
* type annotation
* calc once
2 years ago