Commit Graph

165 Commits

Author SHA1 Message Date
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
Greg Hogan
02d68d91fb mkdirs_exists_ok more specific URL detection
old-commit-hash: 3b180240d53564274a9258ff1f851a478bb0b741
2020-06-09 08:56:16 -07:00
Greg Hogan
5db2854138 ensure mkdirs_exists_ok is not called for URLs
old-commit-hash: 7bf9b04570b0eea77de33181a58134ec8ddb4b19
2020-06-08 19:29:33 -07:00
HaraldSchafer
5df437cb14 More rigorous definition of calibration
old-commit-hash: 51061175252d14265e608fe6ed5640d0840fdb70
2020-06-05 21:52:58 -07:00
Jason Young
ebed52527b Reduce scheduler latency for realtime processes (#1638)
* WIP: reduce boardd and other lags

* Copypasta fault

* Silence spurious startup warning

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 68531b071cde6fa5856d9b68bed63ecb50e03c2a
2020-06-05 17:09:41 -04:00
Adeeb
d035394ce7 Add pre-commit hooks (#1629)
old-commit-hash: ab83e48ec4f7c7ddaa742d9797b0d38646fdb268
2020-06-03 12:54:49 -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
Willem Melching
3ac6adc393 Turn Jenkins CPU test back on (#1617)
* run cpu test again

* Update cpu values

* Locationd can be more too

* Give some updater allowance

* Just remove updated
old-commit-hash: b042ac034e539df09a7040dd4f28b2afc2429f55
2020-06-01 18:57:04 -07:00
Harald Schafer
96c280aa94 better name
old-commit-hash: 56e155d41cc84f480f3b72c68476fddbf786c6e2
2020-06-01 12:09:09 -07:00
Adeeb Shihadeh
37a67a2a14 enable flake8 E502: backslash is redundant between brackets
old-commit-hash: 6466ec982aa47bcbbc7c6a3a7cf60cec0163be84
2020-05-31 17:41:18 -07:00
Adeeb Shihadeh
8b3418b0f9 enable flake8 E251: unexpected spaces around keyword / parameter equals
old-commit-hash: ebed2d1dcc53f092696b61fd1e004045c9bde893
2020-05-31 17:34:47 -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
68a3061c9d enable E261 in flake8: two spaces before inline comment
old-commit-hash: 27754a277c36b82ef4040e536cc918ba8ad77bec
2020-05-31 14:07:29 -07:00
Willem Melching
5fb17dc296 Enable new params learner for improved vehicle model estimation
old-commit-hash: a0adc4482108a3b89b6e4cb3fe27b8f51291bc08
2020-05-31 13:36:27 -07:00
Willem Melching
9e46dc99c2 fake text window has no close
old-commit-hash: 0e7d50941551d27c8f12e618fac0c03a96109f07
2020-05-31 12:50:43 -07:00
Adeeb Shihadeh
be0b43f339 enable flake8 E231: missing whitespace after comma
old-commit-hash: efd5dffb1e727c70065fdbe7499ec9e009dfd282
2020-05-31 12:49:11 -07:00
Adeeb
7965569766 Flake8 E22X (#1607)
* e221

* e225

* bump opendbc
old-commit-hash: 6051061ff8e7809960cc1f2bad9a582801d5a83e
2020-05-31 00:48:47 -07:00
Adeeb
5e857427ba Enable more flake8 checks (#1602)
* enable some more flake8 checks

* some more quick ones

* bump opendbc

* e401

* e711 e712

* e115 e116

* e222

* e301

* remove that

* e129

* e701 e702

* e125 e131

* e227

* e306

* e262

* W503

* e713

* e704

* e731

* bump opendbc

* fix some e722
old-commit-hash: d9bf9f0a4036f55411f6dfbb438990a5eb7f4930
2020-05-30 20:14:58 -07:00
Adeeb Shihadeh
60f348e310 Revert "minor LGTM fixes"
This reverts commit 58d908531bfb28b46719d74121325a7e6548d98c.

old-commit-hash: 6230f366c5f0b319755e537f4cc621f0805b270d
2020-05-29 11:10:48 -07:00
Adeeb Shihadeh
dc81f74851 minor LGTM fixes
old-commit-hash: f10c2eff7d8bbbaab62f1fc3712309a29558be07
2020-05-29 00:44:27 -07:00
Willem Melching
2ac27def5a Running pre-commit in CI (#1590)
* Running pre-commit in CI

* fix dockerfile syntax

* dont run on submodule repo folders

* Fix some import errors in ci

* more stuff

* That should be the last one
old-commit-hash: ba2ac1207a554d277e01af5b9514de4500d4f66a
2020-05-28 15:40:48 -07:00
Willem Melching
2b60ee9531 Run mypy commit hook (#1591)
* run mypy commit hook

* fix mypy errors
old-commit-hash: 3d08dcc3b27936cb14c0eae63605be9a6c077380
2020-05-28 15:05:04 -07:00
Willem Melching
12a306021d flake8 in pre-commit(#1583)
old-commit-hash: 29aaa44740b5dae3c1cc0c273c72c7eb53135e5e
2020-05-27 20:33:05 -07:00
Willem Melching
c0866d9edb pre-commit pylint (#1580)
* "The commit-hook project sounds interesting though. I would definitely merge something that runs flake8 and pylint on the modified files!"
-  pd0wm, https://github.com/commaai/openpilot/pull/1575#issuecomment-634974344

* add pylint to pre-commit and make everything pass

* Remove uncommented stuff

Co-authored-by: J <user@4800.lan>
old-commit-hash: bd0643424357864287ae0485da03f66df85e1fb1
2020-05-27 20:00:14 -07:00
HaraldSchafer
9dae9d6910 pure init (#1569)
old-commit-hash: 7c8d6cbdeff7b6c7ea5af9c4ed8843fea97c58a1
2020-05-26 20:49:14 -07:00
Willem Melching
a4416c4e6b Locationd actually runs in jenkins now. Give more cpu allowance
old-commit-hash: 5870b48210628592e5bde01ef767fb109815b6a5
2020-05-20 14:23:57 -07:00
Harald Schafer
319bd1b9df update
old-commit-hash: e864d1af2fbc191c50af99a33cf252b3d56bc4bd
2020-05-18 14:37:47 -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
Willem Melching
93fa246cc4 Lower modeld cpu threshold thanks to thneed
old-commit-hash: d08c2d084f808d38ac9b8055894fd4deb57f7632
2020-05-15 15:48:48 -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
George Hotz
1a5a6640d5 add simple usage example to window.py
old-commit-hash: c4592e854767e635e4e1f6a75e74f1453043c8c4
2020-04-30 15:31:01 -07:00
George Hotz
75590c1f95 improve printing in profiler
old-commit-hash: 42fb2b47378b74c77245a1b3d2cb189ee7be7050
2020-04-27 12:12:40 -07:00
Willem Melching
f225102747 run coordinate tests
old-commit-hash: 9e2db91cddc8cb8ad910117b0f8398d96fbe7a1e
2020-04-24 13:55:20 -07:00
Willem Melching
70d8000b08 remove geocode
old-commit-hash: f856c99279df580d262d698704b91accfdc79d83
2020-04-24 13:53:56 -07:00
George Hotz
376c18b3b2 delete more unused, now under 40k lines of python. framereader needs to be ported to C++
old-commit-hash: abad49110e07cdfc0861978bacb44527c28fdfcf
2020-04-24 13:45:34 -07:00
George Hotz
cc6477015a delete unused code
old-commit-hash: 8b448a7c16d832567f0d3644cc54828ab951b8db
2020-04-24 12:10:35 -07:00
George Hotz
c236ccdc3a more unused code
old-commit-hash: c5b16df7728fcb520d79cfb6962d7220d7fd30c7
2020-04-24 09:24:29 -07:00
George Hotz
676e0d5428 remove unused code
old-commit-hash: da5cb1842ae4bd0f57dff9e0d0b9cd7e04aa09e3
2020-04-24 08:58:28 -07:00
Willem Melching
790d0a9cff fix linter
old-commit-hash: 8daef80bd75d48e24611dca0c733da0091ca8e48
2020-04-23 10:46:39 -07:00
George Hotz
80f4a67ca0 transform_img_M
old-commit-hash: aeb0a4af884af690fde10804a527468ba7dca42a
2020-04-22 19:56:53 -07:00
George Hotz
877dbc352a who is ready for big model?
old-commit-hash: 144b37728f24e20a9429b7ffa140d226de147bec
2020-04-21 20:23:49 -07:00
Greg Hogan
915a7c4195 ColumnStoreWriter.add_dict() support for multiple types
old-commit-hash: e23f1fcf0ac89c1e9d3ee6c4a64cf49745b919a4
2020-04-20 16:56:38 -07:00
Greg Hogan
f7f8e976b7 ColumnStoreReader support for intermediate keys of flat dictionaries
old-commit-hash: cf131ee8e92f477992ed087a214c832c76ee4714
2020-04-20 16:25:43 -07:00
Dean Lee
bd0e04ea9c fix UnicodeDecodeError in get_network_strength (#1385)
old-commit-hash: f2ef1f6fd5d81b26d0f9f77aaed99a6b0e42e42f
2020-04-17 11:38:27 -07:00
ZwX1616
f90b956f47 RHD support for driver monitoring (#1299)
old-commit-hash: 133b1a20b42e56dc67a013dc2ee856360e4d1d1c
2020-04-15 16:48:44 -07:00
Greg Hogan
1dd537a7f9 ColumnStoreWriter/Reader support for dictionary of arrays in single file
old-commit-hash: efbb4aac2e36aedbc67500a0bdc91802c547d5f2
2020-04-13 19:04:52 -07:00
Andy
e43b40540d Sidebar Connectivity Status (#1268)
* store athena connected-at time

* refactor

* deref

* dt import

* Athena status based on last ping time param

* upd test for pingtime

* lower error timeout
old-commit-hash: 41bb3ac7ca586b41fa91ad5a6392c88a2c4d5cb3
2020-04-05 11:06:49 -07:00
DeanLee
b3d3be7136 fix AttributeError: 'FakeSpinner' object has no attribute 'close' (#1317)
old-commit-hash: b4641b7392bdde59e3fc8c4e7d9232138ae8597b
2020-04-05 10:54:01 -07:00
Willem Melching
8c1e437b6e Show manager startup failures using TextWindow (#1310)
* show text window on build failure

* Only show last 10 line

* Fix that

* better layout

* Fix fake text window

* Only show spinner and textwindow on android

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: dae19a284d20a81432c57f99be8ac69bb3c2454a
2020-04-02 15:04:01 -07:00
Willem Melching
3e9de54726 add low pass filter on cpu temp (#1305)
old-commit-hash: b497a014176def38cc2ccafa55bea9cdefa5983b
2020-04-01 15:58:40 -07:00