Cameron Clough
a09300385b
mypy: use implicit-optional ( #31590 )
...
* mypy: set implicit-optional = true
* find and replace '| None = None' -> '= None' in function args
old-commit-hash: 80da3aee14
1 year ago
Cameron Clough
9bd90112d0
use pyupgrade to update to new typing syntax ( #31580 )
...
* add pyupgrade hook
* run pyupgrade (pre-commit run -a)
* ruff --fix
* Revert "add pyupgrade hook"
This reverts commit 56ec18bb6b
.
* revert changes to third_party/
* manual type fixes
* explicit Optional wrapping capnp objects
old-commit-hash: 995250ae49
1 year ago
Adeeb Shihadeh
adcac1f207
SubMaster: improve service aliveness checks ( #31391 )
...
* bump cereal
* fix
* fixes
* single poll
* bump
* bump
---------
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 279d2c3b23
1 year ago
Dean Lee
1d7d7b89b2
common/params: support nonblocking write ( #29808 )
...
* Safe and efficient asynchronous writing parameters
* call putNonBlocking in locationd
* remove space
* ->AsyncWriter
* remove semicolon
* use member function
* asyc write multiple times
* add test case for AsyncWriter
* merge master
* add missing include
* public
* cleanup
* create once
* cleanup
* update that
* explicit waiting
* improve test case
* pass prefix to asywriter
* move to params
* assert(queue.empty())
* add comment
* add todo
* test_power_monitoring: remove patch
* rm laikad.py
* fix import
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 3c4c4d1f7f
1 year ago
Adeeb Shihadeh
59eb2988de
swaglog.py goes in common/ ( #30631 )
...
* swaglog.py goes in common/
* all of these go in release
* we'll even include the pyx
old-commit-hash: 35f819c823
1 year ago
Adeeb Shihadeh
1cc4f1a634
new msgs default to invalid ( #30587 )
...
* new msgs default to invalid
* fix lm
* set more valid
* update rest
* update refs
* fix logMessage
* more valids
* cleanup
* fix llk test
* pigeond is also valid
* more valids
old-commit-hash: a1d36961cf
1 year ago
Harald Schäfer
25e5c57dfe
calibrationd: Pitch spread different tolerance ( #30065 )
...
* calibrationd: Pitch spread different tolerance
* Improve calibrationd tests
old-commit-hash: 2162d149e8
2 years ago
Adeeb Shihadeh
0010c9a986
Revert "params: safe and efficient async writing parameters ( #25912 )"
...
This reverts commit 780669c33fea1b2a14a0bd6e2eac82c9b8893aa5.
old-commit-hash: ec479322d3
2 years ago
Dean Lee
08e70aecb2
params: safe and efficient async writing parameters ( #25912 )
...
* Safe and efficient asynchronous writing parameters
* call putNonBlocking in locationd
* remove space
* ->AsyncWriter
* remove semicolon
* use member function
* asyc write multiple times
* add test case for AsyncWriter
* merge master
* add missing include
* public
* cleanup
* create once
* cleanup
* update that
* explicit waiting
* improve test case
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 0d797f4e8b
2 years ago
Adeeb Shihadeh
16ec56398c
add openpilot prefix to imports ( #29498 )
...
* add openpilot prefix to imports
* more
* more
* fix docs
* fix linter
* bump submodules
* fix patched tests
* update dynamic imports
* debug
* Revert "debug"
This reverts commit db5e13b991
.
* fix pm test
old-commit-hash: a9626f95b6
2 years ago
Justin Newberry
7b677910df
Linter: Fix >160 line length test ( #29287 )
...
* test
* fix line length
* fix line length
* fix file size
* revert poetry
* cleanup for PR
old-commit-hash: cf64b27168
2 years ago
Adeeb Shihadeh
b0c3778aae
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 c5132f8a27
.
* 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>
old-commit-hash: 1945c356c2
2 years ago
Adeeb Shihadeh
33e6aad83b
Revert "Update pycapnp and Cython ( #29021 )"
...
This reverts commit 9f80430d3958cbcf4fb9b67a428f45fd034c5649.
old-commit-hash: 9c307f2550
2 years ago
Maxime Desroches
6ba97408e9
Update pycapnp and Cython ( #29021 )
...
* cython + pycapnp
* from_bytes with context
* poetry lock
* limit numpy
* force build
* Revert "force build"
This reverts commit 8c7cb00421
.
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 76ef1b9b9f
2 years ago
YassineYousfi
4de14c1130
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
old-commit-hash: 7925232a34
2 years ago
Harald Schäfer
74bb4956ab
Calibrationd: allow more pitch angle ( #28255 )
...
* Calibrationd: allow more pitch angle
* Update ref_commit
old-commit-hash: 2c65b843a5
2 years ago
Harald Schäfer
5ddceb553d
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>
old-commit-hash: 598343aad1
2 years ago
Harald Schäfer
73e00a05ac
Calibration remount detector: soft disable ( #27993 )
...
* Calibration remount detector: soft disable
* Update test_calibrationd.py
old-commit-hash: a979a54cf9
2 years ago
Harald Schäfer
44aa799d91
Calibrationd: fix reset smoothing ( #27992 )
...
* Add test for smoothing
* fix smooth cycles
* fix calib reset smoothing
old-commit-hash: ee15d6b1d1
2 years ago
HaraldSchafer
ed91648949
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>
old-commit-hash: dbc30c053c
3 years ago
HaraldSchafer
89e6b69f05
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!
old-commit-hash: 15595fc859
3 years ago
Bruce Wayne
21bcfad5a7
Revert "Use calibrator to stabilize wide transform ( #26201 )"
...
This reverts commit 1827b3c9e2942240f65d03ec0f790c91aa9c00ee.
old-commit-hash: 75b7fd0a7d
3 years ago
HaraldSchafer
dfbb291ef2
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
old-commit-hash: 42ef62e391
3 years ago
HaraldSchafer
e5589e572f
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
old-commit-hash: 772b748689
3 years ago
Willem Melching
e7eeeea0f0
calibrationd: start faster by not waiting for carParams ( #24976 )
...
* calibrationd: start faster by not waiting for carParams
* fix process replay
* update ref
old-commit-hash: de0c12e5af
3 years ago
Adeeb Shihadeh
3c48bc47b7
Move a bunch of stuff to system/ part 3 ( #24829 )
...
* move swaglog.py
* timezoned
* logmessaged
* version.py
* fix linter
old-commit-hash: 0fce5d9045
3 years ago
Gijs Koning
6a53db981b
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>
old-commit-hash: b5aed2bf67
3 years ago
Dylan Herman
2dfba97175
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>
old-commit-hash: d2eef1955c
3 years ago
Adeeb Shihadeh
56bfed0c15
calibrationd: support for not cars ( #24115 )
...
* calibrationd: support for not cars
* update refs
old-commit-hash: 7dffd0ac0b
3 years ago
Dylan Herman
c6f626d116
calibrationd: add function typing ( #24018 )
...
old-commit-hash: 9f1c663ae2
3 years ago
Dylan Herman
f8b18e134d
calibrationd: remove unused arg in function ( #24004 )
...
old-commit-hash: 604fefa9b1
3 years ago
Adeeb Shihadeh
ec47e0fef0
break up selfdrive.config ( #23959 )
...
* break up selfdrive.config
* add to release files
* fix import order
old-commit-hash: 5c3f3e44bc
3 years ago
Adeeb Shihadeh
c8dc3909f4
give calibrationd rt priority ( #23725 )
...
old-commit-hash: 8a0fc850b4
3 years ago
Dean Lee
f112aef5a7
calibrationd: Don't repeatedly call get_valid_idxs() ( #23473 )
...
* optimize
* rpy_init should be np.array
* rename to rpys
old-commit-hash: e5f9af4a6e
3 years ago
Dean Lee
2bb2545d57
calibrationd: fix indentation ( #23502 )
...
old-commit-hash: de572c3755
3 years ago
Willem Melching
fec321a178
calibrationd: convert existing calibration to numpy ( #23494 )
...
* calibrationd: convert existing calibration to numpy
* use numpy functions
old-commit-hash: 8444f8267d
3 years ago
Dean Lee
55233b753b
use ndarray.tolist to convert numpy array to float ( #23485 )
...
old-commit-hash: 35ec6ac1cb
3 years ago
Dean Lee
38144fa83b
calibrationd: remove extra comma ( #23472 )
...
old-commit-hash: f6c6e34ea3
3 years ago
George Hotz
86a39e838b
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>
old-commit-hash: dc96d4bee7
3 years ago
HaraldSchafer
4de7b45d40
Calibrationd: check size of valid_blocks without current ( #23223 )
...
old-commit-hash: cd190dc85d
3 years ago
HaraldSchafer
22ec491d1f
Calibrationd: don't use noisy current block ( #23222 )
...
old-commit-hash: 40dcc63823
3 years ago
HaraldSchafer
4708268c7d
Revert "Dont use erratic current block ( #23211 )" ( #23221 )
...
This reverts commit 5c76900f565c8e55f5738efb8fdf5d6a846dbe0e.
old-commit-hash: 837823ff58
3 years ago
HaraldSchafer
6a7849aea3
Dont use erratic current block ( #23211 )
...
old-commit-hash: 19335bb6a4
3 years ago
arfy slowy
63b3d6024b
fix: spelling typos ( #21861 )
...
* fix: typo spelling grammar
* revert
* Update selfdrive/locationd/calibrationd.py
* more revert
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d74def61f8
4 years ago
Adeeb Shihadeh
e35b30c9dd
calibrationd: remove support for json params
...
old-commit-hash: 95380969ea
4 years ago
HaraldSchafer
a5fff75b5e
Loosen ecamera calib checks ( #20629 )
...
* relax thresholds for widecamera
* cleaner
old-commit-hash: c92f171866
4 years ago
Dean Lee
d33538e5f3
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>
old-commit-hash: 57fe8488ac
4 years ago
Willem Melching
0b60b8eb1b
save calibration as JSON again
...
old-commit-hash: 9803d3fcdc
4 years ago
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: ee43eb552b
4 years ago
HaraldSchafer
805a86b0dd
only do reset if already calibrated ( #2176 )
...
old-commit-hash: 0b849d5a4e
5 years ago