Shane Smiskol
68d22b960b
rename steer_limited ( #34763 )
...
rename
2 months ago
Sammohana
8eebce75ac
Getting rid of openpilot.common.numpy_fast ( #34368 )
...
* Got rid openpilot.common.numpy_fast
* fixed some data type erros
* importing numpy instead of importing specific functions
* fixing some numpy importing mistakes
* Update selfdrive/car/cruise.py
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
3 months ago
Adeeb Shihadeh
fecf6134ef
move PID controller to common/ ( #33419 )
...
old-commit-hash: f59a1bf003
8 months ago
Kacper Rączy
80bc61dc6c
controlsd: use livePose ( #33283 )
...
* Pose calibrator
* Fix static analysis
* Fix static
* Fix test_latcontrol
* Fix test_latcontrol
* Update services in process replay
* Fix static
* Matmul not mul
* Add assertion
* Move pose calibration to data_sample
* Update ref commit
* Remove llk from cycle alerts
* Deprecated nogps event
* Switch power_draw to lp
* Bring back noGps alert
* Add handling code back
* get_bool
* Bring inputsok back
old-commit-hash: 9734015bbb
9 months ago
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
1 year ago
Adeeb Shihadeh
f408eb207a
remove unused last_actuators arg from lateral controllers ( #30595 )
...
old-commit-hash: ce4bac8218
1 year ago
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 db5e13b991
.
* fix pm test
old-commit-hash: a9626f95b6
2 years ago
Jason Young
fda55793d0
controlsd: set latActive with max minimum steer speed ( #26805 )
...
* refactor minimum lateral speed handling
* rename for clarity
* simplify without joystick at standstill
* intermediate standstill variable, check notCar
* check joystick for now
* cmt
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: cb88b3ed65
2 years ago
Adeeb Shihadeh
5263356958
remove CS.steeringRateLimited ( #25251 )
...
* remove CS.steeringRateLimited
* bump cereal
* update refs
old-commit-hash: d462a08056
3 years ago
Shane Smiskol
12d0a18a05
Clean up controllers ( #24340 )
...
* clean up lat controllers
* pass CP once
* sort
old-commit-hash: c9be2f02c3
3 years ago
HaraldSchafer
2174005f05
Lateral torque-based control with roll on TSS2 corolla and TSSP rav4 ( #24260 )
...
* Initial commit
* Fix bugs
* Need more torque rate
* Cleanup cray cray control
* Write nicely
* Chiiil
* Not relevant for cray cray control
* Do some logging
* Seems like it has more torque than I thought
* Bit more feedforward
* Tune change
* Retune
* Retune
* Little more chill
* Add coroll
* Add corolla
* Give craycray a good name
* Update to proper logging
* D to the PI
* Should be in radians
* Add d
* Start oscillations
* Add D term
* Only change torque rate limits for new tune
* Add d logging
* Should be enough
* Wrong sign in D
* Downtune a little
* Needed to prevent faults
* Add lqr rav4 to tune
* Try derivative again
* Data based retune
* Data based retune
* add friction compensation
* Doesnt need too much P with friction comp
* remove lqr
* Remove kd
* Fix tests
* fix tests
* Too much error
* Get roll induced error under 1cm/deg
* Too much jitter
* Do roll comp
* Add ki
* Final update
* Update refs
* Cleanup latcontrol_torque a little more
old-commit-hash: fe0bcdaef6
3 years ago
HaraldSchafer
305a7a6bc9
Make PI into a PID ( #24151 )
...
* Make PI into a PID
* Cast like before
old-commit-hash: 634f7cebef
3 years ago
HaraldSchafer
d42962014c
CarParams: remove max steer ( #24044 )
...
* Remove max steer
* Update ref
old-commit-hash: adf34c3414
3 years ago
Shane Smiskol
beeb0442ce
base LatControl class ( #21967 )
...
* base LatControl class, move sat check out of pid.py
clean up
clean up
* fix
* global variable for min control speed
* nicer name
* unify latcontrol class init arguments
* add to release files
* saturated if close to limit
* move angle mode saturation checks into class
* check_saturation function takes in current saturated status
undo
* apply latcontrol_angle's active checking to all controllers
* clean up
* move those back
* make abstract baseclass
* add test for saturation
* keep clip
* update ref
* fix static analysis
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 9de8f8cd8c
3 years ago
HaraldSchafer
f64c2974b4
Road Roll Compensation Rebased ( #23251 )
...
* first commit
* update refs
old-commit-hash: cf466222f6
3 years ago
Willem Melching
7b3e330def
Log actuators after applying rate limits in CarController ( #23230 )
...
* return actuators from carcontroller
* log it
* pass to latcontrol
* chrysler
* gm
* honda
* more brands
* rest of the brands
* gm cleanup
* hyundai cleanup
* update ref
* rename field
* fix subaru
* add types
* more subaru fixes #23240
* consistent whitespace
* bump cereal
old-commit-hash: 4f1eb4278a
3 years ago
Willem Melching
23ef06428a
add desired angle to log ( #23115 )
...
* add desired angle to log
* update ref
* bump cereal
old-commit-hash: bbd0f94d9d
3 years ago
qadmus
dcf3fc2089
[Lateral PID] Function for steer feedforward ( #22638 )
...
* store a function for steer feedforward
* use classmethod
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 778374d3dd
4 years ago
qadmus
810e859169
Lateral PID: move steer feedforward to CarInterface ( #22411 )
...
* move steer feedforward to car interface, in car parameters
* LatControlPID.get_steer_feedforward()
old-commit-hash: 3461e25944
4 years ago
grekiki
afe4df11dd
Add angleError to pid_log ( #21611 )
...
* add angleError
* Log all the time
* update refs
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 21fad4d1ad
4 years ago
HaraldSchafer
7e87930a20
Refactor lateral lag compensation ( #21334 )
...
* add T_IDXS
* refactor
* fix test
* unused
* typo
* needs casting
* Update selfdrive/controls/lib/drive_helpers.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* deprecate field
* regen all
* new segs
* add todo
* split back
* clean
* bad names
* do in controls
* add arg
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6838e1c82c
4 years ago
Willem Melching
4bd1929d2b
LateralPlanner should only compute curvature ( #20289 )
...
* get curvature from planner
* no need to check active
* remove that
* remove self
* liveParams not needed
* cast
* fix test bug
* fixes
* fix ui.py
* fix radians
* update refs
* update refs
* bump cereal
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: c23ec9f753
4 years ago
Adeeb Shihadeh
05eb44115e
cereal cleanup part 2 ( #20092 )
...
* car stuff
* thermal
* Revert "car stuff"
This reverts commit 77fd1c65eb
.
* panda state
* camera stuff
* start deg
* most is building
* builds
* planner + controls run
* fix up paramsd
* cleanup
* process replay passes
* fix webcam build
* camerad
* no more frame
* thermald
* ui
* paramsd
* camera replay
* fix long tests
* fix camerad tests
* maxSteeringAngle
* bump cereal
* more frame
* cereal master
old-commit-hash: 312b681a46
4 years ago
Adeeb Shihadeh
966945880b
Cereal cleanup ( #20003 )
...
* start cleanup
* fan speed
* cleanup dm
* fix cereal
* hwType -> pandaType
* update refs
* update refs
* bump cereal
* freeSpacePercent
* cereal master
old-commit-hash: 000bd226aa
4 years ago
Adeeb Shihadeh
944759717e
fix missing negative limit in pid controller ( #2001 )
...
old-commit-hash: ee99b59bad
5 years ago
Adeeb
fe106e25a3
Controlsd refactor ( #1487 )
...
* it's a class
* more refactor
* remove that
* car interface should create that
* that too
* not a dict
* don't create permanent events every iteration
* break up long lines
* fix honda
* small optimization
* less long lines
* dict is faster
* latcontrol less args
* longcontrol less args
* update profiling script
* few optimizations
* create events together
* clean up
* more clean up
* remove comment
* clean up
* simplify state transition
* more clean up
* update comments
old-commit-hash: 08832ff29d
5 years ago
George Hotz
079eee7294
selfdrive/controls
...
old-commit-hash: b0260dadba
5 years ago
George Hotz
81dd5a50cf
root commit
...
old-commit-hash: 6c33a5c1f3
5 years ago
Vehicle Researcher
99b637c7ce
openpilot v0.7 release
...
old-commit-hash: c025b96e8a
5 years ago
Vehicle Researcher
89d1d84c70
openpilot v0.6.5 release
...
old-commit-hash: cf80f7a28b
6 years ago
Vehicle Researcher
02cedeadd9
openpilot v0.6.3 release
...
old-commit-hash: d5f9caa82d
6 years ago
Vehicle Researcher
9abcfabc5f
openpilot v0.6 release
...
old-commit-hash: 8a9ed94f5f
6 years ago
Vehicle Researcher
e47a2e6e30
openpilot v0.5.13 release
...
old-commit-hash: dd34ccfe28
6 years ago
Vehicle Researcher
0932b367bd
openpilot v0.5.12 release
...
old-commit-hash: 3f9059fea8
6 years ago
Vehicle Researcher
30f7a33535
openpilot v0.5.10 release
...
old-commit-hash: f74a201edc
6 years ago
Vehicle Researcher
2cc4edde68
openpilot v0.5.9 release
...
old-commit-hash: 0207a97040
6 years ago
Vehicle Researcher
fdbf213be8
openpilot v0.5.6 release
...
old-commit-hash: 860a48765d
7 years ago
Vehicle Researcher
e41a943dd0
openpilot v0.5 release
...
old-commit-hash: de33bc4645
7 years ago
Vehicle Researcher
405e7c1b02
openpilot v0.4.7.2 release
...
old-commit-hash: 95509a58cd
7 years ago
Vehicle Researcher
242328f92c
openpilot v0.4.7 release
...
old-commit-hash: ae5cb7a0da
7 years ago
Vehicle Researcher
8fc7b0b828
openpilot v0.4.6 release
...
old-commit-hash: c6df34f55b
7 years ago
Vehicle Researcher
171647c2fc
openpilot v0.4.3.1 release
...
old-commit-hash: 3d628a6fe2
7 years ago
Vehicle Researcher
df22dac4f6
openpilot v0.4.3 release
...
old-commit-hash: 9a411ebf32
7 years ago
Vasily Tarasov
e9ef18d088
Interpolate ki/kp for steering PID loop ( #200 )
...
* Interpolate ki/kp for steering PID loop
Very much needed for the Volt port: car ping-pongs with low kp
on high speeeds, and the loop is unstable with high kp on
low speeds.
Also, removes "number or array?" logic from PIController,
now that all the callers use interpolation ofr ki/kp.
* Pass speed to steering PID loop for ki/kp interpolation
* Remove unused numbers import
old-commit-hash: 93f55f3ccf
7 years ago
Vehicle Researcher
4e867831f7
openpilot v0.4.2 release
...
old-commit-hash: 28c0797d30
7 years ago
Vehicle Researcher
d9578e2f8e
openpilot v0.4.0.1 release
...
old-commit-hash: a77c0a1098
7 years ago
Vehicle Researcher
d914111e16
openpilot v0.3.9 tweaks
...
old-commit-hash: 1ad9cc8c67
7 years ago
Vehicle Researcher
490307fe50
openpilot v0.3.9 release
...
old-commit-hash: 5627d0d7fd
8 years ago
Vehicle Researcher
81ebf6b142
openpilot v0.3.8.2 release
...
old-commit-hash: 187a70f760
8 years ago
Vehicle Researcher
2c0cc6103a
openpilot v0.3.7 release
...
old-commit-hash: daf54ad54d
8 years ago