Shane Smiskol
2cb381997f
cars: remove some external imports ( #33133 )
...
* ford and gm
* clean that up
* also this
* honda
* temp fix
* move into selfdrive.car
* clean up
* more
old-commit-hash: 0739d79a51
2024-07-30 14:27:27 -07:00
Maxime Desroches
6c1d7358f0
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 >
old-commit-hash: 9536dd07c6
2024-07-30 13:11:05 -07:00
Maxime Desroches
a78c63cf7b
Remove control usage ( #33103 )
...
* manual matrix exp
* remove control
old-commit-hash: 01c0756974
2024-07-29 11:52:33 -07:00
Harald Schäfer
543e691203
Longcontrol: engage into stopped state when needed ( #33042 )
...
test stay stopped
old-commit-hash: 3bc1b173d2
2024-07-23 13:55:30 -07:00
Jason Wen
0a667d79d0
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 >
old-commit-hash: a654e5bd05
2024-07-22 13:09:00 -07:00
Greg Hogan
a3aa8c5eaf
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
old-commit-hash: 4b794773b0
2024-07-16 18:24:01 -07:00
Shane Smiskol
a878118b00
Revert "selfdrive/car: ban imports from external modules" ( #32993 )
...
Revert "selfdrive/car: ban imports from external modules (#32973 )"
This reverts commit c1e8ff2dbc47ccb07fb41a4e88bfb66af2669254.
old-commit-hash: 35a4a773f1
2024-07-15 11:14:04 -07:00
Dean Lee
58df39a2ba
selfdrive/car: ban imports from external modules ( #32973 )
...
* lint import
* Update selfdrive/car/__init__.py
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com >
old-commit-hash: 83d4623590
2024-07-15 11:12:24 -07:00
Shane Smiskol
68fc530eca
long planner: formatting
...
old-commit-hash: 71dd1e2ff6
2024-07-11 14:06:51 -07:00
Shane Smiskol
3953eba4ac
controlsd: no mutable carParams ( #32381 )
...
* no as builder
* fix car int test
* more
old-commit-hash: c95b58401a
2024-07-02 13:27:45 -07:00
James
7606bf60ad
Cleanup "longitudinalPlan" fields ( #32845 )
...
old-commit-hash: 046ed7e9f8
2024-06-26 14:51:27 -07:00
Jason Wen
ecb9dfecff
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 >
old-commit-hash: 36eafc0dc6
2024-06-24 20:14:57 -07:00
Harald Schäfer
b4a0c211f0
Long planner: small cleanup ( #32804 )
...
old-commit-hash: 442e9f4ae4
2024-06-20 16:33:06 -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
Harald Schäfer
d9fb61da16
Long control: Double delay is super complicated ( #32694 )
...
* Double delay is super complicated
* No more upper bound
* DEAD
* Update ref
old-commit-hash: 965415135a
2024-06-10 22:29:17 -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
Dean Lee
eb6e134869
events.py: rename event counters ( #32596 )
...
* improve prev event counters
* just rename
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com >
old-commit-hash: 983063c3e6
2024-06-06 00:13:57 -07:00
Dean Lee
4acd5f4293
LongControl: storing T_IDXS[:CONTROL_N] in a variable for reuse ( #32599 )
...
Improve Control Trajectory Interpolation Efficiency
old-commit-hash: 23fcd68707
2024-06-04 17:04:50 -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
Dean Lee
375f2a243f
LongitudinalPlanner: replace hardcoded length with ModelConstants.IDX_N ( #32597 )
...
replace hardcoded length
old-commit-hash: 1e70b23855
2024-06-02 22:52:45 -07:00
Shane Smiskol
efc7075f26
LongitudinalMpc: use DT_MDL ( #32532 )
...
bad magic number
old-commit-hash: 6ecb710305
2024-05-25 03:29:54 -07:00
Adeeb Shihadeh
3358745103
ruff: enable UP
...
old-commit-hash: b2e4c64cf8
2024-05-20 17:43:54 -07:00
Adeeb Shihadeh
d0f0ee8435
define alert for actuatorsApiUnavailable
...
old-commit-hash: 075176f869
2024-05-18 17:55:52 -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
Shane Smiskol
693c53cafc
events: reduce priority of resumeRequired ( #32450 )
...
CC
old-commit-hash: 42861f6683
2024-05-16 21:17:37 -07:00
Shane Smiskol
f9dc18f418
Events: remove dependency ( #32430 )
...
* Revert "Events: use sorted container (#32395 )"
This reverts commit 3c9c039ca3202649d7212ee259b1b82a65a92c4f.
* remove implicit dependency
old-commit-hash: e9bf36232b
2024-05-14 15:19:02 -07:00
Shane Smiskol
4b0149cb14
Events: use sorted container ( #32395 )
...
* use SortedList
* Update ref_commit
old-commit-hash: d98ab4ddb1
2024-05-13 12:16:53 -07:00
Adeeb Shihadeh
4b93347a4c
reduce severity of offroad temperature alert
...
old-commit-hash: cdf2e75cc3
2024-05-07 15:58:59 -07:00
Adeeb Shihadeh
35215df6c0
remove Offroad_InvalidTime alert
...
old-commit-hash: 1fc3d9224e
2024-05-07 15:58:29 -07:00
Adeeb Shihadeh
a6faeb03ce
adjust gps alert
...
old-commit-hash: 6ef95f7a91
2024-05-01 11:35:20 -07:00
ZwX1616
c741dca04c
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
old-commit-hash: 1d05704d27
2024-04-17 12:56:37 -07:00
Justin Newberry
b899592b18
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
old-commit-hash: b0eb3ba4f4
2024-03-19 17:29:50 -07:00
Justin Newberry
a5bc36ea9d
move git commands to common/git.py ( #31921 )
...
move git into common/git.py
old-commit-hash: 4fbc8a3896
2024-03-19 12:39:09 -07:00
Adeeb Shihadeh
3bf3f4bf78
remove pedal ( #31903 )
...
* remove pedal
* bump panda
* fix
* update refs
old-commit-hash: fa12a67228
2024-03-17 22:42:49 -07:00
Shane Smiskol
f3414250a3
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 2b081aa6ceb92c67a621b74592b2292756d29871.
* 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 29b70b39413e1852bb512155af6b6a94a5bd9454.
* 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 6063508f2df1a5623f113cda34dcd59a1f4b2ac9.
* Update ref_commit
---------
Co-authored-by: Cameron Clough <cameronjclough@gmail.com >
old-commit-hash: 29e55f99a5
2024-03-13 00:57:57 -07:00
Shane Smiskol
d96e5c520b
longitudinal planner: start at personality param ( #31788 )
...
start at param
old-commit-hash: fdab60cad7
2024-03-07 19:56:22 -08:00
Justin Newberry
0f1f246bc0
scons: fix race condition with opendbc ( #31621 )
...
* fix race condition
* add to release
* fix for now
* bump
old-commit-hash: 7cf2b28b78
2024-02-28 11:41:42 -08:00
Cameron Clough
a09300385b
mypy: use implicit-optional ( #31590 )
...
* mypy: set implicit-optional = true
* find and replace '| None = None' -> '= None' in function args
old-commit-hash: 80da3aee14
2024-02-25 13:29:18 -08:00
Cameron Clough
9bd90112d0
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
old-commit-hash: 995250ae49
2024-02-24 16:41:23 -08:00
goodchoom
a1ff0696ce
Alerts: fix inconsistent capitalization ( #31514 )
...
fix capitalization
old-commit-hash: 8b5c9e84d2
2024-02-19 18:18:20 -08:00
Greg Hogan
14e12980f5
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
old-commit-hash: 7affba06d8
2024-02-02 21:23:32 -08:00
Vivek Aithal
80195f1432
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
old-commit-hash: 056b330e8b
2024-02-01 04:12:48 -08:00
Justin Newberry
05204fbde3
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
old-commit-hash: 086c509fde
2024-01-31 18:47:49 -08:00
Harald Schäfer
215b346dc0
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
old-commit-hash: 0067cf3eb1
2024-01-22 00:58:06 -08:00
Harald Schäfer
66dbadb029
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 >
old-commit-hash: e6c97c3846
2024-01-21 12:09:48 -08:00
Harald Schäfer
f2106e0601
No curv rate for lateral control ( #31042 )
...
* No more Curvature rate for lat control
* Update cereal
* Update
* Fix lat control test
old-commit-hash: d36103791c
2024-01-17 16:00:50 -08:00
YassineYousfi
01b079c75e
longplanner: expose dt ( #30941 )
...
old-commit-hash: d6cece756c
2024-01-08 19:46:13 -08:00
Adeeb Shihadeh
59eb2988de
swaglog.py goes in common/ ( #30631 )
...
* swaglog.py goes in common/
* all of these go in release
* we'll even include the pyx
old-commit-hash: 35f819c823
2023-12-06 17:27:51 -08:00
Adeeb Shihadeh
f408eb207a
remove unused last_actuators arg from lateral controllers ( #30595 )
...
old-commit-hash: ce4bac8218
2023-12-03 15:54:18 -08:00