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: eb1aa3d831
2020-07-09 09:25:32 -07:00
Willem Melching
24adb459c3 eon needs include for errno
old-commit-hash: 16a23c98fa
2020-06-23 16:05:47 -07:00
Willem Melching
4d93e0b907 Set timeouts on boardd and ubloxd receive sockets
old-commit-hash: 28110ea880
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: 31ea066acb
2020-06-23 15:43:29 -07:00
Willem Melching
cc4b6c2c33 fix #1762, add timeout on ubloxRaw receive
old-commit-hash: 0842e98ad8
2020-06-23 15:26:25 -07:00
Willem Melching
08fa4c4691 Locationd: only process valid log messages (#1761)
old-commit-hash: bfeefb6fd3
2020-06-22 14:41:15 -07:00
Willem Melching
6dc1c6e58e cleanup no sensor data alert (#1760)
old-commit-hash: 264015c584
2020-06-22 14:27:07 -07:00
Willem Melching
42f153e4e4 ubloxd free->delete, fixes #1742
old-commit-hash: 9e273eb2ec
2020-06-19 13:56:46 -07:00
HaraldSchafer
57d50ba0b6 save bad calib too for display (#1678)
old-commit-hash: 637eecc2b2
2020-06-15 17:20:49 -07:00
HaraldSchafer
c26f15d608 need to do something about the valid (#1713)
old-commit-hash: 2afe224813
2020-06-15 17:20:31 -07:00
Willem Melching
e313efec3e dont conflate in ubloxd
old-commit-hash: 10cb6ab87a
2020-06-15 13:31:28 -07:00
Dean Lee
70b4f7858e remove duplite #include (#1697)
old-commit-hash: 981a166a7c
2020-06-14 08:31:36 -07:00
Willem Melching
26c17c844c Reset stiffness at beginning of each drive
old-commit-hash: ef1c7b6833
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: 87bbbd4100
2020-06-10 17:25:48 -07:00
Willem Melching
c8d32ce78a wider margins on stiffness
old-commit-hash: fac0231471
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: c18e7da3c2
2020-06-09 16:44:26 -07:00
Dean Lee
5fb85ede56 add function read_db_bytes (#1662)
old-commit-hash: 90d97de74d
2020-06-09 13:46:49 -07:00
Adeeb
16c0bc99b2 Remove common/messaging.h (#1635)
* remove common/messaging.h

* release files
old-commit-hash: 7666d99694
2020-06-05 12:46:49 -07:00
Dean Lee
f7ffc61c52 pass subframes_map by refer (#1640)
old-commit-hash: 5f58307153
2020-06-05 12:42:23 -07:00
Adeeb Shihadeh
f69483e094 quick LGTM fixes
old-commit-hash: 3463f1165e
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: 367155168a
2020-06-03 16:13:34 -07:00
Adeeb
d035394ce7 Add pre-commit hooks (#1629)
old-commit-hash: ab83e48ec4
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: 843a64c72f
2020-06-02 16:29:32 -07:00
Willem Melching
6f09d990af paramsd output at 20 Hz instead of 100 Hz
old-commit-hash: a108e7f211
2020-06-01 13:47:17 -07:00
Adeeb Shihadeh
9823f1164c enable flake8 E303: too many blank lines
old-commit-hash: f3dcf861c7
2020-05-31 17:21:11 -07:00
Adeeb Shihadeh
68a3061c9d enable E261 in flake8: two spaces before inline comment
old-commit-hash: 27754a277c
2020-05-31 14:07:29 -07:00
Adeeb Shihadeh
be0b43f339 enable flake8 E231: missing whitespace after comma
old-commit-hash: efd5dffb1e
2020-05-31 12:49:11 -07:00
Adeeb
7965569766 Flake8 E22X (#1607)
* e221

* e225

* bump opendbc
old-commit-hash: 6051061ff8
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: d9bf9f0a40
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: 3d08dcc3b2
2020-05-28 15:05:04 -07:00
Willem Melching
12a306021d flake8 in pre-commit(#1583)
old-commit-hash: 29aaa44740
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: bd06434243
2020-05-27 20:00:14 -07:00
Harald Schafer
2fca7f3900 Revert "better values"
This reverts commit 7ac7e5f994b1e9311d50c595706dd92ca38f6205.

old-commit-hash: 5a841c2856
2020-05-27 17:11:27 -07:00
Willem Melching
03a268fd0b add gpsOK flag to liveLocationKalman
old-commit-hash: 8ea8f405db
2020-05-27 15:14:13 -07:00
Harald Schafer
4974754159 better values
old-commit-hash: 109ba298b1
2020-05-27 12:16:05 -07:00
HaraldSchafer
9dae9d6910 pure init (#1569)
old-commit-hash: 7c8d6cbdef
2020-05-26 20:49:14 -07:00
Harald Schafer
818695cfe7 needed for stability
old-commit-hash: 00e05bc7d8
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: ab5af232b2
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: 7ffaff029f
2020-05-20 19:21:03 -07:00
Willem Melching
47c5f52067 Locationd fixes
old-commit-hash: 8f3e932f96
2020-05-20 14:18:28 -07:00
Willem Melching
a4f120d2be Rename enum
old-commit-hash: f69f200178
2020-05-19 18:13:11 -07:00
Willem Melching
d2a41fad6e Paramsd handle liveLocation not valid and add alerts
old-commit-hash: 44484102db
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: d099e09fb7
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: 81686547cc
2020-05-17 20:59:53 -07:00
Willem Melching
046c47296f use base class in car_kf
old-commit-hash: 896bd1b5c7
2020-05-15 15:48:48 -07:00
Harald Schafer
99d9c3651c xRevert "way cleaner"
This reverts commit b8d13b1b44c6d33cb8209aac7fa65a269d8892b9.

old-commit-hash: 273e81715a
2020-05-15 14:29:34 -07:00
Harald Schafer
696fd01f9d way cleaner
old-commit-hash: a4ffd8c226
2020-05-15 14:24:11 -07:00
Willem Melching
8f4c431efc lane kf was not built
old-commit-hash: 2cc218e144
2020-05-15 14:22:36 -07:00
Paweł Goliński
524397ce86 Use Conversions in calibrationd (#1511)
old-commit-hash: 8b0ab73fef
2020-05-14 17:56:45 -07:00
Bruce Wayne
157c671a60 make linter happy
old-commit-hash: f8a0eb0f7a
2020-05-14 17:38:52 -07:00