Vivek Aithal
8a2cbfe00b
paramsd: fix VehicleModelInvalid errors ( #23726 )
...
* bound steerratio, stiffness std
* remove start steer_ratio limits after looking at data
* reduce sf obs noise
* update refs
* update refs
* add comment explaining change
3 years ago
Adeeb Shihadeh
8a0fc850b4
give calibrationd rt priority ( #23725 )
3 years ago
Vivek Aithal
f808b174af
use roll std from locationd ( #23449 )
...
* use roll std from locationd
* cleaner
* add todo
* new ref
Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
3 years ago
Dean Lee
e5f9af4a6e
calibrationd: Don't repeatedly call get_valid_idxs() ( #23473 )
...
* optimize
* rpy_init should be np.array
* rename to rpys
3 years ago
Dean Lee
de572c3755
calibrationd: fix indentation ( #23502 )
3 years ago
Willem Melching
79577e4dca
boardd: remove ublox timestamp logging ( #23498 )
...
* boardd: remove ublox timestamp logging
* more cleanup
* add cmath
3 years ago
Willem Melching
8444f8267d
calibrationd: convert existing calibration to numpy ( #23494 )
...
* calibrationd: convert existing calibration to numpy
* use numpy functions
3 years ago
Dean Lee
35ec6ac1cb
use ndarray.tolist to convert numpy array to float ( #23485 )
3 years ago
Dean Lee
f6c6e34ea3
calibrationd: remove extra comma ( #23472 )
3 years ago
Adeeb Shihadeh
1a6881edc6
skip falling device test
3 years ago
Adeeb Shihadeh
ef225e3e35
locationd: disable falling device detector ( #23431 )
3 years ago
Dean Lee
df7126b982
paramsd: follow capnp best practices ( #23399 )
3 years ago
George Hotz
dc96d4bee7
Add More Types for mypy ( #23268 )
...
* mypy passes
* a few more
* a few in manager
* more types, will lint
* more
* simple types
* events type
* Update selfdrive/thermald/thermald.py
* Apply suggestions from code review
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
3 years ago
Ewout ter Hoeven
332f568a82
Pyupgrade 3.6: Update syntax with Python 3.6+ features ( #23305 )
...
Updated Python code with Python 3.6+ features:
- utf-8 encoding is now the default (PEP 3120)
- Replace list comprehensions by Generator Expressions (PEP 289)
- Replace yield loop by yield from (PEP 380)
- Remove the (object) subclass when defining a class
- Replace the IOError alias by OSError (PEP 3151)
- Define sets with curly braces {} instead of set()
- Remove "r" parameter from open function, which is default
Co-Authored-By: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-Authored-By: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>
Co-authored-by: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-authored-by: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>
3 years ago
HaraldSchafer
cf466222f6
Road Roll Compensation Rebased ( #23251 )
...
* first commit
* update refs
3 years ago
HaraldSchafer
cd190dc85d
Calibrationd: check size of valid_blocks without current ( #23223 )
3 years ago
HaraldSchafer
40dcc63823
Calibrationd: don't use noisy current block ( #23222 )
3 years ago
HaraldSchafer
837823ff58
Revert "Dont use erratic current block ( #23211 )" ( #23221 )
...
This reverts commit 19335bb6a4
.
3 years ago
HaraldSchafer
19335bb6a4
Dont use erratic current block ( #23211 )
3 years ago
Dean Lee
4aa291c406
Use std::unique_ptr to manage memory ( #23168 )
...
* use unique_ptr
* trigger ci
* move down loggerdstate
3 years ago
Dean Lee
9decd3d8a2
util: move all functions into util namespace ( #23203 )
3 years ago
Dean Lee
48963d4b24
locationd_thread: fix possible dangling reference to params ( #23156 )
3 years ago
Robbe Derks
bb7208f4c3
add check for restoring almanac, and clear like suggested in the datasheet ( #23153 )
...
Co-authored-by: Comma Device <device@comma.ai>
3 years ago
Vivek Aithal
64eb5b0da4
locationd: cleanup ( #23088 )
...
* remove dead code, avoid indexing by value in locationd
* remove dead states in live_kf
3 years ago
Vivek Aithal
b57f55088e
add a note in loc_kf ( #23082 )
3 years ago
Vivek Aithal
5040427cb7
Mesh3D: Add accelerometer bias to loc_kf ( #22880 )
...
* add accel-bias to mesh3d
* remove acc scale
3 years ago
Vivek Aithal
8b6a147583
locationd: Fix Nav localization reliability ( #22959 )
...
* modify reset logic
* remove debug statements
* use ecef pos and vel covariances during reset
* reset orientations initialized to 0,0,GPSbearing
* refactor nav fix
* add fake gps observations to control ecef pos and ecef vel std
* replace fake_P with individual fake cov
* set gps mode flag
* add gps invalid flag names
* update refs
* more accurate gps accuracy check + update refs
3 years ago
Vivek Aithal
94d59314e2
Revert ecef std until real fix ( #22982 )
...
* too low
* update refs
Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
3 years ago
Vivek Aithal
534bf697ee
locationd : Acceleration Bias in locationd ( #22879 )
...
* add accel bias to filter for offline calculation
* bugfix acc bias in live_kf
* add no_accel obsertvation
* increase initial certainty of acc-bias and reduce PN
* increase initial certainty of acc-bias and reduce PN
* increase accel bias PN
* increase obs noise for no_accel observation
* style fixes
* update refs
4 years ago
Vivek Aithal
c7be73b826
locationd: Set ECEF_POS valid flag to false if in no-gps mode ( #22857 )
...
* set ECEF_POS valid flag to false if in no-gps mode
* modify valid flag for all ecef states before gps
* add calibrated valid when no gps
* update refs
* remove extra whitespace
* add invalid flag to all NED values pre gps
* update refs
* update correct refs
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Vivek Aithal
5c810a45b0
locationd: Make live_kf robust to no GPS ( #22774 )
...
* add no gps observations
* use correct ecef_location, orientation vals and stds for nogps states
* remove earth radius obs
* move initial loc to the ocean
* remove unnecessary changes
* update refs
4 years ago
Mayfield
5246f0231e
enable wshadow ( #22756 )
...
* enable wshadow (#22714 )
* fix replay
* more build fixes
Co-authored-by: Willem Melching <willem.melching@gmail.com>
4 years ago
Vivek Aithal
2006aa412e
locationd: Gyro bias initial covariance ( #22622 )
...
* reduce cam odo std multiplier
* increase gyro obs noise
* increase initial cov for gyro bias
4 years ago
Vivek Aithal
f1546e6552
expose filter internal states and stds ( #22564 )
4 years ago
Vivek Aithal
d22f57e36d
remove confusing logic in live_kf, move to locationd ( #22558 )
4 years ago
Vivek Aithal
83a53618b3
paramsd: Sort messages in each update iteration before processing ( #22403 )
...
* sort livelocationKalman and carState messages in each update iteration before processing
* update refs
* update refs
* update refs
* update again
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Vivek Aithal
244fbde56e
Add paramsd Stdev to message ( #22443 )
...
* add STD to message
* use modified names for car_kf state stdev atttributes
* update refs
* add modofied cereal
* update refs
4 years ago
Vivek Aithal
3778592f50
locationd: modify factor for measurement STDEV in gps update ( #22262 )
...
* modify factor for measurement STDEV in gps update
* add new ref_commit
4 years ago
HaraldSchafer
e0087fc313
Fix orientation in map ( #21863 )
...
* fix calibrated orientation
* update ref
* cleaner
* update ref
* master
* update again
* update ref again again
* actually compiled this tim,e
4 years ago
arfy slowy
d74def61f8
fix: spelling typos ( #21861 )
...
* fix: typo spelling grammar
* revert
* Update selfdrive/locationd/calibrationd.py
* more revert
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Harald Schafer
e63d94d8d2
Revert "nav: use calibrated orientation ( #21853 )"
...
This reverts commit 4b209f31a1
.
4 years ago
HaraldSchafer
4b209f31a1
nav: use calibrated orientation ( #21853 )
...
* calibrate map
* msg added
4 years ago
HaraldSchafer
049a1bca34
Better localizer unstable alert ( #21660 )
...
* use canonical language
* filter out when gps signal is flaky
* Update selfdrive/locationd/locationd.cc
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
4 years ago
Willem Melching
6feafc0042
tici: use LSM6DS3 ( #21496 )
4 years ago
HaraldSchafer
a3071bf15b
Update car_kf.py
4 years ago
Adeeb Shihadeh
f01ebc5680
make locationd and paramsd RT ( #21264 )
4 years ago
HaraldSchafer
9a2306e008
gps can be bad in cities ( #21270 )
4 years ago
Dean Lee
e4e669bb0f
add space after function name and if statement ( #21225 )
4 years ago
Dean Lee
ee46672d3c
Passing arguments by reference ( #21205 )
4 years ago
Adeeb Shihadeh
9e94fb17cf
fix qcom and qcom2 builds
4 years ago