Shane Smiskol
0739d79a51
cars: remove some external imports ( #33133 )
...
* ford and gm
* clean that up
* also this
* honda
* temp fix
* move into selfdrive.car
* clean up
* more
1 year ago
Maxime Desroches
9536dd07c6
unpin numpy ( #33132 )
...
* unlock numpy
* remove old cache
* sheel
* lock
* remove temp
* depends
* export
* put this back
* use __version__
* move this
---------
Co-authored-by: quebec <quebec@quebec.attlocal.net>
1 year ago
Maxime Desroches
01c0756974
Remove control usage ( #33103 )
...
* manual matrix exp
* remove control
1 year ago
Harald Schäfer
3bc1b173d2
Longcontrol: engage into stopped state when needed ( #33042 )
...
test stay stopped
1 year ago
Jason Wen
a654e5bd05
espActive: `IMMEDIATE_DISABLE` -> `SOFT_DISABLE` ( #33003 )
...
* espActive: `IMMEDIATE_DISABLE` -> `SOFT_DISABLE`
* only stock long
* just soft disable for now
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
1 year ago
Greg Hogan
4b794773b0
use rounded constant instead of hard-coded value for incrementing set speed ( #32992 )
...
* use rounded constant instead of hard-coded value for incrementing set speed
* better comment
1 year 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
.
1 year 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>
1 year ago
Shane Smiskol
71dd1e2ff6
long planner: formatting
1 year ago
Shane Smiskol
c95b58401a
controlsd: no mutable carParams ( #32381 )
...
* no as builder
* fix car int test
* more
1 year ago
James
046ed7e9f8
Cleanup "longitudinalPlan" fields ( #32845 )
1 year ago
Jason Wen
36eafc0dc6
Hyundai CAN: Log ABS/ESP Activation to `espActive` ( #32743 )
...
* Hyundai CAN: Log active ABS to accFaulted
* Add comments
* `espActive` to CarState and CarEvent.EventName
* re-order
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
1 year ago
Harald Schäfer
442e9f4ae4
Long planner: small cleanup ( #32804 )
1 year ago
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
1 year ago
Harald Schäfer
965415135a
Long control: Double delay is super complicated ( #32694 )
...
* Double delay is super complicated
* No more upper bound
* DEAD
* Update ref
1 year ago
Harald Schäfer
1b2bd205b8
MSGQ refactor: cleanup outstanding issues ( #32685 )
...
* Rm sim dockerfile from bad merge
* Add watch back
* Fix watch3 compilation
1 year ago
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>
1 year ago
Dean Lee
983063c3e6
events.py: rename event counters ( #32596 )
...
* improve prev event counters
* just rename
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
1 year ago
Dean Lee
23fcd68707
LongControl: storing T_IDXS[:CONTROL_N] in a variable for reuse ( #32599 )
...
Improve Control Trajectory Interpolation Efficiency
1 year 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
1 year ago
Dean Lee
1e70b23855
LongitudinalPlanner: replace hardcoded length with ModelConstants.IDX_N ( #32597 )
...
replace hardcoded length
1 year ago
Shane Smiskol
6ecb710305
LongitudinalMpc: use DT_MDL ( #32532 )
...
bad magic number
1 year ago
Adeeb Shihadeh
b2e4c64cf8
ruff: enable UP
1 year ago
Adeeb Shihadeh
075176f869
define alert for actuatorsApiUnavailable
1 year 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>
1 year ago
Shane Smiskol
42861f6683
events: reduce priority of resumeRequired ( #32450 )
...
CC
1 year ago
Shane Smiskol
e9bf36232b
Events: remove dependency ( #32430 )
...
* Revert "Events: use sorted container (#32395 )"
This reverts commit d98ab4ddb1
.
* remove implicit dependency
1 year ago
Shane Smiskol
d98ab4ddb1
Events: use sorted container ( #32395 )
...
* use SortedList
* Update ref_commit
1 year ago
Adeeb Shihadeh
cdf2e75cc3
reduce severity of offroad temperature alert
1 year ago
Adeeb Shihadeh
1fc3d9224e
remove Offroad_InvalidTime alert
1 year ago
Adeeb Shihadeh
6ef95f7a91
adjust gps alert
1 year ago
ZwX1616
1d05704d27
Toggle to always enable DM ( #32205 )
...
* permanent
* param
* correct behavior
* toggle
* need trans
* ref_commit
* translate for chs/t
* disable on P and R
* read
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
Justin Newberry
4fbc8a3896
move git commands to common/git.py ( #31921 )
...
move git into common/git.py
1 year ago
Adeeb Shihadeh
fa12a67228
remove pedal ( #31903 )
...
* remove pedal
* bump panda
* fix
* update refs
1 year ago
Shane Smiskol
29e55f99a5
Move personality to controlsState ( #31855 )
...
* start at param
* start by sending personality
* change to personality
* POC: button changes personality
* what's wrong with this?
* fix
* not really possible but fuzzy test catches this
* there's always a typo
* dang, we're dropping messages
* clean up
* no comment
* bump
* rename
* not all cars yet
* works but at what cost
* clean up
* inside settings
* write param so we save the distance button changes
* setChecked activates buttonToggled and already writes param!
* don't need this, we update from longitudinalPlan on changes
* some clean up
* more
* ui
* allow some time for ui to receive and write param
* plannerd: only track changes in case no ui
* Revert "plannerd: only track changes in case no ui"
This reverts commit 2b081aa6ce
.
* write in plannerd as well, I assume this is atomic?
* don't write when setting checked (only user clicks)
* better nane
* more
* Update selfdrive/controls/lib/longitudinal_planner.py
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
* doesn't write param now
* ParamWatcher is nice
* no debug
* Update translations
* fix
* odd drain sock proc replay behavior
* vanish
* Revert "odd drain sock proc replay behavior"
This reverts commit 29b70b3941
.
* add GM
* only if OP long
* move personality to controlsState, since eventually it won't be exclusive to long planner
more
bump
* diff without translations
* fix
* put nonblocking
* CS should start at up to date personality always (no ui flicker)
* update toggle on cereal message change
* fix
* fix that
* ubmp
* mypy doesn't know this is an int :(
* update translations
* fix the tests
* revert ui
* not here
* migrate controlsState
* Revert "migrate controlsState" - i see no reason we need to test with
any specific personality
This reverts commit 6063508f2d
.
* Update ref_commit
---------
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2 years ago
Shane Smiskol
fdab60cad7
longitudinal planner: start at personality param ( #31788 )
...
start at param
2 years ago
Justin Newberry
7cf2b28b78
scons: fix race condition with opendbc ( #31621 )
...
* fix race condition
* add to release
* fix for now
* bump
2 years ago
Cameron Clough
80da3aee14
mypy: use implicit-optional ( #31590 )
...
* mypy: set implicit-optional = true
* find and replace '| None = None' -> '= None' in function args
2 years 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
2 years ago
goodchoom
8b5c9e84d2
Alerts: fix inconsistent capitalization ( #31514 )
...
fix capitalization
2 years ago
Greg Hogan
7affba06d8
simplify git remote is comma check ( #31284 )
...
* simplify git remote is comma check
* cast to str
* eliminate default and always return string
* add type annotation for cache decorator
* fix up default handling
2 years ago
Vivek Aithal
056b330e8b
LatControlTorque: Add more inputs ( #31252 )
...
* add history and state to the ff inputs
* add history
* resolve comments
* remove history, simplify
* don't compute lateral accel, roll comp always
2 years ago
Justin Newberry
086c509fde
Create message mocking tools ( #31249 )
...
* add mocking tools
* fix map renderer
* use for power draw
* fix those
* whitespace
* rename to services
* fix the rate
* remove
2 years ago
Harald Schäfer
0067cf3eb1
Los Angeles Model ( #31037 )
...
* 1c888f5b-c213-4c1c-9eba-c587afd047fc/700
* Move to action
* Updates
* Add steer delay
* Update curvature grep
* clip speed
* No car params for now
* Add delay back
* Update
* fix lint
* fix lint
* update model regf
2 years ago
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>
2 years ago
Harald Schäfer
d36103791c
No curv rate for lateral control ( #31042 )
...
* No more Curvature rate for lat control
* Update cereal
* Update
* Fix lat control test
2 years ago
YassineYousfi
d6cece756c
longplanner: expose dt ( #30941 )
2 years ago
Adeeb Shihadeh
35f819c823
swaglog.py goes in common/ ( #30631 )
...
* swaglog.py goes in common/
* all of these go in release
* we'll even include the pyx
2 years ago
Adeeb Shihadeh
ce4bac8218
remove unused last_actuators arg from lateral controllers ( #30595 )
2 years ago