Commit Graph

61 Commits

Author SHA1 Message Date
Adeeb Shihadeh
1945c356c2 agnos 8 (#28843)
* agnos 8

* update to python 3.11.4 (#27452)

* rebase

* optional

* lower cython

* TEMP don't pull cl to use python3.11

* Revert "lower cython"

This reverts commit c5132f8a2727c212bdfc01e77aa53e50a17ead9d.

* fix cython

* remove tensorrt

* carla + opencv

* macos

* update timm and smp

* pynvc

* https

* downgrade numpy

* pin scipy

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
Co-authored-by: Yassine <yassine.y10@gmail.com>

* revert that

* fix linter

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
Co-authored-by: Yassine <yassine.y10@gmail.com>
2023-07-20 21:56:57 -07:00
Adeeb Shihadeh
9c307f2550 Revert "Update pycapnp and Cython (#29021)"
This reverts commit 76ef1b9b9f.
2023-07-18 18:47:35 -07:00
Maxime Desroches
76ef1b9b9f Update pycapnp and Cython (#29021)
* cython + pycapnp

* from_bytes with context

* poetry lock

* limit numpy

* force build

* Revert "force build"

This reverts commit 8c7cb00421da9d0f1b7da2c94f75e9c43733f840.

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-07-18 16:40:36 -07:00
YassineYousfi
7925232a34 hot coffee model (#28296)
* 1061b1c7-b944-43e3-a940-b56b64d66f54/700

* bump cereal

* bump cereal

* make mypy happy

* write TODO

* read height from written params

* fix certain_if_calib logic and unit tests

* factor moving_avg_with_linear_decay

* remove whitespace

* update model ref commit

* default value for CI

* update process replay ref commit

* update process replay ref commit

* update process replay ref commit

* bump cereal
2023-06-02 20:55:13 -07:00
Harald Schäfer
2c65b843a5 Calibrationd: allow more pitch angle (#28255)
* Calibrationd: allow more pitch angle

* Update ref_commit
2023-05-24 11:41:01 +02:00
Harald Schäfer
598343aad1 Calibrationd: make recalibrating alert (#28149)
* Initial

* fixes

* not an int anymore

* elif

* revert ref

* update ref

* fix alert text

* regen refs

* update ref

* add recalibration unit test

* set into recalibration state

* fix words

* recalib

* text

* Update selfdrive/controls/lib/events.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-05-15 09:29:57 -07:00
Harald Schäfer
a979a54cf9 Calibration remount detector: soft disable (#27993)
* Calibration remount detector: soft disable

* Update test_calibrationd.py
2023-04-22 00:27:20 +00:00
Harald Schäfer
ee15d6b1d1 Calibrationd: fix reset smoothing (#27992)
* Add test for smoothing

* fix smooth cycles

* fix calib reset smoothing
2023-04-21 06:53:54 +00:00
HaraldSchafer
dbc30c053c UI: fade into wide camera (#26203)
* UI: fade into wide camera

* handle routes with no wide calib

* more cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-10-27 17:27:31 -07:00
HaraldSchafer
15595fc859 Calibrationd: Calibrate wide from device (#26204)
* Use calibrator to stabilize wide transform

* Need array

* Needs init

* Needs to be arr

* publish mshg

* Check size

* Update ref

* fix calibration param read when no wide calib

* need self!
2022-10-24 20:17:05 -07:00
Bruce Wayne
75b7fd0a7d Revert "Use calibrator to stabilize wide transform (#26201)"
This reverts commit 42ef62e391.
2022-10-21 21:44:47 -07:00
HaraldSchafer
42ef62e391 Use calibrator to stabilize wide transform (#26201)
* Use calibrator to stabilize wide transform

* Need array

* Needs init

* Bump to master

* Needs to be arr

* publish mshg

* Check size

* Update ref
2022-10-21 20:30:48 -07:00
HaraldSchafer
772b748689 Cleanup calibration code (#25119)
* First attempt

* worksish

* tests pass

* cleanup

* get rid of garbahe

* fix name

* Still used in xx

* add debug functions

* used

* Revert "used"

This reverts commit 276e8ebab06d2d4f0e9927ba32b7d8aca2bf88c3.

* Update ref
2022-08-01 20:35:14 -07:00
Willem Melching
de0c12e5af calibrationd: start faster by not waiting for carParams (#24976)
* calibrationd: start faster by not waiting for carParams

* fix process replay

* update ref
2022-06-27 15:34:36 +02:00
Adeeb Shihadeh
0fce5d9045 Move a bunch of stuff to system/ part 3 (#24829)
* move swaglog.py

* timezoned

* logmessaged

* version.py

* fix linter
2022-06-11 23:19:27 -07:00
Gijs Koning
b5aed2bf67 Simulator: Speed up process by removing second camera (#24679)
* simulator: support running wide camera only

* proper frame id

* use param name that makes more sense

* do some cleanup

* Update tools/sim/bridge.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-05-30 15:25:07 +02:00
Dylan Herman
d2eef1955c add mypy check for return-any (#24379)
* add mypy check for return-any

* remove unused import

* typing

* remove unnecessary variable typing

* cleanup

* cleanup

* bump submodules

* small fixes

* only a problem on mac

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-05-12 14:59:00 +02:00
Adeeb Shihadeh
7dffd0ac0b calibrationd: support for not cars (#24115)
* calibrationd: support for not cars

* update refs
2022-04-04 17:04:15 -07:00
Dylan Herman
9f1c663ae2 calibrationd: add function typing (#24018) 2022-03-23 00:28:36 -07:00
Dylan Herman
604fefa9b1 calibrationd: remove unused arg in function (#24004) 2022-03-21 20:03:32 -07:00
Adeeb Shihadeh
5c3f3e44bc break up selfdrive.config (#23959)
* break up selfdrive.config

* add to release files

* fix import order
2022-03-13 21:42:39 -07:00
Adeeb Shihadeh
8a0fc850b4 give calibrationd rt priority (#23725) 2022-02-07 21:05:55 -08:00
Dean Lee
e5f9af4a6e calibrationd: Don't repeatedly call get_valid_idxs() (#23473)
* optimize

* rpy_init should be np.array

* rename to rpys
2022-01-12 15:34:17 -08:00
Dean Lee
de572c3755 calibrationd: fix indentation (#23502) 2022-01-12 14:40:02 -08:00
Willem Melching
8444f8267d calibrationd: convert existing calibration to numpy (#23494)
* calibrationd: convert existing calibration to numpy

* use numpy functions
2022-01-11 15:25:01 +01:00
Dean Lee
35ec6ac1cb use ndarray.tolist to convert numpy array to float (#23485) 2022-01-11 14:34:47 +01:00
Dean Lee
f6c6e34ea3 calibrationd: remove extra comma (#23472) 2022-01-09 14:32:33 -08:00
George Hotz
dc96d4bee7 Add More Types for mypy (#23268)
* mypy passes

* a few more

* a few in manager

* more types, will lint

* more

* simple types

* events type

* Update selfdrive/thermald/thermald.py

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-12-28 18:07:00 +01:00
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