Commit Graph

70 Commits

Author SHA1 Message Date
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
Willem Melching 1de5d84a06 Live kf whitespace cleanup, fix covariance phone accel 2020-02-12 13:47:08 -08:00
Harald Schafer 6823971a11 bury scipy 2020-02-12 13:15:57 -08:00
Harald Schafer a8261c8017 bury scipy for now 2020-02-12 13:13:17 -08:00
Harald Schafer 579a9714da no delay buffer for now 2020-02-12 10:31:15 -08:00
Willem Melching 47fd50ca60 Kalman filter compilation cleanup (#1080)
* start cleanup

* create generated dir if not exist

* tests pass!

* everything works again

* also convert live_kf to new structure

* Remove sympy helpers from file list

* Add laika to docker container

* Only build models that are present
2020-02-12 09:40:28 -08:00
HaraldSchafer 5e675bd563 Update README.md 2020-02-11 19:19:42 -08:00
HaraldSchafer 8df126cd65 rough readme draft
First pass at readme
2020-02-11 19:19:25 -08:00
Harald Schafer 871d5b3c99 IMPORTANT CHECK 2020-02-11 17:41:02 -08:00