Commit Graph

7421 Commits

Author SHA1 Message Date
Mitchell Goff
9d835020fc Always publish from mapsd (#28581) 2023-06-16 20:13:24 -07:00
Mitchell Goff
6509cde41b Rename map_renderer -> mapsd (#28580) 2023-06-16 20:12:50 -07:00
Kacper Rączy
83d6552a15 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
2023-06-16 19:51:37 -07:00
Mitchell Goff
a9cb255017 New map model: 917a2539-5e7a-4374-878a-9b356f0f1922/500 (#28579) 2023-06-16 19:31:57 -07:00
Yassine
fc61209f74 update model replay ref commit 2023-06-16 15:04:06 -07:00
YassineYousfi
4fcd82076a Nicolas Cage Model (#28547)
01697194-d32d-4c3a-a803-d8f61cdf24e9/449 2ff8e6a1-7efd-4984-9f29-974164a3747b/700
2023-06-16 13:36:56 -07:00
Adeeb Shihadeh
111b4eee30 fix a bunch of python warnings (#28576)
* fix a bunch of python warnings

* fix that
2023-06-16 13:22:30 -07:00
Jafar Al-Gharaibeh
354b5be9c3 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>
2023-06-15 20:50:21 -07:00
Vivek Aithal
dfbdcbad73 [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
2023-06-15 20:17:06 -07:00
Adeeb Shihadeh
692bfa55c9 thermald: adjust offroad danger temp (#28524) 2023-06-15 20:12:24 -07:00
Adeeb Shihadeh
77c9d65a71 thermald: remove offroad min time condition (#28567)
Co-authored-by: Comma Device <device@comma.ai>
2023-06-15 18:50:59 -07:00
wilderko
10a392a7f1 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>
2023-06-15 18:48:15 -07:00
Adeeb Shihadeh
411cf094f3 thermald: log duration of startup block (#28566) 2023-06-15 18:16:59 -07:00
Adeeb Shihadeh
3072643363 thermald: fix temperature filter init (#28565) 2023-06-15 17:34:01 -07:00
Adeeb Shihadeh
cb4c7118a5 thermald: log filtered max temp (#28564) 2023-06-15 17:08:47 -07:00
Maxime Desroches
3fc104fb6d 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
2023-06-15 17:01:13 -07:00
Jason Young
150cda68c2 VW MQB: Add FW for 2016 SEAT Leon (#28561) 2023-06-15 16:46:25 -07:00
Shane Smiskol
56614124f0 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
2023-06-15 16:32:32 -07:00
Adeeb Shihadeh
7d6897fa38 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>
2023-06-15 15:04:22 -07:00
Jason Young
4b63feddec VW MQB: Add FW for 2017 Volkswagen Golf (#28559) 2023-06-15 13:18:35 -07:00
Shane Smiskol
f788edb6a5 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
2023-06-15 02:50:45 -07:00
Shane Smiskol
2166adda5f HKG: test list of platforms with no fwdCamera dates (#28555)
* no dates test

* sorted
2023-06-15 02:14:33 -07:00
Shane Smiskol
e771660fa3 FPv2: rename live FW versions dict (#28550)
rename
2023-06-15 01:29:55 -07:00
Harald Schäfer
da3003ee41 Alpha long control no longer called experimental (#28437)
* Fix words

* vanish

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-06-14 21:51:55 -07:00
Adeeb Shihadeh
4a0b5dacbb pandad: update time from RTC (#28466)
* pandad: update time from RTC

* Update pandad.py

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-06-14 21:42:33 -07:00
Harald Schäfer
6d25f66cf1 Laikad: Need to understand constellationId to understand clock (#28552)
Need to understand constellationId to understand clock
2023-06-14 19:54:51 -07:00
Shane Smiskol
c453771492 HKG: add script to view platform codes (#28549)
add script
2023-06-14 15:54:04 -07:00
Cameron Clough
7a5b0b97e1 Ford Escape 2020 FW (#28545) 2023-06-14 15:53:58 +01:00
Harald Schäfer
155cab9ec4 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
2023-06-13 23:39:11 -07:00
Shane Smiskol
d94c2a8ef7 Hyundai FPv2 unit tests: clean up (#28542)
* be consistent with quotes

* combine tests

* cmt
2023-06-13 22:17:47 -07:00
Shane Smiskol
6c619561ee FPv2 timing unit test: halve runs (#28540)
Update test_fw_fingerprint.py
2023-06-13 21:26:31 -07:00
Shane Smiskol
572a221a86 FwQueryConfig: remove platform codes (#28538)
* bring platform codes out of config for now (can re-introduce later)

* clean that up

* flake8

* comment

* comments and better test names

* typo

* Update selfdrive/car/hyundai/tests/test_hyundai.py

* Update selfdrive/car/hyundai/tests/test_hyundai.py
2023-06-13 20:41:03 -07:00
Maxime Desroches
348df9c974 Fix index out of bound error for body carcontroller (#28539) 2023-06-13 20:37:17 -07:00
Shane Smiskol
fcc268b8be exact matching: use set for invalid (#28537)
use set
2023-06-13 20:00:54 -07:00
Kacper Rączy
15fcd0d9d4 regen: remove support for fake extra vision client (#28520)
* Remove extra client from camera replay

* Fix another device type check
2023-06-13 16:13:20 -07:00
Kacper Rączy
242e8d2ca8 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
2023-06-13 16:12:53 -07:00
Shane Smiskol
55e489db7c HKG: split up platform code parsing (#28532)
* test diff

* clean up

* clean up

* doesn't work :(

* fix mypy
2023-06-13 14:47:45 -07:00
Shane Smiskol
e54d05b42f HKG: FW part number test (#28525)
* start on test

* better regex

* lookbehind

* comments to choose from

* i did not know that!

* common patterns in values.py

* messy messy

* need to remove these

* rmrmrm

* clean up test

* fixups

* not used yet

* none should be good enough

* Update selfdrive/car/hyundai/values.py
2023-06-13 02:01:40 -07:00
Shane Smiskol
7fffb892e4 Hyundai: remove old Sonata FW (#28527)
* Update values.py

* can't find last 2 years
2023-06-13 00:26:02 -07:00
Shane Smiskol
8c784ae558 Hyundai: remove old Elantra FW (#28526)
* Update values.py

* don't see this fw last 2 years

* add version from 3ea622c3c0ec3055

* Update selfdrive/car/hyundai/values.py
2023-06-13 00:14:49 -07:00
Shane Smiskol
bce19bf187 Subaru: use latActive for steer request bit (#28453)
* subaru: use latactive

* Update ref_commit
2023-06-12 23:03:04 -07:00
Adeeb Shihadeh
58d32a70d7 manager: watchdog restart UI with SIGKILL (#28523) 2023-06-12 21:46:20 -07:00
Kacper Rączy
4eb3d54149 modeld: use any available stream as main, if there's only one (#28514)
* Use whatever stream is available as main, if there's only one

* Move logw somewhere else

* Add wideRoadCameraState to ignore_alive if its not available
2023-06-12 20:13:56 -07:00
Dean Lee
825c5a87df laikad: move 'from_qcom_source' into try block (#28510)
fix not cached except
2023-06-12 17:05:43 -07:00
Adeeb Shihadeh
9bb9657c9c thermald: must be in yellow band to go onroad (#28517) 2023-06-12 16:33:33 -07:00
Erich Moraga
9444df4c80 Add several missing RAM_1500 firmwares (#28515)
`ProjectZ3d#8762` 2023 RAM 1500  DongleID|route 4e0a5220533d9a86|2023-06-11--19-45-36
2023-06-12 15:18:35 -07:00
Adeeb Shihadeh
d96361970b thermald: common min date (#28457)
* thermald: common min date

* add to release files
2023-06-12 13:50:38 -07:00
Dean Lee
4ae0378f63 automatically detect available camera streams (#27640)
* remove WideCameraOnly

* check in set_initial_state

* no block

* remove try block

* apply reviews
2023-06-12 13:40:43 -07:00
Adeeb Shihadeh
2f117e88b7 test onroad: explicit memory leak check (#28502) 2023-06-11 14:43:25 -07:00
Adeeb Shihadeh
b22cadc04d thneed: cleanup duplicate GPU config (#28487)
Co-authored-by: Comma Device <device@comma.ai>
2023-06-11 13:26:41 -07:00