Commit Graph

186 Commits

Author SHA1 Message Date
Dean Lee 165022f035 ublox_msg.h: remove #define min (#19718)
old-commit-hash: d34a6901369cb424ab8e460b3426f5633ff1a9ac
2021-01-11 11:59:14 +01:00
Dean Lee 4c1919f41e merge utilpp.h into util.h (#19710)
old-commit-hash: 595830135bb79c8b23eb8339ae768ca7b6a822f8
2021-01-10 14:57:32 -08:00
Dean Lee 5e557ed96d common exit handler (#19661)
* common signal handle

* fix typo

* rename to ExitHandler

* remove include signal.h

* remove include csignal

* rename variable exit to v

* rebase master
old-commit-hash: 86fe2d1697531bebdf5d0d83609e91ed4006f54b
2021-01-05 20:19:53 -08:00
Adeeb Shihadeh c55926c7b8 lgtm fixes (#19610)
* pass matrices by reference

* suppress that

* destructor

* that's wrong, suppress it
old-commit-hash: 4096f86e210e7caa94e7be2edfd1eb2c247175e8
2020-12-28 20:36:23 -08:00
Adeeb Shihadeh 0f22f60170 small ubloxd cleanup
old-commit-hash: c131f9db57ba92bdf69481757203a6ac72fac986
2020-12-19 15:05:40 -08:00
Dean Lee 1e477f95a6 ublox_msg.cc: simplify map operations in gen_nav_data (#2004)
* simplify map operations in gen_nav_data

* same as before

* rebase master
old-commit-hash: 3bf43bd7e357fae0502a98dbca1af88893a0b892
2020-12-19 14:13:31 -08:00
Willem Melching 0b60b8eb1b save calibration as JSON again
old-commit-hash: 9803d3fcdc9ceef32ec56b79dbe7194b164393e6
2020-12-08 11:54:27 +01:00
Harald Schafer f749a2e424 use name
old-commit-hash: 4fafdee9e40e7d6b748fcae22ffff7a9c9452551
2020-12-03 13:29:58 -08:00
Dean Lee df9e0b2cb4 simplify building capnp messages with arrays (#2617)
old-commit-hash: bd4f6650faea8b3c42a99087b4f1ce0560b7d652
2020-11-30 12:08:52 +01:00
Adeeb Shihadeh 7ec1329d53 small calibration refactor + tests (#2641)
* calibration tests

* read from capnp

* save using cereal struct

* reset calibration if new car

* car params
old-commit-hash: ee43eb552b9a5d5d1cfea65f00150325c9808a2d
2020-11-28 10:12:10 -08:00
HaraldSchafer c4d50c0bf0 preinit locationd filter (#2569)
* preinit

* update ref commit
old-commit-hash: 9f5dfb74f97cc8cdd1e0d25055ebc98ca9f5ee79
2020-11-19 15:14:35 -08:00
Willem Melching 643120e411 Reset liveParameters if starting with invalid values (#2360)
* reset params if starting with invalid values

* newline

* No need to check stiffness
old-commit-hash: 63e23e9cd72b5cb36ec78e3ec477290602c2dcc7
2020-10-19 19:04:33 +02:00
Willem Melching 03b2a6a137 LSM6DS3 (#2268)
* add initial lsm6ds3 setup

* accel works

* ignore lsm6ds3 in locationd

* add gyro

* add temp

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e51da619c15dea3ac6cc77f4f9a387923e2a3ea6
2020-10-05 16:16:25 +02:00
HaraldSchafer 805a86b0dd only do reset if already calibrated (#2176)
old-commit-hash: 0b849d5a4e417d73e4b821b909839f379d70e75d
2020-09-15 07:44:13 -07:00
HaraldSchafer d36675e618 Auto reset bad calibration (#2151)
* initial commit

* thanks pylint

* smoooooth

* cleanup

* cleaner

* switched

* always decay weight
old-commit-hash: df99316621ae51870a92fdc767ec4651261b7314
2020-09-14 04:02:58 -07:00
Adeeb Shihadeh 218c3d3de7 send initial calibration packet immediately
old-commit-hash: 74801bd216601df2ff38d853787139337a375c3c
2020-09-13 13:54:14 -07:00
Adeeb Shihadeh ac3422fc0f message builder (#2161)
* use custom MessageBuilder from cereal

* use MesageBuilder.toBytes

* bump cereal

* unused

* another one

* fix ui msg

Co-authored-by: deanlee <deanlee3@gmail.com>
old-commit-hash: 4d5733924a2fdd8a3bbaf5f48869ac744b983401
2020-09-12 21:48:15 -07:00
Adeeb Shihadeh 64a9728f2e Reduce paramsd and calibrationd CPU usage (#2119)
* reduce paramsd cpu

* reduce calibrationd cpu usage

* calibration_helpers was mostly unused

* more calibration cleanup

* update refs

* fix thresholds in CPU test
old-commit-hash: e0004d09810d9c3bcb8681bca110bf5bbd09445a
2020-09-10 12:16:29 -07:00
HaraldSchafer 5b1dc76a96 remove vp everywhere (#2122)
* remove vp everywhere

* wrong dimension

* useful disclaimer

* switcheroo

* imcomplete switcheroo

* did it wrong again

* difference look small enough

* fix comment
old-commit-hash: 01111b3f28c748769db8f27646d9086f00a417ef
2020-09-04 03:05:20 -07:00
HaraldSchafer 388274d494 Track calib spread (#1988)
* add calib spread metric

* add field

* needs to be array

* update refs

* log valid blocks too

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d097abeb2130fc841571b14551eeea2acaa12296
2020-08-06 14:47:17 -07:00
HaraldSchafer e85d1f0044 persist falling until message sent (#1982)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 85a7ceaf079ed6c8cb804403f33706a386ca9b51
2020-08-06 14:46:19 -07:00
Adeeb Shihadeh a301462f9b remove dead lines from calibrationd
old-commit-hash: df78c9d4dfe9cc5ed1409b46b1b11611ed5a721a
2020-08-06 13:57:01 -07:00
Harald Schafer 3705a2209f wrong units
old-commit-hash: 687afa9687c347fe1473d9d6ae3e2e3634b682df
2020-08-05 13:45:58 -07:00
Harald Schafer daf9176711 Revert "persist falling test"
This reverts commit 273f745ad5d1ce7e92ce24e8fa3b08895977dd5c.

old-commit-hash: 7032a40717f46675697f0ba049956a3e1788e6f6
2020-08-05 10:46:26 -07:00
Harald Schafer d252db9da9 persist falling test
old-commit-hash: 8cad9375d336ca5276f673296d0e64ff14efe0de
2020-08-05 10:44:40 -07:00
HaraldSchafer 122118ccd4 add fall filter and less FP on posenet (#1971)
* add fall filter and less FP on posenet

* add alert

* list

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 490ee5268712c38f738161cab939c02573581ebf
2020-08-03 15:51:56 -07:00
Adeeb Shihadeh f8e08fad90 Cleanup locationd msg building (#1972)
* cleanup locationd msg building

* remove that
old-commit-hash: 1208ac424d06e03da9f83fc1fa1824df7e32f80d
2020-08-03 14:58:15 -07:00
HaraldSchafer bc3b340694 Misc locationd improvements (#1714)
* I like this more

* rewind less

* bump rednose

* falling off windshield detectopr

* adjust thresholds

* this is a soft disable now

* move that

* process replay fixes

* update refs

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8e2d344135b9a1102503432d651e6bf599d9fa42
2020-07-30 15:33:22 -07:00
Willem Melching 488bbcaaa4 remove old params learner (#1918)
old-commit-hash: e0e7c7486d653a550c596f9dca7e5b6424d4c05d
2020-07-24 18:43:17 +02:00
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