Kacper Rączy
1e01555a39
Move lag estimator for lagd
2 months ago
Kacper Rączy
b1e389c780
Back to lagd
2 months ago
Kacper Rączy
0d2922fd2c
Calculate cross correlation regardless if the points are valid
2 months ago
Kacper Rączy
e71d99d3bf
MAX_LAG
2 months ago
Kacper Rączy
646ec2ad8e
Fix typing
2 months ago
Kacper Rączy
4de1784516
Add typing
2 months ago
Kacper Rączy
e98e876423
Fix static analysis
2 months ago
Kacper Rączy
82317b7977
pad to the best size for fft
2 months ago
Kacper Rączy
c48c00e62f
Online lateral lag learning ( #34974 )
...
This reverts commit b4cc9e68d1
.
2 months ago
Kacper Rączy
b4cc9e68d1
Revert "Online lateral lag learning" ( #34974 )
...
Revert "Online lateral lag learning (#34531 )"
This reverts commit 1034dbd37c
.
2 months ago
Kacper Rączy
1034dbd37c
Online lateral lag learning ( #34531 )
...
* Add struct and services
* Proof of concept
* Use vego
* Process replay support
* Fix issues
* Max not min
* Remove print
* Make lag positive
* Points and updates
* Sliding cross corr
* Stuff
* Remove redundant param
* Move to lagd
* Update alert
* Something that works
* Report isEstimated
* Corr field
* Use skimage masked corr
* Fixes
* Move to lat_accel_loc
* Use the delay it in the model
* Mark as executable
* Add 0.2 to initial
* add install line
* Back to 5m window
* Move the import up
* corr window 120
* Show is estimated
* Sort messages
* New impl
* Fix
* Params
* Set initial_lag elsewhere
* Add param
* Rename Param
* Fix type isues
* More blocks
* Masked fft NCC implementation
* Remove package installation
* Use 20hz data and interp the correlation peak
* Move ncc code to separate function
* steering_saturated support
* Constants
* Add recovery buffer
* Fix static
* min_valid_block_count nad liveDelay
* lateralDelayEstimate
* Fix comm issues. Do estimations at 4hz
* Fix
* Display the estimate
* Increase the block size
* Cache every minute
* DEBUG flag
* Add progress to the alert
* Fix crash
* points only in debug
* Fix BlockAverage restoration
* Comment
* Move estimators into estimator directory
* Remove lagd
* Feed only relevant messages
* Rewrite as a set literal
* np.diag with P_initial
* Fix static
* Struct renames
* Update ref commit
* Make it nicer
* Some renames
2 months ago
Kacper Rączy
39d4148c70
paramsd: cache restore unit test ( #34966 )
...
* Add a test
* Fix P_init restore
* Add migration to the first test
* Reuse the route from lld scenarios test
2 months ago
Kacper Rączy
ffcbdc8c43
paramsd: catch all exceptions during migration ( #34965 )
...
Catch all exceptions during migration
2 months ago
Kacper Rączy
75cc300480
paramsd: refactor VehicleParamsLearner ( #34955 )
...
* Refactor ParamsLearner
* Make it VehicleParamsLearner
* Fix
* Use capnp serialization instead of json
* Fix speed
* Remove redundant comments
* Monitor observed_roll
* Just use init_state
* Comment
* Improve reset
* Set globals api
* Typing for return value
* Redo reset messaging
* Remove usages of math
* Fix process_replay custom_params
* Type ignores for rednose fields
* Remove import
* Reset previous values too
* Update ref_commit
* Revert it
* Bring it back
* Remove more
* Add migration for cached params
2 months ago
Shane Smiskol
c55ef3ae1b
Rivian: enable torqued learning ( #34912 )
2 months ago
Kacper Rączy
3652dff77a
paramsd: allow uncalibrated values while calibrating ( #34852 )
...
* Use uncalibrated values
* Use calib_valid
* Move valids together
* Add calibration valid field
* Add migration block for new field
* No paramsdTemporaryError while calibrating
* comment
* Fix static issues
* Update ref commit
* Comment
* Remove redundant field
* check for calstatus in selfdrived
* Remove comment
* Update ref commit
3 months ago
Shane Smiskol
0789877cd3
paramsd: fix unbounded yaw rate while calibrating ( #34806 )
...
* rm
* comments
* default values when yaw rate invalid
* clean up
Revert "default values when yaw rate invalid"
This reverts commit e983abb3b0
.
do the same for yaw rate we do for roll
and
* 1 is fine
* update refs
---------
Co-authored-by: Kacper Rączy <gfw.kra@gmail.com>
3 months ago
Kacper Rączy
00a0547978
paramsd: invalid angle offset alert ( #34715 )
...
* Add angle offset valid field
* Remove print
* Move it
* Add check in selfdrived
* Same thing for stiffnessFactor and steerRatio
* Fix
* Alert callback
* Fix bugs
* Fix
* Update events
* Make it functional
* Ref commit
* Update ref commit
* Remove dot
* Fix
Fix formatting
* Default values
* Update ref commit
3 months ago
Shane Smiskol
8f3e773977
actuators: rename steer to torque ( #34724 )
...
* bump
* temp fix
* fix
* forgot these
3 months ago
Shane Smiskol
6723106bf5
Move vehicle_model.py to opendbc ( #34681 )
...
* move
* fix
* move test too
* bump
* better
* bump to master
3 months ago
Adeeb Shihadeh
d98a554b17
tici: set core affinity for all realtime processes ( #34574 )
4 months ago
Kacper Rączy
a8b829167d
locationd: use cloudlog ( #34508 )
...
* Use cloudlog instead of print
* Changes
4 months ago
Shane Smiskol
1d86afdf83
carName -> brand ( #34474 )
...
* bump
* brand
* body is lower
4 months ago
Kacper Rączy
93a8a18b6d
locationd: frequency based bad observation resiliance and recovery ( #34476 )
...
* Improve it
* Fix static
* Fix test_consistent_timing_spikes test
* Fix tests
* Comment
* Remove crap
4 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>
4 months ago
Maxime Desroches
e9246df02e
ci: faster unit tests ( #34161 )
...
* fast
* lint
* try
* clean
* this
* try even more
* more
* maybe
* what
* maybe?
* maybe
* try this
* fix
* fast?
* now cache?
* debug
* again...
* maybe
* NOW!
* revert, this is already enough (for now?)
6 months ago
Kacper Rączy
eccdf8d880
locationd: timing spikes resiliance ( #34080 )
...
* Locationd scenario for timing spike
* Add test for consistent timing spike
* Resiliance to bad timing
* Test update
* Refactor test
* fix comment
* Decay based on frequency
* Fix
* Update comment
* Only for critical services
* Fix tests
6 months ago
Dean Lee
7a11d0180b
locationd: improve circular buffer handling with np.roll ( #33470 )
...
improve circular buffer handling
8 months ago
Dean Lee
aca0ee3eea
locationd: replaced the loop and setattr with direct attribute assignment ( #33466 )
...
replaced the loop and setattr with direct attribute assignment
8 months ago
Dean Lee
6dba364556
locationd: remove obsolete locationd.h ( #33464 )
...
remove obsolete locationd.h
9 months ago
Kacper Rączy
236dffe400
locationd no GPS ( #33029 )
...
* Pose kf draft
old-commit-hash: 17dd4d576e597792f0e18826498c00076739f92b
* Fix it
old-commit-hash: 13ac120affe58fd22e871586ea5f4d335b3e9d2b
* Add translation noise
old-commit-hash: 166529cb612858c4ce80649367ac35b2b6007e1d
* Add gravity to acc
old-commit-hash: 8fcfed544b8e090ccc86b189c13bc03c6c190613
* Use pyx
old-commit-hash: 8e69e0baa0a4c43b4d0c22535711f296f05420aa
* Indent
old-commit-hash: 25b19a73644cdcb571ccf1a1d8acb88a0d066c67
* Reset function
old-commit-hash: ca5d2736da15e4fd6539f7268133320735b7c9cc
* Add device_from_ned and ned_from_device transformations
old-commit-hash: a60d25da0edc311e583549dc015fa595749fd4ae
* Fix rotations
old-commit-hash: d6d582f7f6d19a2bc2308dbcb0c9f81363e325b6
* kms
old-commit-hash: 681bc4e50374795ccc61422c3ce4ffb51389fce2
* Centripetal acceleration
old-commit-hash: 6e574506d27e5b76a04b2097d94efa4ca91ead71
* Rewrite draft
old-commit-hash: 4a2aad0146267460e5d30036c8cdb2bef94d1d7c
* Remove old locationd stuff
old-commit-hash: c2be9f7dbf22fb5cd29e437cd7891a7d52266fba
* Python process now
old-commit-hash: 83fac85f28c0b546b6965aafe1dd8a089e67f5b3
* Process replay fix
old-commit-hash: c44f9de98583c49dad0b22497869b3bb0266fcd9
* Add checks for timing and validity
old-commit-hash: aed4fbe2d00ca620e01a0e0ee99a4871c939de36
* Fixes
old-commit-hash: 3f052c658c16984a34915f38afdfbfd0fb19a267
* Process replay config fixes
old-commit-hash: 1c56690ee7ceb3c23c9ec2b2713352191212716e
* static analysis fixes
old-commit-hash: 6145e2c140ea9aa97e75069c3ddd82172cadc866
* lp in latcontrol
old-commit-hash: 9abf7359d68e794c69052724f3aca14b04dd3cca
* Fix SensorEvent name for acceleration
old-commit-hash: 91a1ad6c604727c9c898ba4aefe9478022b167fd
* Ignore sensor readings from segments with multiple imus
old-commit-hash: 1f05af63d6cc605ea98d7da0d727a5bd8d7819b0
* Update shebang
old-commit-hash: e3f2f5c10df3a4ba698421335bfeffc63d1a8797
* Replace llk with lp
old-commit-hash: 99b6c7ba08de6b703708fef0b8fd2d8cb24b92c0
* Refactor locationd scenario test
old-commit-hash: 7f5f788f071b7647e36f854df927cc5b6f819a84
* Add more debugging tools
old-commit-hash: 8d4e364867e143ea35f4bfd00d8212aaf170a1d1
* Param name update
old-commit-hash: 5151e8f5520f067e7808e3f0baa628fbf8fb7337
* Fix expected observations
old-commit-hash: d6a0d4c1a96c438fb6893e8b6ff43becf6061b75
* Handle invalid measurements
old-commit-hash: 549362571e74ad1e7ec9368f6026378c54a29adf
* Fix spelling
old-commit-hash: eefd7c4c92fb486452e9b83c7121d2599811852b
* Include observations in debug info too
old-commit-hash: 625806d1110b3bffe249cd1d03416f2a3f2c1868
* Store error instead of expected observation
old-commit-hash: 1cb7a799b67e56af4eddc6608d5b0e295f2d888c
* Renames
old-commit-hash: a7eec74640fc5cc7a5e86172d2087b66cb93d17d
* Zero the yaw
old-commit-hash: 96150779590fcb8ac50e8ffe8f8df03105983179
* New state_dot for orientation
old-commit-hash: c1456bf3a0c5af2f888aa6ff0b5ffc2e5516ddf7
* Fix the state transformations
old-commit-hash: 7cb9b91e2f99caa4ac3fb748c7f23bb8bf9f65db
* Update process in test_onroad
old-commit-hash: 854afab7c39ca7dec2b42974cecbb5310b82b617
* Test polling on cameraOdometry
old-commit-hash: a78e8b7d61618177f15c9892e2fa1e51620deca8
* Keep the copy of x and P returned from predict
old-commit-hash: 3c4159a6a7d7383265a99f3f78f8805d2fcfc8cd
* Remove polling again
old-commit-hash: f7228675c5fd2de5f879c4786859f1abcec27d68
* Remove locationd.cc
old-commit-hash: d7005599b2b178e688c3bd1959d6b69357d3a663
* Optim in _finite_check
old-commit-hash: 58ad6a06b9380960e9f69eb98663ddb97461e8d5
* Access .t once
old-commit-hash: d03252e75ed4cbdb49291a60c904568e6a3d3399
* Move the timing check to cam odo code path
old-commit-hash: 6a1c26f8c201e1feb601753f0cb7299cf981b47e
* Call all_checks only once
old-commit-hash: 373809cebf8d9db89d1ab00f4c8c933f33038e78
* Do not sort
old-commit-hash: 2984cd02c0ab76827b8c7e32f7e637b261425025
* Check sm.updated
old-commit-hash: 11c48de3f0802eb4783899f6a37737078dbf2da4
* Remove test_params_gps
old-commit-hash: 82db4fd1a876cc2402702edc74eba0a8ac5da858
* Increase tolerance
old-commit-hash: 927d6f05249d2c8ec40b32e2a0dcde8e1a469fb3
* Fix static
old-commit-hash: 2d86d62c74d5ac0ad56ec3855a126e00a26cd490
* Try separate sockets for sensors
old-commit-hash: 5dade63947ab237f0b4555f45d941a8851449ab1
* sensor_all_checks
old-commit-hash: e25f40dd6b37ee76cd9cc2b19be552baf1355ec3
* Fix static
old-commit-hash: 328cf1ad86079746b4f3fde55539e4acb92d285e
* Set the cpu limit to 25
old-commit-hash: 7ba696ff54c5d3bfa42e42624d124f2a1914a96d
* Make it prettier
old-commit-hash: cd6270dec80d8b9dac784ddd4767a1a46bcff4b7
* Prettier
old-commit-hash: 1b17931d23d37f299dad54139eaf283a89592bf5
* Increase the cpu budget to 260
old-commit-hash: 20173afb937a2609c8a9905aee0b2b093cb8bba4
* Change trans std mult. 2 works better
* Update ref commit
* Update ref commit
9 months ago
Kacper Rączy
012162e816
Deprecate liveLocationKalman ( #33405 )
...
* Remove usages of llk
* Deprecate it
* Add scenarios back
* Fix orientationNED valid
* Regenerate
* Increase tolerances and update segment
* Remove calibration
old-commit-hash: 282eae3c30
9 months ago
Kacper Rączy
8315623257
paramsd: remove usages of llk nested structures ( #33317 )
...
* Remove usages of llk nested structures
* Rename to debugFitlerState
* Semicolon
* Initial parameters debugFilterState
old-commit-hash: 51fae363e4
9 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
10 months ago
Kacper Rączy
7ea8d9e91d
torqued: use livePose ( #33136 )
...
* Use livePose
* Replace it in process replay
* Add liveCalibration to messages
* Update ref commit
old-commit-hash: 86d8d1d996
10 months ago
Kacper Rączy
3740693956
paramsd: use livePose ( #33099 )
...
* Use livePose instead of llk
* Update process replay sockets
* Fix import
* Fix calib
* Fix field name
* Dont store device_from_calib
* Update ref commit
old-commit-hash: 84cff4fc03
10 months ago
Harald Schäfer
28a91c4e23
livePose log ( #32868 )
...
* add livepose
* Formatting
* Add to sevices
* Update locationd to publish livePose
* Remove fields and increase decimation
* Fix field indices
* Remove the line
* Add livePose to pubmaster
* Fix llk decimation
* Update ref commit
* XYZ measurements instead of lists
* Update locationd
* Update ref commit
* Lower the qlog size in test_onroad
* Update lower and upper boundary
---------
Co-authored-by: Kacper Rączy <gfw.kra@gmail.com>
old-commit-hash: 996bced674
10 months ago
Shane Smiskol
bb67139ca7
torqued: check steer override to current time ( #32963 )
...
* lat active/steer override: check up to now
* lint
* Update ref_commit
old-commit-hash: b247c3caaa
11 months ago
Shane Smiskol
1b4583a63e
torqued: clean up ( #32958 )
...
* formatting
* function signatures didn't match
* function signatures didn't match
* filtered and raw mean something totally different when it comes to params
filtered and raw mean something totally different when it comes to params
* cmt
* probably better for organization
* add todo
* STASH
* revert some stuff
* clean up
* oof
old-commit-hash: fbc53a24a3
11 months ago
Shane Smiskol
11617a42dd
torqued: option to keep track of all points ( #32957 )
...
* how about this
* here
* rename
* revert
* revert this too
* can do this
* ugh inside TorqueBuckets it implicitly limits steer torque to 50%!!!!!!!!
* fix
* move up
old-commit-hash: 5efdaf2026
11 months ago
Shane Smiskol
49469d9ffa
format torqued.py
...
old-commit-hash: 0c58e35b6c
11 months ago
Shane Smiskol
abd29fa646
torqued: rename lat_active ( #32942 )
...
* Update torqued.py
* lint
* not necessary
old-commit-hash: 35df0a4fda
11 months ago
Dean Lee
45c3992e43
CarParams: set no traversal limit ( #32929 )
...
* Increase traversal_limit_in_words to Fix Traversal Limit Errors
* just use log_from_bytes
* come on pycharm
* no free lunch
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 12d729a0a0
11 months ago
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
12 months ago
Harald Schäfer
f870a968e9
Split cereal into cereal/msgq ( #32631 )
...
* squash
* fix doc
* compile device
* compile device
* Update ref
* add msgq to precommit exclusions
* No service ports
* fix compile
* address comments
* More comments
* Delete logger
* Update opendbc
* Linting
* bump msgq
old-commit-hash: e71ec4e8d7
12 months ago
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
12 months ago
Adeeb Shihadeh
cc4f53e6c6
manager: move to system/ ( #32538 )
...
* manager: move to system/
* one more
old-commit-hash: accdade4cf
1 year ago
Adeeb Shihadeh
3358745103
ruff: enable UP
...
old-commit-hash: b2e4c64cf8
1 year ago
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
1 year ago
Adeeb Shihadeh
6bf5c62155
add hasFix field to gpsLocation ( #31778 )
...
* add hasFix field to gpsLocation
* migration
* update refs for ubloxd
* cereal master
old-commit-hash: a0389d7120
1 year ago