Commit Graph

470 Commits

Author SHA1 Message Date
Kacper Rączy
eb87a31bc5 Unpin numpy (#29421)
* Unpin numpy

* Update lock file

* leave acados comment

* Fix warnings

* Fix more paramsd warnings
old-commit-hash: 62a88e504d
2023-08-17 15:36:14 -07:00
Justin Newberry
f33b4de80b Ruff: b905 (strict zip) (#29336)
* added mutable default args

* most of the Bs

* add comment about lrucache

* b905
old-commit-hash: e4ead4f183
2023-08-11 16:13:51 -07:00
Justin Newberry
a14f162bc7 Ruff: comprehensions conventions (#29317)
ignore c408
old-commit-hash: 4a9afd7554
2023-08-10 16:40:30 -07:00
Justin Newberry
7d6d3dc9ea Ruff: flake8 pie (misc lints) (#29318)
flake8 pie
old-commit-hash: af3ed37c5c
2023-08-10 15:28:51 -07:00
Justin Newberry
3ee0786de3 CI: Pylint to ruff (#29294)
* pylint to riff

* pylint to riff

* pylint to riff

* revert more

* undo exclude removal

* exclude tinygrad

* set line length

* pylint exclusions to ruff

* same excludes as old linter

* fix tools QA

* remove unrequired check

* revert linting third_party

* ignore e402
old-commit-hash: 7fdd9fc37c
2023-08-09 13:26:54 -07:00
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
2023-08-08 17:13:35 -07:00
Justin Newberry
ff96892511 Revert "CI: pylint to ruff (#29276)" (#29284)
This reverts commit ffad7279cbad3c4f2ea786287b4624d3a3aa18d7.
old-commit-hash: a91764954b
2023-08-08 14:24:04 -07:00
Justin Newberry
99006365a3 CI: pylint to ruff (#29276)
* pylint to riff

* pylint to riff

* pylint to riff

* revert more

* undo exclude removal

* exclude tinygrad
old-commit-hash: cb31a53d8a
2023-08-08 13:41:30 -07:00
Adeeb Shihadeh
e31cf1fe9e locationd: speedup unit tests (#29262)
old-commit-hash: b420e6fb13
2023-08-06 21:37:04 -07:00
Adeeb Shihadeh
e33973cdd4 pre-commit: autoupdate hooks (#29198)
* Update pre-commit hook versions

* fix

* bump submodules

* one more

---------

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
old-commit-hash: 39ce23420c
2023-08-01 12:32:21 -07:00
Adeeb Shihadeh
c261f97f6c torqued: fix cache loading (#29088)
* torqued: fix cache loading

* rm that
old-commit-hash: 4bac67c0f5
2023-07-21 17:28:04 -07:00
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 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>
old-commit-hash: 1945c356c2
2023-07-20 21:56:57 -07:00
Adeeb Shihadeh
33e6aad83b Revert "Update pycapnp and Cython (#29021)"
This reverts commit 9f80430d3958cbcf4fb9b67a428f45fd034c5649.

old-commit-hash: 9c307f2550
2023-07-18 18:47:35 -07:00
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 8c7cb00421da9d0f1b7da2c94f75e9c43733f840.

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 76ef1b9b9f
2023-07-18 16:40:36 -07:00
Harald Schäfer
ef407c9ad9 Qcom rawgps: Timestamp svpolys (#28738)
* Timestamp svpolys

* leap seconds handled fine

* Fix error

* bump laika

* Update test route

* update ref
old-commit-hash: 47ee0932db
2023-07-11 13:22:09 -07:00
Harald Schäfer
00dace19a9 Qcom laikad: Update expected msgs (#28887)
Update expected msgs
old-commit-hash: 0a510f2edd
2023-07-11 08:52:09 -07:00
Harald Schäfer
71e5af04c3 Laikad: fix qcom report collection (#28879)
* Make report aggregation variable

* Add laikad test now it passes

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 221cd0ab09
2023-07-11 01:25:49 -07:00
Adeeb Shihadeh
7337fab677 don't block on reading ublox param (#28859)
old-commit-hash: e63e2dde18
2023-07-10 15:33:58 -07:00
Harald Schäfer
c89a9b1b73 Laikad: more sensible ephemeris management (#28721)
* Laikad: more sensible ephemeris management

* Tow

* fix test

* Also publish qcom

* Update

* Update laikad.py
old-commit-hash: 5c6efd2aab
2023-06-28 21:08:18 -07:00
Kacper Rączy
215819c218 paramsd: expose filterState in debug mode (#28627)
* Update cereal

* Expose filterState in debug mode.
old-commit-hash: b6c3f69dc0
2023-06-23 13:45:40 -07:00
Harald Schäfer
86b8e2eb8c Qcom localizer: erratic clocks have an erratic error rate too (#28654)
Erratic clocks drift erratically too
old-commit-hash: af9edb020d
2023-06-23 09:44:37 -07:00
Kacper Rączy
b1eb066965 macOS: fix build issues & re-enable CI (#28258)
* Uncomment build_mac job

* Add PYCURL_CURL_CONFIG

* Acados universal binary

* Remove x86 macos references from sconscript

* Add missing include in cabana

* Update cereal

* Update workflow

* Remove unnecessary libpaths for darwin

* Add missing path to cached dirs

* Fix path in cache preparation step

* Add poetry caches to CI cache

* Compile acados with lower deployment target for CI

* Update cereal

* Pass -rpath in linker flags as scons doed not support RPATH on macos

* Use scons api instead of os

* @rpath in install name of acados dylibs

* SConstruct cleanup

* fix liblocationd tests by adding lib suffix based on platform

* Update cereal

* Update opendbc

* Update opendbc

* Add acados gitignore to release files

* Update cereal

* Update cereal

* Add scons_cache to build cache

* Add Caskroom to cache

* Fix typo

* Link all packages at once, instead of one by one

* Run cleanup stage using poetry

* Remove casks from cache

* Move scons cache to separate cache step

* Save scons cache only on master

* Remove restore-keys from save-scons-cache step

* Uncomment if conditions for scons save

* Add gcc-arm-embedded cask cache to cache

* Custom handling of gcc-arm-embedded toolchain cache

* Rename dep cache key

* Exclude .fseventsd from cache

* Fix glob pattern

* Remove .feventsd before caching

* Run mac_setup only if dependency cache-hit != true

* Update cereal to master

* Add overwrite flag to brew link

* Remove manual casadi build from mac_setup

* Remove restore-keys from dependency cache

* Remove linux requirement for casadi

* Restore restore-keys to dependency cache
old-commit-hash: 45a6834a74
2023-06-21 13:14:20 -07:00
Vivek Aithal
09073a7286 [paramsd] Add a hysteresis band for valid checks where applicable (#28546)
* add a hysteresis band for the slow offset valid check

* add hysteresis to total_ofset and roll valid cases

* bugfix: roll is in radians, offsets are in degs

* remove defaults

* remove kwarg

* remove slow offset check while loading params
old-commit-hash: dfbdcbad73
2023-06-15 20:17:06 -07:00
Harald Schäfer
091964205d Laikad: Need to understand constellationId to understand clock (#28552)
Need to understand constellationId to understand clock
old-commit-hash: 6d25f66cf1
2023-06-14 19:54:51 -07:00
Harald Schäfer
a0628ce816 Disable internet in laikad.py, even in CI (#28535)
* Limit OPENBLAS to 1 thread in manager

* Restrict openblas threads when running openpilot

* print in CI

* Disable internet for laika, even in CI

* update ref
old-commit-hash: 155cab9ec4
2023-06-13 23:39:11 -07:00
Kacper Rączy
c11ead32d6 locationd: initial value for gps_std_factor (#28533)
* setup_gps method

* Add LocalizerGnssSource

* slight refactor

* make it more readable

* Move gnss_source initialization to configure_gnss_souce

* Add gps_variance_factor, gps_vertical_variance_factor and gps_time_offset

* add header changes
old-commit-hash: 242e8d2ca8
2023-06-13 16:12:53 -07:00
Dean Lee
d0199b64b5 laikad: move 'from_qcom_source' into try block (#28510)
fix not cached except
old-commit-hash: 825c5a87df
2023-06-12 17:05:43 -07:00
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
2023-06-02 20:55:13 -07:00
Kacper Rączy
37fb563225 locationd: add filterState (#28340)
* Add filterState to published messages

* Hide it behind DEBUG flag

* Update cereal

* Update cereal
old-commit-hash: 9abe95c949
2023-05-31 15:01:12 -07:00
Kacper Rączy
7656bb16bb laikad: unit test refactor (#28295)
Refactor laika tests to use replay_process
old-commit-hash: 1f0ff21eee
2023-05-25 11:34:10 -07:00
Harald Schäfer
74bb4956ab Calibrationd: allow more pitch angle (#28255)
* Calibrationd: allow more pitch angle

* Update ref_commit
old-commit-hash: 2c65b843a5
2023-05-24 11:41:01 +02:00
Harald Schäfer
f6900301a5 QCOM laikad: add glonass support (#28217)
* QCOM laikad: add glonass support

* reject garbage timestamps

* update ref
old-commit-hash: 703fe85cf5
2023-05-18 00:19:40 -07:00
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
2023-05-15 09:29:57 -07:00
Harald Schäfer
c8de368187 Laikad: blocking raw_gnss receive (#28083)
* Blocking receive

* redundant

* rm clocks

* timeout irrelevant now
old-commit-hash: bb3388f9d2
2023-05-03 13:03:25 -07:00
Adeeb Shihadeh
60dc9c90e4 laikad: disable internet in non-replay CI (#28076)
old-commit-hash: 9f87df66cb
2023-05-01 22:02:06 -07:00
Bruce Wayne
a6b4940c8b Revert "LaikaD: new proc_replay segment and no internet laikad (#28029)"
This reverts commit 1341b59160ffa9db29d589f3fe4dd38691361165.

old-commit-hash: 613bbcd626
2023-04-26 19:20:05 -07:00
Harald Schäfer
bd9b02915f LaikaD: new proc_replay segment and no internet laikad (#28029)
* no internet in CI

* add new segment

* new ref
old-commit-hash: fbb7dcb19c
2023-04-26 16:01:39 -07:00
Harald Schäfer
73e00a05ac Calibration remount detector: soft disable (#27993)
* Calibration remount detector: soft disable

* Update test_calibrationd.py
old-commit-hash: a979a54cf9
2023-04-22 00:27:20 +00:00
Shane Smiskol
c8cf77b7a7 locationd: log time to first fix (#27990)
* locationd ttff

* log time to first fix

* rename

* max it like laikad

* Update selfdrive/locationd/locationd.cc

* Update ref_commit

* Log when gpsOK first becomes true

* don't forget to update current time!

* stash

* make it deterministic (no proc replay cur time)

* Update ref_commit

* rename to make this clear
old-commit-hash: 03eb02906d
2023-04-21 16:15:13 -07:00
Harald Schäfer
44aa799d91 Calibrationd: fix reset smoothing (#27992)
* Add test for smoothing

* fix smooth cycles

* fix calib reset smoothing
old-commit-hash: ee15d6b1d1
2023-04-21 06:53:54 +00:00
Harald Schäfer
1217e0b678 Calibrationd: unit tests (#27988)
* Add calibrationd unit tests

* more tests
old-commit-hash: dab9c55d38
2023-04-21 04:17:11 +00:00
Harald Schäfer
fc6a779d12 Laikad: fix bad init elevation incorrect (#27974)
* Laikad: fix bad init elevation incorrect

* update ref
old-commit-hash: 922b09de96
2023-04-19 14:04:24 -07:00
Shane Smiskol
1f46287206 quectel: move vertical accuracy sanity check (#27819)
* Update rawgpsd.py

* remove from locationd

* Update system/sensord/rawgps/rawgpsd.py

* flip
old-commit-hash: c9804f8ec2
2023-04-10 20:46:12 -07:00
Harald Schäfer
f6e3dc289c Locationd qcom retune (#27739)
old-commit-hash: eca3838237
2023-03-29 16:35:30 -07:00
Shane Smiskol
c08e6fe35e laikad: clean up cloudlog usage (#27701)
make an error, no need to pass e
old-commit-hash: 28cd8fc402
2023-03-26 23:06:09 -07:00
Harald Schäfer
5a66a16b5b Laikad: catch and log ephemerides parsing errors (#27698)
* Laikad: catch and log ephemerides parsing errors

* exception instead of error
old-commit-hash: b418cbcbcf
2023-03-26 22:17:30 -07:00
Harald Schäfer
ae7ce5368c Laika cleaner flow (#27633)
* laika flow

* test fixes

* unexpected type

* unexpected type

* explicit type

* ref commit

* back to prev val

* ref 2
old-commit-hash: e05e7850e1
2023-03-22 19:10:19 -07:00
Gijs Koning
5814ecfbfe laikad: use non-conflating socket for gnss msgs (#24888)
* Use subsock

* wait for one

* wrong name

* try cpp proc replay

* fix recv pattern

---------

Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: fc5a575ba3
2023-03-21 17:07:19 -07:00
Adeeb Shihadeh
c2fc5175fc process replay: prep for laikad subsock + QCOM GPS (#27632)
* process replay: prep for laikad subsock

* cleanup

* fix for qcomGnss

* detect ublox

* more debug info in err

* wip

* cleanup
old-commit-hash: 7319afbd51
2023-03-21 16:43:40 -07:00
Harald Schäfer
d9fcd2887f Bump laika (#27618)
* Laika on master

* use constellation id
old-commit-hash: 4718fa5748
2023-03-17 16:39:44 -07:00