Commit Graph

157 Commits

Author SHA1 Message Date
Adeeb Shihadeh cdfb090c7a Wunused (#1841)
* enable Wunused, first pass

* unused stuff in snpe model

* these are used on phone

* handle sigint and sigterm in modeld

* fix phone build

* camera qcom

* QCOM build works

* delete unused camerad vars

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: eb1aa3d831fd0d7fffd9aacec1accb0a5bdb0304
2020-07-09 09:25:32 -07:00
Willem Melching 24adb459c3 eon needs include for errno
old-commit-hash: 16a23c98fae55585ae37a748416dc2514b8f1b89
2020-06-23 16:05:47 -07:00
Willem Melching 4d93e0b907 Set timeouts on boardd and ubloxd receive sockets
old-commit-hash: 28110ea8801ce75835d59508dde4229454309b68
2020-06-23 15:56:30 -07:00
Willem Melching 90323438ba Revert "fix #1762, add timeout on ubloxRaw receive"
This reverts commit df5942d4c121df113b8ac6ee643b9f49a7ed52ba.

old-commit-hash: 31ea066acbe47062622b9711ef9337a375cae80a
2020-06-23 15:43:29 -07:00
Willem Melching cc4b6c2c33 fix #1762, add timeout on ubloxRaw receive
old-commit-hash: 0842e98ad832ec5dbd1afe1bfda5893c21aa1ef6
2020-06-23 15:26:25 -07:00
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
Willem Melching 42f153e4e4 ubloxd free->delete, fixes #1742
old-commit-hash: 9e273eb2ec9830b4e2af82168e5f68da71c66761
2020-06-19 13:56:46 -07:00
HaraldSchafer 57d50ba0b6 save bad calib too for display (#1678)
old-commit-hash: 637eecc2b26a6137a3415231183be54be448e638
2020-06-15 17:20:49 -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 e313efec3e dont conflate in ubloxd
old-commit-hash: 10cb6ab87ab812ada7c26d5b67d95a739d8d3b54
2020-06-15 13:31:28 -07:00
Dean Lee 70b4f7858e remove duplite #include (#1697)
old-commit-hash: 981a166a7c8e2305870993480b9804ba2420319b
2020-06-14 08:31:36 -07:00
Willem Melching 26c17c844c Reset stiffness at beginning of each drive
old-commit-hash: ef1c7b6833fe86c5541eb79b8129d0663db00c7a
2020-06-12 12:09:32 -07:00
HaraldSchafer 6e6c165e7f Clean mesh3d 2 (#1618)
* seems overkill

* not too extreme

* make linter happy

* try adding accel scale

* some tweaks

* Revert "some tweaks"

This reverts commit 58cec365da650fa653dee91c7a5cbe37b8289908.

* Revert "Revert "some tweaks""

This reverts commit 517108b5b676b4ab31bba92a9eb59afa1b3d3faf.

* stability concerns

* this works

* still works

* ugh sympy is weird, still may be not correct

* comment clean

* comment

* clarify

* fix

* unused
old-commit-hash: 87bbbd41005c93dd6fae872622102fbd14f9afef
2020-06-10 17:25:48 -07:00
Willem Melching c8d32ce78a wider margins on stiffness
old-commit-hash: fac023147127fd79805b54428ac33b819f1138cd
2020-06-09 17:36:16 -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
Dean Lee 5fb85ede56 add function read_db_bytes (#1662)
old-commit-hash: 90d97de74ddc4672b35a5186e868794468a44345
2020-06-09 13:46:49 -07:00
Adeeb 16c0bc99b2 Remove common/messaging.h (#1635)
* remove common/messaging.h

* release files
old-commit-hash: 7666d99694615f0a4a960e0b739018c4628ffa50
2020-06-05 12:46:49 -07:00
Dean Lee f7ffc61c52 pass subframes_map by refer (#1640)
old-commit-hash: 5f58307153cd018a6c5e3a8da9416a6749cbabea
2020-06-05 12:42:23 -07:00
Adeeb Shihadeh f69483e094 quick LGTM fixes
old-commit-hash: 3463f1165e5546f8c8054e8dcedc830607ad643b
2020-06-05 11:29:09 -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
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 6f09d990af paramsd output at 20 Hz instead of 100 Hz
old-commit-hash: a108e7f211e4af4b4e0ac334686c11cdb7a26f2e
2020-06-01 13:47:17 -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
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
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
Harald Schafer 2fca7f3900 Revert "better values"
This reverts commit 7ac7e5f994b1e9311d50c595706dd92ca38f6205.

old-commit-hash: 5a841c28560e79f613f1f4e2fcd72877bb42379d
2020-05-27 17:11:27 -07:00
Willem Melching 03a268fd0b add gpsOK flag to liveLocationKalman
old-commit-hash: 8ea8f405db489f262d396989626209a3e92b23ac
2020-05-27 15:14:13 -07:00
Harald Schafer 4974754159 better values
old-commit-hash: 109ba298b118e79644c7513eed6d08ace00abf83
2020-05-27 12:16:05 -07:00
HaraldSchafer 9dae9d6910 pure init (#1569)
old-commit-hash: 7c8d6cbdeff7b6c7ea5af9c4ed8843fea97c58a1
2020-05-26 20:49:14 -07:00
Harald Schafer 818695cfe7 needed for stability
old-commit-hash: 00e05bc7d881feaf82529b4066789e41ee555c42
2020-05-21 17:47:05 -07:00
Willem Melching 7f0b3180a4 Use C++ version of SubMaster and PubMaster (#1548)
* add PubMaster & SubMaster

remove 'delete msg'

remove headers

* use constructor to initial all submster

* modify drain sockets

* fix typo in ssconscript.remove lines

no checkValid in loggerd

last modify

handle_message:event->&event

fix type

remove heads

event to auto

* new interface

* api changed

* Revert "use constructor to initial all submster"

This reverts commit 73be7ea46250a325ce41d3a0445e34395a2ae692.

* change to new api

* revert loggerd

* dd

* use new PubSub api

* update to new interface

don't modify loggerd

reset panda

reset opendbc

remove empty lines

* switch to new pubMaster

* update to the new inteface

change

remove error code

. to ->

merge paramsd.cc

update panda

fix typo

simplify

fix typo

* Fix build

* always conflate

Co-authored-by: deanlee <deanlee3@gmail.com>
old-commit-hash: ab5af232b243ba8137695f68c125f922fb412d44
2020-05-21 16:04:33 -07:00
HaraldSchafer 54572b6f23 Calib in settings (#1543)
* test test

* yo dawg

* yo dawg 2

* yo dawg 3

* calib in ui

* no pitch and yaw

* no more drive rating

* stricter

* param is no longer a vp

* less wall of test

* less is more

* better language

* cleaner
old-commit-hash: 7ffaff029f8b6d770809e601d748ec6ccb55b928
2020-05-20 19:21:03 -07:00
Willem Melching 47c5f52067 Locationd fixes
old-commit-hash: 8f3e932f96dbd6c6c27a74644bc5d1abbb166898
2020-05-20 14:18:28 -07:00
Willem Melching a4f120d2be Rename enum
old-commit-hash: f69f2001788ed9057b907113b74e258a69ecad6d
2020-05-19 18:13:11 -07:00
Willem Melching d2a41fad6e Paramsd handle liveLocation not valid and add alerts
old-commit-hash: 44484102db471a5f85ad078a81b9d8b9456b5233
2020-05-19 17:00:30 -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
Willem Melching 046c47296f use base class in car_kf
old-commit-hash: 896bd1b5c72aa2e80c498067c299e643478559bf
2020-05-15 15:48:48 -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 8f4c431efc lane kf was not built
old-commit-hash: 2cc218e144bec84d5992e45076adf00d56988f84
2020-05-15 14:22:36 -07:00
Paweł Goliński 524397ce86 Use Conversions in calibrationd (#1511)
old-commit-hash: 8b0ab73fefa4fbfae58192067b82073cd5d485fe
2020-05-14 17:56:45 -07:00
Bruce Wayne 157c671a60 make linter happy
old-commit-hash: f8a0eb0f7a9a63404b82b3f131436dcd5d9958c8
2020-05-14 17:38:52 -07:00