Commit Graph

31 Commits

Author SHA1 Message Date
Willem Melching 08fa4c4691 Locationd: only process valid log messages (#1761)
old-commit-hash: bfeefb6fd3498a14b27d6c83f5b254ab7113d3dd
2020-06-22 14:41:15 -07:00
Willem Melching 6dc1c6e58e cleanup no sensor data alert (#1760)
old-commit-hash: 264015c584a0a010ba5f63af67da2e6bddebbea4
2020-06-22 14:27:07 -07:00
HaraldSchafer c26f15d608 need to do something about the valid (#1713)
old-commit-hash: 2afe22481348920d490daad32be1ce9898a7ab89
2020-06-15 17:20:31 -07:00
Willem Melching 76a465e0ec Write orientation & transform in C++ (#1637)
* locationd at 20hz

* update ref

* bump cereal

* dont modify global state

* add scons files

* ecef2geodetic and geodetic2ecef

* Finish local coords class

* Add header file

* Add orientation.cc

* cleanup

* Add functions to header file

* Add cython wrapper

* y u no work?

* This passes the tests

* test rot2quat and quat2rot

* Teste euler2rot and rot2euler

* rot_matrix

* test ecef_euler_from_ned and ned_euler_from_ecef

* add benchmark

* Add test

* Consistent newlines

* no more radians supported in geodetic

* test localcoord single

* test localcoord single

* all tests pass

* Unused import

* Add alternate namings

* Add source for formulas

* no explicit tests needed

* remove benchmark

* Add release files

* Typo

* Remove print statement

* no access to raw transform matrix

* temporarily add tolerance

* handcode quat2euler

* update ref
old-commit-hash: c18e7da3c25c59a19efda8ec3a1b716c2571cc2f
2020-06-09 16:44:26 -07:00
Adeeb 9027018368 Update Flake8 config (#1624)
* update flake8 checks

* add E502

* no whitespace warnings

* fix violations

* no W391

Co-authored-by: Jason Young <jason@comma.ai>
old-commit-hash: 367155168a0c9fb698c8248a5c28c66c2987ae65
2020-06-03 16:13:34 -07:00
Willem Melching a56e2b01f8 Make pylint more strict (#1626)
* make pylint more strict

* cleanup in progress

* done cleaning up

* no opendbc
old-commit-hash: 843a64c72fb94397a1edf814fa66044c8d92acbf
2020-06-02 16:29:32 -07:00
Adeeb Shihadeh 9823f1164c enable flake8 E303: too many blank lines
old-commit-hash: f3dcf861c73b47c52b5dd77a8f1f8858005ae18b
2020-05-31 17:21:11 -07:00
Adeeb Shihadeh be0b43f339 enable flake8 E231: missing whitespace after comma
old-commit-hash: efd5dffb1e727c70065fdbe7499ec9e009dfd282
2020-05-31 12:49:11 -07:00
Willem Melching 03a268fd0b add gpsOK flag to liveLocationKalman
old-commit-hash: 8ea8f405db489f262d396989626209a3e92b23ac
2020-05-27 15:14:13 -07:00
Willem Melching 47c5f52067 Locationd fixes
old-commit-hash: 8f3e932f96dbd6c6c27a74644bc5d1abbb166898
2020-05-20 14:18:28 -07:00
Willem Melching 6e41973c3c Handle posenet and sensor alerts in locationd (#1541)
* handle posenet and senor alerts in locationd

* defaults now set in capnp file

* Cleanup c++ version of params learner

* update ref commit
old-commit-hash: d099e09fb77544eb00d13ba9aea34a0a3374a52e
2020-05-19 16:45:20 -07:00
HaraldSchafer e21bbf8bbd Locationd cleanup (#1517)
* way cleaner take 2

* cleanup

* be more relaxed

* just let it be

* don't drive backwards or upside down

* do this more

* vNED sometyimes invalid

* use reasonble stds

* stability in nonlinear zone

* previous metrics were without publishing
old-commit-hash: 81686547cc10dc129fb921f938dc496455613e33
2020-05-17 20:59:53 -07:00
Harald Schafer 99d9c3651c xRevert "way cleaner"
This reverts commit b8d13b1b44c6d33cb8209aac7fa65a269d8892b9.

old-commit-hash: 273e81715a045b9aac07796973493aad86f7a3e6
2020-05-15 14:29:34 -07:00
Harald Schafer 696fd01f9d way cleaner
old-commit-hash: a4ffd8c226ab1f286334c1cee9a90a03cbaec91a
2020-05-15 14:24:11 -07:00
Willem Melching 8f71de0dbe Rednose (#1503)
* add rednose

* update rednose

* This compiles

* Add rednose to release

* cleanup

* Extract generated dir as argument

* Add constants.py to release

* Add rednose to dockerfile

* Fix that
old-commit-hash: 28bf5d1dd8d08cd8998d2ee9d813b7e573858cf9
2020-05-14 15:36:56 -07:00
George Hotz 6fbcde48e5 Using lgtm.com and fixing found alerts (#1452)
* lgtm in readme, and mac nui fixes

* call super inits in radars

* unused imports, dup lines

* more radars, more unused imports

* pass CP into RadarInterfaceBase

* more fixups

* unused imports

* delete unused lines

* ugh, new unused import

Co-authored-by: George Hotz <geohot@gmail.com>
old-commit-hash: 1295cfe06cd80a2c2f40e0af97697ee818037f08
2020-05-02 12:07:34 -07:00
Willem Melching 8a23af0dce Refactor locationd message building
old-commit-hash: 12af1f91752fde2d19b9012d5e0b8dd301d93829
2020-04-21 17:13:54 -07:00
Harald Schafer 6f97b0c21e better nothing than wrong
old-commit-hash: cc5b9b32bf10806e74fc15f4dfd1aae6c200f8e3
2020-03-24 11:01:41 -07:00
Harald Schafer afe66c742e correctness is expensive
old-commit-hash: 82f316732a013c463f0b67570ede64b72c556520
2020-03-23 18:02:59 -07:00
Harald Schafer 83ea66cbfb need sqrtsd
old-commit-hash: bcbcd96d92e1f2f05e918f74e42799b15eb18d1a
2020-03-18 15:23:59 -07:00
Shane Smiskol 682c866a55 initialize all messages in 1 line (#1206)
old-commit-hash: 6ff881f7894d0117099787e56ec0966bfc63fa7c
2020-03-05 17:32:52 -08:00
HaraldSchafer b038c1f93b Locationd packet (#1204)
* initial

* add desire

* initial

* some progress

* fill in, untests

* add timestamping

* fixes

* unix timestamp

* no debug print

* cleanre

* normal syntax

* no laika

old-commit-hash: 24eeec4e0b236ce87b98f237c775d783f6c82964
2020-03-05 15:59:49 -08:00
Willem Melching e7a1ece98f Run locationd online (#1089)
* add locationd to manager

* add to release files and make linter happy

* Don't ship all models

* Also add locationd.py

* Remove unused import

* Fix import in kalman helpers

old-commit-hash: ff91c6f9d47a37e2475570bc4d370221379f49be
2020-02-17 18:07:23 -08:00
Comma Device 6be9fa3287 more decimation
old-commit-hash: 76b3dca2086421554d804c0dbfd5652b34b2e209
2020-02-13 23:54:45 +00:00
Harald Schafer fd44a0f698 better packet info
old-commit-hash: 4470407729da7c2ec7d259ee8dc634fb15e503eb
2020-02-13 11:12:16 -08:00
Harald Schafer 0f8201cd91 no delay buffer for now
old-commit-hash: 579a9714dab270f12192fe188642293f06aba6a1
2020-02-12 10:31:15 -08:00
Harald Schafer 1454570e11 more fixes
old-commit-hash: 1a1f1182d724a2d589e616df79946b4222e14887
2020-02-10 19:53:43 -08:00
Willem Melching d6b7005d64 WIP: Live localizer (#1074)
* cleanup

* Proper exception handling

* Also check sensor number

old-commit-hash: 31794a3d10d103aa04b61c45167e55af29523992
2020-02-10 19:06:23 -08:00
Harald Schafer 2d69a5a335 fix imports
old-commit-hash: 59728ebca6276fa8756b1123e403d856914bba08
2020-02-10 15:38:17 -08:00
Harald Schafer 9b1ba6011f get ready for live localizer
old-commit-hash: dcb14dd830c6dad3b9e550a552a7cafdf9054e28
2020-02-10 15:28:23 -08:00
George Hotz dda315bcc8 selfdrive/locationd
old-commit-hash: fcf8efb826
2020-01-17 11:39:56 -08:00