Commit Graph

33 Commits

Author SHA1 Message Date
HaraldSchafer
cd190dc85d Calibrationd: check size of valid_blocks without current (#23223) 2021-12-14 15:14:14 -08:00
HaraldSchafer
40dcc63823 Calibrationd: don't use noisy current block (#23222) 2021-12-14 14:09:38 -08:00
HaraldSchafer
837823ff58 Revert "Dont use erratic current block (#23211)" (#23221)
This reverts commit 19335bb6a4.
2021-12-14 13:59:39 -08:00
HaraldSchafer
19335bb6a4 Dont use erratic current block (#23211) 2021-12-14 13:58:42 -08:00
arfy slowy
d74def61f8 fix: spelling typos (#21861)
* fix: typo spelling grammar

* revert

* Update selfdrive/locationd/calibrationd.py

* more revert

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-08-05 12:05:49 -07:00
Adeeb Shihadeh
95380969ea calibrationd: remove support for json params 2021-05-27 12:36:42 -07:00
HaraldSchafer
c92f171866 Loosen ecamera calib checks (#20629)
* relax thresholds for widecamera

* cleaner
2021-04-09 20:38:09 -07:00
Dean Lee
57fe8488ac Qt: show current calibration values (#20455)
* show current calibration

* read calibration from capnp

* use CalStatus

* cleanup calibrationd.py

* remove import capnp

* keep json writing,remove comment

* fix test error

* cleanup

* remove test_read_saved_params

* cleanup

* write out capnp

* restore test

* clean up

* get calibration from CalibrationParams

* cleanup

* update calibration when the description is visible

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
2021-04-06 15:02:40 -07:00
Willem Melching
9803d3fcdc save calibration as JSON again 2020-12-08 11:54:27 +01:00
Adeeb Shihadeh
ee43eb552b small calibration refactor + tests (#2641)
* calibration tests

* read from capnp

* save using cereal struct

* reset calibration if new car

* car params
2020-11-28 10:12:10 -08:00
HaraldSchafer
0b849d5a4e only do reset if already calibrated (#2176) 2020-09-15 07:44:13 -07:00
HaraldSchafer
df99316621 Auto reset bad calibration (#2151)
* initial commit

* thanks pylint

* smoooooth

* cleanup

* cleaner

* switched

* always decay weight
2020-09-14 04:02:58 -07:00
Adeeb Shihadeh
74801bd216 send initial calibration packet immediately 2020-09-13 13:54:14 -07:00
Adeeb Shihadeh
e0004d0981 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
2020-09-10 12:16:29 -07:00
HaraldSchafer
01111b3f28 remove vp everywhere (#2122)
* remove vp everywhere

* wrong dimension

* useful disclaimer

* switcheroo

* imcomplete switcheroo

* did it wrong again

* difference look small enough

* fix comment
2020-09-04 03:05:20 -07:00
HaraldSchafer
d097abeb21 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>
2020-08-06 14:47:17 -07:00
Adeeb Shihadeh
df78c9d4df remove dead lines from calibrationd 2020-08-06 13:57:01 -07:00
HaraldSchafer
637eecc2b2 save bad calib too for display (#1678) 2020-06-15 17:20:49 -07:00
Adeeb Shihadeh
f3dcf861c7 enable flake8 E303: too many blank lines 2020-05-31 17:21:11 -07:00
Adeeb Shihadeh
efd5dffb1e enable flake8 E231: missing whitespace after comma 2020-05-31 12:49:11 -07:00
HaraldSchafer
7ffaff029f 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
2020-05-20 19:21:03 -07:00
Paweł Goliński
8b0ab73fef Use Conversions in calibrationd (#1511) 2020-05-14 17:56:45 -07:00
HaraldSchafer
368b65e29b angles instead of vp (#1421)
* angles instead of vo

* clean migration
2020-04-27 13:58:36 -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
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
Shane Smiskol
6ff881f789 initialize all messages in 1 line (#1206) 2020-03-05 17:32:52 -08:00
Harald Schafer
a8f2dbe727 unstable init 2020-03-04 18:20:10 -08:00
Harald Schafer
48b4a57980 needs to be array 2020-01-23 11:08:05 -08:00
Harald Schafer
ba6fd511b6 sanity clip every vp 2020-01-22 13:09:03 -08:00
George Hotz
fcf8efb826 selfdrive/locationd 2020-01-17 11:39:56 -08:00