Commit Graph

10172 Commits

Author SHA1 Message Date
Shane Smiskol 021b79cf56 Fingerprints: add missing FW versions from users
old-commit-hash: e85e401d073c3f64b882d52757d9653f22adfba2
2024-01-04 00:50:30 -08:00
Adeeb Shihadeh 9e48201d22 Revert "Fingerprint for '21 Explorer ST (#30877)"
This reverts commit 64eb7a39c4c8a8afe89e87de8f02442200ff30d1.

old-commit-hash: fe4090584923b559ef95131319a0ef77cfa1938a
2024-01-03 20:07:58 -08:00
duetschlandftw 450aa1d1f9 Fingerprint for '21 Explorer ST (#30877)
* carparams gave me a new firmware entry for "shiftByWire" from 'ford', so i added it here, as well as a new fw value under ecs.engine

* Update selfdrive/car/ford/fingerprints.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: ff0fed07ed92c7e4b2f3d348a769058652351c87
2024-01-03 19:43:59 -08:00
DevTekVE b343b9820e [HKG-CAN] Consider FCW alerts from SCC (#30885)
* FCW is triggered differently when SCC is active

* Update selfdrive/car/hyundai/carstate.py

* Update selfdrive/car/hyundai/carstate.py

* cmt

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 28cf3155e21da663040040076f9fb9e746fd6834
2024-01-03 19:34:13 -08:00
Dean Lee 2f8e66dbb8 UI: single-threaded CameraView (#30397)
* single-threaded CameraView

* updateFrame

* inherit from CameraWidget

* clear frame on offroadTransition

* check frame_id

* optional

* unique_ptr

* CameraView

* cleanup

* cleanup

* log skipping frame

* fix driverview

* disconnectVipc

* debug inconsistent frame

* skip frame if uiPlan is outdate

* cleanup

* set connected = false

* support camerad reboot&seeking in replay

* cleanup

* qDebug

* use deque

* cleanup

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 17ac1d3c7b3b481826d51eb82aaf9dbcc3f3bd81
2024-01-03 13:14:29 -08:00
Shane Smiskol dac5a594aa test_models: fallback to public route when route isn't uploaded to CI bucket (#30893)
* not sure why this is a test

* Revert "not sure why this is a test"

This reverts commit c13e16311eb882df65d216bbd59acb5702e985e6.

* no ruff for this pattern :(

* this is always caught

* should fail

* simpler

* Revert "should fail"

This reverts commit 21bd15275c46cd42fd19b058245334bae83cce77.

* fix

* cleanup this

* better comment

* better

* this can be more localized

* better names

* better names

* should fail

* Revert "should fail"

This reverts commit c58495e8b3417ce351df8048752ec60177827cb3.

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: 7f398e1cf9b0fd83bb1238b9b347a21d8868ee0f
2024-01-03 11:54:22 -08:00
Shane Smiskol ff08885476 Fingerprints: add missing FW versions from users (#30837)
Export Toyota fingerprints from last 2 weeks, 0.9.5-release
old-commit-hash: 633fef5a96d5c8db55a1e6276df6d7f060c4ccd7
2024-01-02 21:48:31 -08:00
Shane Smiskol 52150bbb02 Revert "test_models: fallback to public route when route isn't uploaded to CI bucket (#30794)" (#30896)
* fails if no skip function

* Revert "fails if no skip function"

This reverts commit ff3d697d38dce56057c83f06033a689f2301a29d.

* Revert "test_models: fallback to public route when route isn't uploaded to CI bucket (#30794)"

This reverts commit f60e70d4729efe7db36888a0a750a0e4706cc943.
old-commit-hash: 8c4930d2d300a439aaf7dd9ca4324271cc0c7b52
2024-01-02 17:22:06 -08:00
Shane Smiskol 47b3a22daf Toyota: add 2024 RAV4 Hybrid (Canada-built) (#30887)
* add 2024 RAV4

* bump reeleases

* fix star link in PR comments

* ?

* consistent
old-commit-hash: de4bc31ba6f9972b6d411a36dc5d32474a3d0287
2024-01-02 17:14:51 -08:00
Shane Smiskol 92263907dc HKG: fix 2021 Niro Hybrid harness (#30895)
* originally was Hyundai F in the database, but one user on Discord (US) and one in support (SK) both needed hyundai D

* bump
old-commit-hash: 543cd4460acd24a7bfc5bd8f6b4f2d8b2242da12
2024-01-02 17:10:23 -08:00
Shane Smiskol f126409b85 PR comments: fix image links
old-commit-hash: 205a78f02dd8a7e3de2334da419f57231153c69a
2024-01-02 14:18:52 -08:00
Mitchell Goff c24bdc1503 new delhi model (#30822)
* 027a1efa-10fb-4291-ad58-90cf0ff150b5/700

* debug

* rm for now

* bump refs

* revert that

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 7e71fd7baefef14d2987b28377e310df41251644
2024-01-02 13:27:15 -08:00
royjr f82d7f453f multilang: parameterize unit tests (#30842)
* init

* fix indents

* remove import

* safer

* TemporaryDirectory

* much cleaner

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 9d7f618bc5352e3c4a179925b5fd9f024a286fd3
2024-01-01 14:54:16 -08:00
royjr b2112b81af multilang: bad language translation check (#30783)
* compare bad against list

* use web

* Update test_translations.py

* uncomment

* override

* wrap

* AssertionError

* better

* detent

* selfish

* check numerusforms

* already checked

* use name

* not again

* combined

* sets

* assume available

* fix assume

* check regardless of other tests

* assert not print

* raise for status

* better

* done

* useless

* happy ruff

* better set

* quiet

* clean

* obvious

* clearer

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

* IGNORED_WORDS

* assert match

* direct assert

* show bad word

* fix numerous empty string checks

* fix IGNORED_WORDS

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: fd88990006d8d5d07f4cc79af64ae51999d1159c
2023-12-31 10:58:15 -08:00
Justin Newberry 0312d3d0f3 Subaru: longitudinal cleanup and dash status fixes (#30868)
old-commit-hash: a58baf48fe9e951f5954fadbc2c4b2b118633493
2023-12-29 23:47:55 -05:00
Justin Newberry dd9118311b bump submodules (#30866)
old-commit-hash: 9520153b6a3e2e762dee29cdb0ca2ed9f867e2cb
2023-12-29 19:39:17 -05:00
royjr 1761c1837d setup: Enhance URL Handling to Support Partial Inputs (#30681)
* easy urls

* better
old-commit-hash: 4df85062c52fbbbdc4e461e317b6cb01a6d76ec1
2023-12-26 19:08:57 -08:00
Adeeb Shihadeh e25712ddd2 stricter file size limits (#30839)
* move all pics to lfs

* wav and rest of so

* more to lfs

* ignore a few

* push that up
old-commit-hash: 1f9970ba3db588301f97716fa5f1e891e2324f38
2023-12-26 15:22:59 -08:00
Shane Smiskol 0c194949ea Fingerprints: add missing FW versions from users (#30833)
Export fingerprints from Fingerprint stage
old-commit-hash: 5e6290c4a24e31428b1c1d3d4580128b77e3efeb
2023-12-21 03:55:15 -08:00
Shane Smiskol 83ee5fa80d format fingerprints: simplify sorting (#30826)
* unique + sort + don't modify FW_VERSIONS

* clean up

* not here

* self expl
old-commit-hash: b38c580c2e687401fc819520ea038653873e9996
2023-12-20 15:51:56 -08:00
Justin Newberry 3b65f2075e format_fingerprints: automatically sort fw fingerprints (#30819)
* Auto sort fingerprints

* add comment
old-commit-hash: 3d8c78d6b3a74196b09576f97ac02b4baa67dfe0
2023-12-20 11:54:31 -08:00
Justin Newberry bf8e8f8338 test_models: fallback to public route when route isn't uploaded to CI bucket (#30794)
* wip

* add public comment

* fix that

* wip

* retrigger
old-commit-hash: 05dc0b51e6597fb83aed14f5a390fa4254751c98
2023-12-20 11:29:19 -08:00
Justin Newberry 611e3fe8e7 add script to automatically format fingerprints file (#30792)
* Add script

* fix script

* fix script

* fix for subaddr

* run the script

* old style can fingerprints

* cleanup

* sort imports, make executable, fix path

* newline w/o newline

* match og can formatting

* match og formatting

* generate template once

* standard name

* less nested

* can fingerprints comments

* fix spacing

* no need for PLATFORM_TO_ENUM_NAME!

* prep for PRs

* comments for all, add honda comments

* Auto-generated fingerprint PR from fuzzy fingerprinting cars

* Revert "Auto-generated fingerprint PR from fuzzy fingerprinting cars"

This reverts commit 97bc9e3bdb9d819dcbe684ceba92ea702d40eaf0.

* even closer to original

* readd this comment

* and run script

* add to precommit

* add comments

* add comments

* add to release

* use for auto fingerprint

* disable precommit for now

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 3713e4d5eaed783738ea8ecdbd3b7e6abaa974c0
2023-12-20 11:18:29 -08:00
Shane Smiskol a918ee9b72 fingerprints: fix formatting (#30814)
formatting
old-commit-hash: adb04b5dc52a8063bf16a91a159fdbb82c83d514
2023-12-19 23:47:34 -08:00
Shane Smiskol e9e408118b interfaces: fix get_interface_attr typing (#30813)
* fix

* Update selfdrive/car/interfaces.py
old-commit-hash: 1a165c658035233b4fca774d886c7ecb97a43364
2023-12-19 23:35:31 -08:00
Shane Smiskol b7811099e4 fix bad CAN fingerprint type (#30809)
fix bad wrong type
old-commit-hash: 426072bd8717753afec89c4291f329bdedbc31b8
2023-12-19 20:30:42 -08:00
Justin Newberry 1314156365 cleanup fingerprinting typing (#30801)
* wip

* undo + add can fingerprints

* add can fingerpints

* those should go there
old-commit-hash: adca970ca9dc574f740e8523536bf8d4b0d7bfa8
2023-12-19 09:41:09 -08:00
Shane Smiskol f65ccca8e0 test_models: fuzz test panda and CarState (#30443)
* pre-hypothesis

* some hypothesis junk

* this kinda works but is really slow due to counter check

* choose addrs from fingerprint

* stash

* honda nidec brake pressed mismatches fixed

* bump panda

* stash

* tesla: use DI_torque2 (panda msg)

* run

* run

* ah this honda mismatch too

* no more multi can msgs

* clean up, remove old file

* add todo

* prob can remove urandom

* stash, huge examples

* fix pq standstill mismatch

* yuge

* yup there's a leak somewhere

* try to find leak

* skip dashcam (pq and tesla)

* PR comments

* bump

* draft stash

* fix alt brake hondas

* bump

* bump

* bump

* some clean up

* minor clean up

* more clean up

* stash

* fix honda bug

* more

* 100 examples

* revert tesla

* no memory leak any more?

* bring back tests with skips

* parameterize max_examples

* skip interceptor

* is jenkins on my branch?

* ooh that's fast

* 50 is not bad for GH CI

* 300 might be better with rest of test_models

* no more detection

* bump

* need CS_prev to catch bugs where openpilot changes and panda doesn't (eg. not setting interceptor safety mode)

* need to simplify all this

* need a warm up first, since some signals are 1 by default (toyota's gas_released!=1)

* changes

* set honda safety param

* set toyota safety param

* bump panda

* clean up honda

* rm interceptor

* thought interleaving addrs might help, but we can fine tune later

* Revert "thought interleaving addrs might help, but we can fine tune later"

This reverts commit 153301384b48c9f33f9e2af3c224241eaeec41c1.

* get size from dict

* what

* add nocapture marker

* clean up

* try to raise logging level

* need to run last as pytest_runtest_call, since it starts capturing

* get capman conditionally

* mark

* type fingerprint

* should use gen_empty_fingerprint

* no longer needed

* draft

* no longer need gc

* clean that up

* test everything!

* more clean up

* more

* no point

* fix that

* fix errors

* bump

* nice even 300 examples for 300 segs

* final bump :fingers_crossed:

* better import order

* remove debugging prints

* warm up kinda works

* Revert "warm up kinda works"

This reverts commit 7fc77b07d592edb13eadca77deb49540954a7d69.

* random seed

* revert

* strat

strat

* add expl comment

* cmt

* check controls allowed

* Revert "check controls allowed"

This reverts commit e82a0e5396810dd4670e6847aa555194a709e10f.

* not unittests

* run tests!

* run tests 2!

* run tests 3!

* seed unused

* revert

* add shrink phase, and remove health check suppression

* hello

* oncemore

* Update selfdrive/car/tests/test_models.py
old-commit-hash: 5052b55c440f3a778f9db9c854fa385077dd7ab9
2023-12-19 03:18:54 -06:00
Justin Newberry ff12759e80 Move all fingerprints to fingerprints.py (#30790)
* move fingerpints

* fix circular imports

* fix circular imports

* fix auto fingerprint

* fix those tests

* and controlsd

* add labeler rule

* no defaultdict
old-commit-hash: 28eed156e0a62ab993de6d534bb102a6ede222f7
2023-12-18 14:04:27 -08:00
Dean Lee 6ae3e95542 camerad: cleanup includes (#30782)
* cleanup includes

* continue

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ab0b26d2b8dc8b3957812856917084af2cb3df0a
2023-12-17 22:42:52 -08:00
Andrei Radulescu 2c7427c203 wifiManager: fix for lteConnectionPath not set on boot (#30517)
Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: b75cdd15422d8716390ff981102fdbd290770b75
2023-12-17 11:07:48 -08:00
Adeeb Shihadeh 63b374bd89 Cython KF1D to Python (#30773)
* Cython KF1D to Python

* cleanup

* set x

* less nesting

* fix release

* Revert "fix release"

This reverts commit 97e5d0f80405660efb861c7b9df7fbfd5dda5dd9.
old-commit-hash: 1421551297396cf16e3d041506f156c1626ded50
2023-12-16 23:45:28 -08:00
Adeeb Shihadeh ae20aa3d4a better uploader cpu thresholds
old-commit-hash: 4b54c0b3cd18a258df7a2f8752caf24980cf5d09
2023-12-16 22:37:35 -08:00
Adeeb Shihadeh 70a03a0f2d ui: show wifi password by default (#30766)
* ui: show wifi password by default

* update immediately
old-commit-hash: 2d466e70cdd6b4cf8ff5b939f401c2483a15f743
2023-12-16 22:36:26 -08:00
Adeeb Shihadeh ab31860658 remove PyYAML package (#30770)
* remove PyYAML package

* remove those

* add comments back

* fix lock

* fix those
old-commit-hash: bc54ed794b2cd9dcb9522cdeb241ad78ac30d998
2023-12-16 20:48:57 -08:00
Dean Lee cd7430d1ce ui: remove unused roadCameraState from submaster (#30757)
old-commit-hash: f9ee7bff006c792738f34e2923ace009e7f34709
2023-12-15 19:32:25 -08:00
Shane Smiskol 3c7fcbb839 test_models: use gen_empty_fingerprint (#30752)
use gen_empty_fingerprint
old-commit-hash: d9a8846d58af2a3a9a598fcf9fb1acf89e4b54f6
2023-12-15 17:16:19 -08:00
Shane Smiskol 19572df478 Revert "test_models: check consitency between panda and openpilot for velocity (#30750)" (#30753)
This reverts commit 19c040150dcec8bfa4b70aa870ae5564739c278a.
old-commit-hash: 123ef46af3694afc30b4ec28ce8f995d9fa92cd1
2023-12-15 17:16:01 -08:00
Justin Newberry ffae1ce377 test_models: check consitency between panda and openpilot for velocity (#30750)
* sanity check on velocity

* import from there

* use raw

* just check last

* ignore body

* reduce tolerance and bump panda

* its not average anymore

* slightly higher tolerance
old-commit-hash: 1ca1cf39223557955cee58e18a418914faf472c3
2023-12-15 14:50:37 -08:00
Adeeb Shihadeh b6bd062d44 jenkins: always do the copy in safe_checkout
old-commit-hash: 1733b04741323155ee241fa5f300e779f3c931bb
2023-12-14 23:46:25 -08:00
Adeeb Shihadeh 31aa003d92 test_onroad: fix test_log_sizes when running inside a prefix
old-commit-hash: 10ea45183184001b1b3ac513b96f233ed7053cb9
2023-12-14 22:24:09 -08:00
royjr 2614ca6a20 car docs: remove outdated video link (#30737)
remove outdated link
old-commit-hash: 05d5056e8c9dff538b5a5be66022bf32c8995802
2023-12-14 20:36:33 -08:00
Justin Newberry 00a96ece33 test_athena: remove slow memory leak test (#30734)
way too long
old-commit-hash: 23c20bce8f90aabec31fece84f4f8f6a3770d61b
2023-12-14 17:24:47 -08:00
Justin Newberry 0939b25bc4 CI: move test_maprenderer to GH actions (#30610)
maprenderer to ci
old-commit-hash: 5d668701cb69c1e3d170109a8e788a2acbacebd3
2023-12-14 16:59:28 -08:00
Shane Smiskol 0c18b556ea Use a safety param for gas interceptor (#30719)
* bump

* bump

* space

* remove from boardd

* set flag for honda to pass tests

* migrate

* Update ref_commit

* final bump

* bump cereal

* bump to master
old-commit-hash: 582743fdb5a20fbbe841aa154cf36304771d52a6
2023-12-14 16:53:22 -08:00
Adeeb Shihadeh c3567151f0 bump up installer size (#30722)
old-commit-hash: 2b12a499f7b923758d8b85705b680b04156f27c0
2023-12-13 21:18:20 -08:00
Adeeb Shihadeh 3b73fce7ed fix put_nonblocking reference
old-commit-hash: bd8a99ba285bebc498c41136dfa900bfdfa86ea5
2023-12-13 20:52:43 -08:00
Dean Lee 8b3fe8d46d boardd: improve the performance of PandaUsbHandle::list() (#30673)
* improve list performance

* revert test_onroad

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b53b505d2ea52b61e9b42582bd97f20bff0a1fa3
2023-12-13 20:48:51 -08:00
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: 3c4c4d1f7f22884f84f0f52ad45ab0412fab1eb5
2023-12-13 20:36:01 -08:00
Jason Wen 995c951dae torqued: cache bucket points every minute while onroad (#30515)
* torqued: cache bucket points every minute while onroad

* use put_nonblocking

* remove caching on exit

* unused

* more unused

* remove logging
old-commit-hash: fcc671297ee0cd44abc6f7535e1adddc11d58192
2023-12-13 20:30:33 -08:00