Commit Graph

10191 Commits

Author SHA1 Message Date
Adeeb Shihadeh d9f9d3caae boardd spi: prevent busy wait when TX buffers full (#28599)
old-commit-hash: 4c6f7b5c84
2023-06-20 14:21:34 -07:00
Maxime Desroches 7be2b51229 simple fuzzing test for all processes (#28584)
* working test

* classmethod

* review

* add to ci
old-commit-hash: bac193bdd5
2023-06-20 10:57:02 -07:00
Dean Lee 88840e9fe4 cabana: simplifying endian conversion (#28601)
old-commit-hash: 3c398b2e2f
2023-06-20 10:56:40 -07:00
Adeeb Shihadeh 6447df6558 pre-commit: autoupdate hooks (#28605)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
old-commit-hash: 4b90117dd8
2023-06-20 10:41:21 -07:00
Adeeb Shihadeh e3afa3f05b bump panda
old-commit-hash: f259e87cb2
2023-06-19 20:52:39 -07:00
James 5f219a3bf9 Sort parameter list alphabetically (#28594)
old-commit-hash: e81515ba7f
2023-06-19 15:26:52 -07:00
Dean Lee b31de7db56 cabana: fixed the multi-threading issues of AbstractStream (#28590)
* fix multi-threading issues

* protect masks with mutex
old-commit-hash: e80440dc5d
2023-06-19 10:21:16 -07:00
Jason Young fbce1c9863 VW MQB: Add FW for 2023 Volkswagen Taos (#28596)
old-commit-hash: 2b49a4754b
2023-06-19 09:52:57 -07:00
AlexandreSato fbb0d987b6 Multilang: update pt-BR 'alfa' translation (#28591)
old-commit-hash: 3d909d3097
2023-06-18 20:27:39 +01:00
Dean Lee 938bee9415 cabana: fix segfault when switching DBC files. (#28587)
old-commit-hash: 2ebd7ab088
2023-06-17 20:30:17 +01:00
Cameron Clough c451cd3017 docs: fix footnote typo
old-commit-hash: b2295c979e
2023-06-17 12:24:20 -07:00
Cameron Clough bdef93ccf7 add Ford Focus 2018 to release notes
old-commit-hash: 6e8671a712
2023-06-17 07:18:02 -07:00
Cameron Clough 7e9f1e1b79 Ford: remove Focus Mk4 from dashcam only (#28551)
old-commit-hash: 78bb637993
2023-06-17 15:16:59 +01:00
Shane Smiskol b02345b12d Nissan FPv2: log different diagnostic session types (#28585)
* standard KWP2000 diagnostic session type

* draft

* clean up

* not needed

* update FP refs

* should log logging
old-commit-hash: 2f2b94758b
2023-06-17 02:39:58 -07:00
martinl 91e7bf83b8 Subaru: log stock AEB (#28052)
* Subaru: log stock AEB

* Remove stockFcw from stockAeb

* Subaru: Add FCW_Cont_Beep to stockFcw signals

* add ES_Brake

* use actuation bit

* bump opendbc

* remove aeb from UI

fix

* Update selfdrive/car/subaru/carstate.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 5cb9360fa0
2023-06-16 22:48:09 -07:00
Shane Smiskol 8e94cb76e6 Ford: add new engine FW for Bronco Sport (#28586)
add new FW

d5f0cbd9ceba7d0c|2023-06-16--17-14-20
old-commit-hash: 6459d46086
2023-06-16 22:45:13 -07:00
Mitchell Goff 77b5e197aa Enable nav features in modeld (#28448)
* Enable nav features in modeld

* Enable mapsd/navmodeld

* Updated model_replay_ref_commit and added mapsd/navmodeld to test_onroad

* fixed process name

* always publish from mapsd
old-commit-hash: aadd9ae269
2023-06-16 21:27:35 -07:00
Adeeb Shihadeh d11a281f81 bump panda (#28583)
old-commit-hash: 78b097a693
2023-06-16 20:38:51 -07:00
Mitchell Goff 88c95293cd Always publish from mapsd (#28581)
old-commit-hash: 9d835020fc
2023-06-16 20:13:24 -07:00
Mitchell Goff 300071a27c Rename map_renderer -> mapsd (#28580)
old-commit-hash: 6509cde41b
2023-06-16 20:12:50 -07:00
Kacper Rączy 9917924ee5 lateral_planner: expose solverState, solverCost in debug mode (#28577)
* Update cereal

* Add xs, ys, solverCost support in lat planner

* Update cereal

* Add support for debug mode. Add solverState

* Read debug mode from env

* Update cereal
old-commit-hash: 83d6552a15
2023-06-16 19:51:37 -07:00
Mitchell Goff 429a638740 New map model: 917a2539-5e7a-4374-878a-9b356f0f1922/500 (#28579)
old-commit-hash: a9cb255017
2023-06-16 19:31:57 -07:00
Yassine 2fe79435a2 update model replay ref commit
old-commit-hash: fc61209f74
2023-06-16 15:04:06 -07:00
YassineYousfi 990624c07e Nicolas Cage Model (#28547)
01697194-d32d-4c3a-a803-d8f61cdf24e9/449 2ff8e6a1-7efd-4984-9f29-974164a3747b/700
old-commit-hash: 4fcd82076a
2023-06-16 13:36:56 -07:00
Adeeb Shihadeh ee363d69e3 fix a bunch of python warnings (#28576)
* fix a bunch of python warnings

* fix that
old-commit-hash: 111b4eee30
2023-06-16 13:22:30 -07:00
Adeeb Shihadeh b77399b685 swaglog: fix ResourceWarning (#28575)
old-commit-hash: 056bc05489
2023-06-16 12:25:17 -07:00
Adeeb Shihadeh 4894158e7b tools: update windows instructions
old-commit-hash: d0369521ba
2023-06-16 11:06:33 -07:00
Adeeb Shihadeh dbe747f9de bump to 0.9.4
old-commit-hash: f332b4c7bb
2023-06-16 10:56:17 -07:00
Adeeb Shihadeh cfc1a54d19 logmessaged: handle interrupted rollover (#28572)
old-commit-hash: 8704c1ff95
2023-06-15 22:05:44 -07:00
Adeeb Shihadeh 4739f5e34b more release notes
old-commit-hash: 51d71c0182
2023-06-15 21:23:43 -07:00
Jafar Al-Gharaibeh 75d84438f0 Mazda: Fix BSM detection with blinkers (#27919)
* Mazda: Fix BSM detection

Submitted-by: Samuel <samuel95_54@hotmail.com>
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* bump opendbc

* use new signals

---------

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 354b5be9c3
2023-06-15 20:50:21 -07:00
YassineYousfi cb9abbacc9 update release notes
old-commit-hash: 90c0edcd6a
2023-06-15 20:29:50 -07:00
Adeeb Shihadeh c4ff5228e1 update release notes
old-commit-hash: f375289aa7
2023-06-15 20:21:31 -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
Adeeb Shihadeh bb50193453 thermald: adjust offroad danger temp (#28524)
old-commit-hash: 692bfa55c9
2023-06-15 20:12:24 -07:00
Adeeb Shihadeh 782ffa1b29 thermald: remove offroad min time condition (#28567)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 77c9d65a71
2023-06-15 18:50:59 -07:00
wilderko e600e4d8b4 Added new fingerprint of VW California 2021 (#28504)
* Added new VW California 2021

* duplicate eps

* hex

---------

Co-authored-by: Pavol Luptak <wilder@pop-os.localdomain>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 10a392a7f1
2023-06-15 18:48:15 -07:00
Adeeb Shihadeh 7ee035af0a thermald: log duration of startup block (#28566)
old-commit-hash: 411cf094f3
2023-06-15 18:16:59 -07:00
Adeeb Shihadeh 42a4f610c2 thermald: fix temperature filter init (#28565)
old-commit-hash: 3072643363
2023-06-15 17:34:01 -07:00
Adeeb Shihadeh df3dffc2d1 thermald: log filtered max temp (#28564)
old-commit-hash: cb4c7118a5
2023-06-15 17:08:47 -07:00
Maxime Desroches 6355215f81 test: car interface fuzzy testing + generating capnp structs (#28530)
* random car control

* format

* struct generation

* math

* staying real

* really staying real

* move

* split this

* format

* Revert "format"

This reverts commit a70a73952ee3833c4ae839d7b2729ee2a1e1a85b.

* Revert "split this"

This reverts commit ae96be63cbfbee230101e69a0f84c874f321fafa.

* space
old-commit-hash: 3fc104fb6d
2023-06-15 17:01:13 -07:00
Jason Young 38ed81468e VW MQB: Add FW for 2016 SEAT Leon (#28561)
old-commit-hash: 150cda68c2
2023-06-15 16:46:25 -07:00
Shane Smiskol 6e2a086252 FPv2: don't add debug candidates to versions globally (#28562)
* debugging

* this test works, but find a better place

* make test more generic to start testing more than timings

no need to run again in another test function. eventually we
can simulate ECUs and have IsoTpParallelQuery work properly

* Revert "make test more generic to start testing more than timings"

This reverts commit 58e8536b1d8b138902d373e1e1194e70c9eb4b24.

* 2nd try

* clean up

* not even MappingProxyType works

* works

* test that too

* clean up

* refactor to avoid modification online

* revert tests

* more revert

* no longer needed

* clean up
old-commit-hash: 56614124f0
2023-06-15 16:32:32 -07:00
Adeeb Shihadeh df13f240b3 thermald: save last offroad status packet on onroad transition (#28563)
* thermald: save last offroad status packet on onroad transition

* update param

* write every time

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7d6897fa38
2023-06-15 15:04:22 -07:00
Jason Young b43b2d6a7b VW MQB: Add FW for 2017 Volkswagen Golf (#28559)
old-commit-hash: 4b63feddec
2023-06-15 13:18:35 -07:00
Dean Lee a7ce39a89e cabana: Prevent dialog that load autosaved file from blocking replay->start() (#28558)
old-commit-hash: 4891a234e2
2023-06-15 10:35:30 -07:00
Cameron Clough b3055ca4ff cabana: round signal raw value for value description
old-commit-hash: e57f3ab4da
2023-06-15 12:46:08 +01:00
Shane Smiskol 2f114143b4 bump opendbc (#28556)
bump
old-commit-hash: f1bf4f903f
2023-06-15 04:04:48 -07:00
Dean Lee 7fc2927b73 cabana: use raw signal value to match value descriptions (#28554)
old-commit-hash: 6f54ebe110
2023-06-15 11:50:14 +01:00
Shane Smiskol 5f3569faf2 HKG: use platform codes to fuzzy fingerprint (#28531)
* get gas/ev/hev from FW (not all correct, poc)

* add test for essential ecus for fuzzy fingerprinting

* kinda works

* stash

* clean up

* add code

* simpler

* use the function

* test it with our cars

* no re

no re

no re

* debugging

* handle empty dict

* simpl

* this is promising

start on making existing fingerprinting functions use the config, instead of entirely replacing them

* needs to allow 1 match

* lay out how this should look

* changes

* executable

* some work

* use config

* fuzzy ecus

* config test

* comment and some clean up

* test platform codes

* use regex, simpler and fixes bug

* in func

* rm bad func

* typing for new func and remove old from dc

* todo done

* tested!

* remove fake platform codes

* thought we needed this, but actually...

* not needed

* not applicable any more

* use config for essential ecus

* first draft of test to make adding/removing fuzzy FP platform intentional

* compile

* clean up test

* even cleaner

* fix default ecus type

* temp fix

* this is mostly in tests now

* test every fuzzy ecu fw returns one platform code

* experiment with dates

* Revert "experiment with dates"

This reverts commit 3251b9cc5c3ca41ca92c8b75ad9b2234b720aa0b.

* clean that up

* comment

* test

* work on all cars

* fix fuzz_fw_fingerprint

* comment

* get first by search

* bit more clean up

* and more

* use compiled pattern for nicer syntax

* default

* flip dat around, much cleaner

* clean up hyundai test a bit

* flip order

same here

* rename test and flip subTest

* fix pylint

* revert fw changes

revert fw changes

* line

* add original functions to test

* needs to be a list

* cmt

* draft (need to count one ecu as a match)

* tiny clean up

* todo: date range

* only in notebook

* remove comment (still can be either list or set)

* same, only notebook

* more consistent signature

* copilot inspired

* copilot no good

* test for date parsing

* better name

* good, now we don't have to worry about the dates mismatching in another test/logic

* comment up+

* some stuff

* clean up

fix test

fix test

* test

* comment

* use utils

* clean up (utils are cleaner and less buggy)

* clean up (utils are cleaner and less buggy)

* fixup test

* use a dash (prettier) and remove some platforms that can fingerprint now!

* compile global pattern

* same as what we do in values

* remove comments

* fuzzy_get_platform_codes is one or none here

* more clean up

* sort imports

* woah woah woah

* add comment

* fix reassigning different types

* add types

* adapt fuzzy test recently added (nice it caught this!)

* update lock

* options

comments

* stash

* comments and fixes

* better comments

* better

* test: run on exact fuzzy matching logic, same results!

* use match_fw_to_car

* test all fw

* ex

* unused random

* this is a possibility

* this is more clear

* fix

* revert

* revert to needing both ECUs to match to reduce false positives, test

* fix excluded platform test :( but it's ok

* add comment

* we actually want to only test fuzzy ecus to make it explicit

* fix mypy

* comment for tomorrow

* just add matches with fuzzy FP

* add comment

* this was the cleanest I could think of, but still working on it. not very easy to understand

* think this is better, but also worse...

* comment: reframing how this works

* revert back to what we did before

* was swapped

* else set

* remove old comment

* fixes from merge

* remove fuzzy_min_match_count from this pr

* fix static analysis

* also unused

* different method first draft

* copy existing fuzzy func

* check all possible ecus exist, only platform codes, slightly refactor main loop

* fix

* Revert recent

Revert "fix"

This reverts commit 5cdb7bda835f1e48e750ab4195e891afe08e11ea.

Revert "check all possible ecus exist, only platform codes, slightly refactor main loop"

This reverts commit d3e918fa20fa4ce881445850f5f7428a3c11adf8.

Revert "copy existing fuzzy func"

This reverts commit 34c8c0545097c84f55f4b4f61907606c93760ddd.

Revert "different method first draft"

This reverts commit b91139055d7d1802c1eb726504798c156a183c9c.

* new func

* fixup test

* remove changes from v1 from fw_versions.py

* clean up a bit

* return part as part of code

* fix test

* add original fuzzy function

* add an ecu match if the date is within range (or date doesn't exist)

* add format for what we're going to do

* not working stash

* the exact matching function does more of what we want with less code and less custom logic

* we don't care about found versions, only codes and dates

* actually we do have an exception

* this works pretty nicely now

* up here

* this is better

* some minor clean up

* old function=now junk

* fix platform code test

* remove old platform code function

* now rename _new to

* use FW_QUERY_CONFIG

* clean up imports

* rename that too

* one line

* correct typing

correct typing

* draft tests

* so that works

* fixup excluded platform test now too

* this is tested by excluded platform test

* test parts and dates

* remove old comment

* old import

* take platform code stuff out of FwQueryConfig

* fix test

* revert debug script

* flip order

* make this a set by default

* revert this part

* correct typing

* clean up comments

* clean that test up too/pylint

* combine these three tests ina clean way

* not right

* more general

* be consistent with quotes

* comment

* comment

* comment in fw_versions

* flip order

* this is more readable

* could test all this, but it's tested in test_hyundai and doesn't do a lot here

* only assert brands which use this

* invalidate all CAN FD ICE and hybrid

* tuple

* can get away without filtering

* add comment reasons

* fix

* some review suggestions

* this works (first draft)

* this is better

* script to print platform codes and dates

* sanity check for dates are in correct ecus and platforms

* mypy

* better variable name and comment

* rename

* same

* slightly better name

* subset

* exclude platforms and live car without dates

* consistent

* self explan

* better name

* test to make sure the functions agree

* clean that up

* comment

* we get other responses from queries not in DB, only check any

* not used or typed
old-commit-hash: f788edb6a5
2023-06-15 02:50:45 -07:00