Commit Graph

78 Commits (d976233f696040cd5f9a5081c7b21742b7aaef66)

Author SHA1 Message Date
Willem Melching add784a7df
remove eigen from phonelibs (#1505) 2020-05-13 16:41:52 -07:00
Adeeb 008700a6b3
LGTM fixes (#1480) 2020-05-09 16:40:43 -07:00
robbederks 71bebc4fca
Ambient light calibration parameters on persist partition (#1429)
* WIP: light sensor persistent params

* fix params writing

* Persistent params argument in C params lib. Fixed symlink flow

* Removed debug prints

* fix boardd

* fix ui

* remove debug print
2020-05-08 19:39:18 -07:00
Adeeb Shihadeh 9670f8fb9f these don't need json 2020-05-04 23:37:07 -07:00
George Hotz d5ca841b0f Revert "Bypass alignment related copy whenever possible (#1443)"
This reverts commit b225016628.
2020-05-04 09:54:05 -07:00
George Hotz e568d3cadc
More LGTM fixups (#1457)
* exclude lib dirs, fix 3 cpp errors

* fix more alerts, exclude mkvparse

Co-authored-by: George Hotz <geohot@gmail.com>
2020-05-02 20:00:41 -07:00
George Hotz 1295cfe06c
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>
2020-05-02 12:07:34 -07:00
Dean Lee b225016628
Bypass alignment related copy whenever possible (#1443)
remove blank lines

add file messagehelp.h

remove blank line

simplify

after review
2020-05-01 19:21:00 -07:00
Willem Melching 8db89a6b04 Return avg angle offset 2020-04-28 17:47:04 -07:00
Willem Melching 9159a8d701 Retune stiffness 2020-04-28 15:30:11 -07:00
Willem Melching b2aefd252f Faster sR and stiffness factor 2020-04-27 16:39:27 -07:00
HaraldSchafer 368b65e29b
angles instead of vp (#1421)
* angles instead of vo

* clean migration
2020-04-27 13:58:36 -07:00
Willem Melching f15d55c2b1 Car_kf tuning 2020-04-23 14:48:14 -07:00
Willem Melching 12af1f9175 Refactor locationd message building 2020-04-21 17:13:54 -07:00
Harald Schafer 3aab9facaa mixed up 2020-04-20 14:39:18 -07:00
Harald Schafer 438b03d9f2 no param reads in pipeline 2020-04-20 14:00:06 -07:00
HaraldSchafer 28d8b4abac
Fallback publish calib (#1392)
* if no inputs still publish

* better
2020-04-17 17:05:54 -07:00
HaraldSchafer a18832748c
rely on carstate to be sure (#1363)
* rely on carstate to be sure

* relies on carstate now too

* don't know how else to make this work

* update ref

* clean up hacks

* prev ref was weirdly bad?

* lets try that from my machine

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-04-15 13:14:23 -07:00
Harald Schafer adac0135b3 this wasnt the issue 2020-03-26 17:25:21 -07:00
Harald Schafer 16c84074f2 lane comp 2020-03-26 14:01:36 -07:00
Harald Schafer cc5b9b32bf better nothing than wrong 2020-03-24 11:01:41 -07:00
Willem Melching bb1557f8de Paramsd tuning 2020-03-24 09:40:14 -07:00
Harald Schafer 82f316732a correctness is expensive 2020-03-23 18:02:59 -07:00
Willem Melching a24d08e569 paramsd improvements from branch 2020-03-23 16:57:05 -07:00
Harald Schafer bcbcd96d92 need sqrtsd 2020-03-18 15:23:59 -07:00
HaraldSchafer 628e7e6968
stricter calibration requirements (#1227)
* stricter requirements

* update refg

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-03-13 11:15:58 -07:00
Willem Melching 6be97f6396 Don't build all the kalman filters on the phone 2020-03-12 15:46:38 -07:00
Willem Melching e28832b359
EKF global variable support (#1230)
* Add global variables to kalman filter code

* fix linter
2020-03-12 12:52:31 -07:00
Willem Melching 2abc1a299f Use calibrated reference frame instead of device frame 2020-03-09 13:29:30 -07:00
Willem Melching 01a14400cb Correct reference frame name in car_kf 2020-03-09 12:49:52 -07:00
Willem Melching 01ac9d4722 Use new locationd packet in paramsd 2020-03-09 12:45:04 -07:00
Shane Smiskol 6ff881f789
initialize all messages in 1 line (#1206) 2020-03-05 17:32:52 -08:00
HaraldSchafer 24eeec4e0b
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
2020-03-05 15:59:49 -08:00
Harald Schafer a8f2dbe727 unstable init 2020-03-04 18:20:10 -08:00
Willem Melching c9ecab2139
Kalman filter to identify vehicle parameters (#1123)
* full vehicle model simulator

* Add vehicle model

* Model compiles

* Close enough

* Simulation works

* Add fast angle offset

* Tune fast angle offset learner

* Create live service for paramsd

* Better clamping

* Fix rotation matrix

* Cleanup before merge

* move debug script to debug/internal

* revert plannerd change

* switch vehicle model to corolla

* fix valid flag

* Bigger stiffness range

* Lower process noise on steer ratio

* Tuning

* Decimation

* No maha tests
2020-02-26 16:19:02 -08:00
Adeeb e8cb6ea06a
Abstract common events + event cleanup (#1129)
* too many if

* unused

* whitespace

* key

* sefldrive/car/*

* no more gctx

* lower

* start abstracting common events

* all cars

* start small

* all cars

* reverse gear

* wrongCarMode

* wrongGear

* espDisabled

* steerUnvailable

* make linter happy

* c isn't used

* fix esp_disabled in VW

* update ref

* more red

* more cleanup

* fix subaru

* update ref
2020-02-20 16:22:25 -08:00
Willem Melching ff91c6f9d4
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
2020-02-17 18:07:23 -08:00
HaraldSchafer 8ba5ef3209
Update README.md 2020-02-17 17:10:24 -08:00
George Hotz c4d89699d9 Fix bugged exception in lst_sq_computer. 2020-02-13 16:35:29 -08:00
George Hotz d86c7b7d15 build lst_sq_computer 4 and 5 2020-02-13 16:13:14 -08:00
Comma Device 76b3dca208 more decimation 2020-02-13 23:54:45 +00:00
Harald Schafer 4470407729 better packet info 2020-02-13 11:12:16 -08:00
Harald Schafer 891d6cea94 fix std 2020-02-13 08:38:50 -08:00
Harald Schafer f72044327b passes tests again 2020-02-12 20:28:02 -08:00
Harald Schafer 8257c60f71 misc cleanup 2020-02-12 15:27:13 -08:00
Willem Melching 1716f0b11b Whitespace 2020-02-12 14:32:53 -08:00
Harald Schafer 5c005adc79 fix broken compilation 2020-02-12 14:26:35 -08:00
Willem Melching 7015a4704e Gnss kf whitespace 2020-02-12 14:11:50 -08:00
Willem Melching 965a9ae042 Loc kf whitespace, fix phone accelerometer covariance 2020-02-12 14:08:40 -08:00
Harald Schafer 2b5a8fd7af no magic numbers 2020-02-12 14:05:48 -08:00