Commit Graph

7779 Commits

Author SHA1 Message Date
Shane Smiskol 4eadeff03f test_models: some typing (#29413)
* type

* also type check this func

* unused
old-commit-hash: 936f8b98177d98e75ebe50ed2a98a4b677b76dc8
2023-08-15 15:25:36 -07:00
Jason Young b4614b3c28 car interfaces: cleanup tire stiffness calculation (#28263)
* cleanup tire stiffness calculation

* bump cereal

* think these todos still apply

* gm: same default

* revert comments

* bump

* update refs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 90c4bbe8e4ee11f3c1289a0dbb93262824fa430c
2023-08-15 14:17:08 -07:00
Shane Smiskol 92ff85f4b4 Update TOTAL_SCONS_NODES
Should add a CI test for this
old-commit-hash: 3e2903a0c184a203718e2430aa33da6e3b62bf7f
2023-08-14 17:34:19 -07:00
Dean Lee e0439a516f ui/map: assign the return value to last_position (#29341)
assign the return value directly to last_position
old-commit-hash: 613bbb7e6da40b313dea86af9bfae71c057b375d
2023-08-14 16:39:43 -07:00
Shane Smiskol 6be9e66073 jenkins: re-enable test_models (#29394)
* re-enable test_models

* now?

* Remove bad Volt segment

* Update Jenkinsfile

* use first n segments
old-commit-hash: fb235238addb73e04f59fca941040e3785be103e
2023-08-14 16:08:34 -07:00
quinnp8703 dcbaf07a4b volkswagen/audi: Additional S3 2015 firmware (#29366)
Update values.py

fingerprinting for early production 2015 audi s3
old-commit-hash: c74daad0b96a01a15f1b7e26e3cf64d87f1a6af4
2023-08-14 13:34:44 -07:00
Dean Lee c622a4cac5 common/util: move function random_int to util (#29388)
old-commit-hash: 22bc06fdaab24b8aa3aba2513a32ae828f6d589e
2023-08-14 09:37:16 -07:00
Dean Lee ec3b69928a ui/networking: bolding the connected network (#29385)
old-commit-hash: 29f2389cce373ccbf27526183aa34cfe5612c52d
2023-08-14 15:18:41 +01:00
Dean Lee 87c4c661c7 ui/map_instructions: set margin-top to UI_BORDER_SIZE (#29387)
old-commit-hash: 9071c8a4fcd392efd9b0533879ee080aff9cccac
2023-08-14 12:43:32 +01:00
Adeeb Shihadeh e603ff3427 soundd: cleanup remnants from running while offroad (#29006)
cleanup
old-commit-hash: 0bacd9882875b4b0c3ad206dbc365ccae5464564
2023-08-13 22:17:54 -07:00
Justin Newberry 1ef7623ec7 Subaru: ES_Distance cruise cancel safety (#29362)
old-commit-hash: c8cae714c681dae9a380b1bcb7b71eeb3fdfba3d
2023-08-13 22:14:13 -07:00
Dean Lee 25df6335f7 UI: make wifi network sorting more stable (#29376)
* stable sort

* fix typo,rename to strengthLevel
old-commit-hash: 01089cf4bfea0d9c4484d18d78157227f5733db0
2023-08-13 21:12:23 -07:00
Dean Lee 431797307d ui/sidebar: break long line for readability (#29379)
old-commit-hash: 878d3f4cfc1aa6d35d7775567bb40476d68cc4cb
2023-08-13 18:03:38 -07:00
Adeeb Shihadeh 1ca3343d0c add small ui for jenkins runners (#29382)
old-commit-hash: 09ffce80737ec54ada27be5643e223ba1db12bd1
2023-08-13 18:01:51 -07:00
Adeeb Shihadeh f50fedb647 Fixes for PYTHONWARNINGS=error (#29381)
old-commit-hash: db287496d82be87971a619b2659c47737142a385
2023-08-13 17:22:56 -07:00
Justin Newberry 01beb57506 Ford: Explorer 2020 fingerprint (#29372)
old-commit-hash: 106f49a00fee97f6e5edea8c3c6267e14b1ad4c1
2023-08-13 16:41:35 -07:00
Dean Lee ce5c95715c ui/networking: remove dynamic property and style sheet (#29377)
old-commit-hash: 373171afd08a7890d326993ce2a6275ca79c1876
2023-08-13 14:48:06 -07:00
Dean Lee 42dd6af842 ui/networking: remove call to clearLayout (#29037)
* build list inplace

* move clearLayout to cabana

* cleanup include

* polish style

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: fd8a9c852016ccfd13ae5146648a65f01cc2468c
2023-08-13 11:57:40 -07:00
Jason Wen 53addf20b5 Hyundai CAN-FD: carState cleanup (#29326)
* Hyundai CAN-FD: carstate cleanup

* Looks nicer

* Rearrange

* Fix

* Update selfdrive/car/hyundai/carstate.py

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 3a00149f564d72ee68d8d565d0ae967f8c6b5847
2023-08-13 11:28:09 -07:00
Marcus Millspaugh 9b98b3d6ea additional Subaru fwVersion (#29365)
* Update Car/Subaru values.py to support 2022 Crosstrek

Tested via SP, just want support via stock OP

* remove duplicates

* started adding support for toyota bZ4X

* Add files via upload

* Update values.py

* Update values.py

* Update values.py

* Update values.py

* remove duplicates and mistakes

---------

Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
old-commit-hash: 2c13dea1c822ce8be02be530604d0d984277ad13
2023-08-12 22:05:33 -07:00
morrislee d668470d29 Closer Silverado 1500 Weight (#29355)
old-commit-hash: 060aa33b99b965ca1a47994a72eaf43071101676
2023-08-12 17:24:12 -07:00
Jason Young a38f32ae48 VW MQB: Add FW for 2017 Volkswagen Golf R (#29360)
old-commit-hash: c76d24cec99eae552f3387e3378f3557ea47c658
2023-08-12 13:30:40 -07:00
Korben 1672c9fdbd Full French UI Localization (#29260)
* Update languages.json

French added

* Create main_fr.ts

French lang file

* git ignore

* update french lang
old-commit-hash: 518ced49ce3e6a0dc0ceea1108dac8056166b724
2023-08-11 21:36:58 -07:00
Adeeb Shihadeh 9a7e8e931a cleanup unused python packages (#29353)
* rm unused python packages

* lock
old-commit-hash: d6857996d3376aa757acdc697d33eb82088f523e
2023-08-11 21:34:47 -07:00
Adeeb Shihadeh cf1d402531 remove fastcluster (#29352)
* remove fastcluster

* lock

* rm there

* and from release files
old-commit-hash: 00a11a1a2b1258f043f7675215e528a0c08185dc
2023-08-11 21:08:49 -07:00
Shane Smiskol 89b56e9661 FPv2: fingerprint on current brand's candidates (#28435)
* pass in brand

* needs to be flipped for exact matching since it's subtractive

* new helper

* makes more sense flipped

* clean up
old-commit-hash: f5a361a1112440b941d50b22b2203192e2d68e3d
2023-08-11 18:47:12 -07:00
Shane Smiskol 8f958e8ee6 fw_versions: clean up some typing (#29350)
* another common type

* here too

* unused
old-commit-hash: 09ce869ee73994af31205e37ae297968e10f66a1
2023-08-11 18:37:17 -07:00
Shane Smiskol 1945ef0441 test_models: match online fingerprinting behavior (#29306)
* draft

* 1x

* clean up

* final clean up

* fix

* self explan

* space

* space
old-commit-hash: 001d4e8729bdab999f9bd948b162091465a125f6
2023-08-11 18:33:11 -07:00
Shane Smiskol 4c47e5fd21 static analysis fixes
old-commit-hash: a1e85f3661d2a464ec452294a57e7c0462044a28
2023-08-11 18:22:42 -07:00
Shane Smiskol 344cbd2049 test_models: check relay malfunction (#29270)
* check relay malfunction in test_models

* draft

* actual relay malfunction (or ASCM was turned on)

* rav4: not dashcam and op enabled, but we're not sending anything

* clean up

* spaces

* more space

* flip

* better?

* combine

* for

* move up
old-commit-hash: 1099b3486a8c38c56873caceac88ea252f972771
2023-08-11 18:10:27 -07:00
Kacper Rączy 4017b1707c radard: tie radard frequency to modelV2 vol. 2 (#29240)
* radard: tie radard frequency to modelV2

Accumulate parsed messages until state is updated (toyota)

Same for honda

Rename rr to something more descriptive

* Change _update method name, since signature has changed

* Update ref commit

* Some renames

* Check for number of cans
old-commit-hash: 460f5c8e0b2fd2c420e211b09b70d1d79834a929
2023-08-11 18:07:06 -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: e4ead4f1830618f5f61978491930cb0b8d36ab26
2023-08-11 16:13:51 -07:00
Vivek Aithal 8d11558056 [commabody] setup and run live stream encoders (#29087)
* op changes needed for body

* remove logmessaged callback

* add newlines

* add stream arg

* add stream_encoder to config

* supersets, avoid two encoderd

* fix recursive exit error

* fix loggerd crash

* add stream_encoderd cpu usage to test

* Update system/loggerd/loggerd.h

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

* resolve comments

* stream_encoderd onroad to false

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 81322a48059bfb77c1e5613dea35e24181c8bb14
2023-08-11 15:34:25 -07:00
Justin Newberry d487c0501f Ruff: enable most of bugbear (#29320)
* added mutable default args

* most of the Bs

* add comment about lrucache
old-commit-hash: 62c1e6592439119f360dd64b854e7047f35222ba
2023-08-11 15:33:49 -07:00
Shane Smiskol d33545a0b6 ui/map_instructions: round <500 distances (#29333)
round
old-commit-hash: cc747e21666c6a6e382503eaf4cc29bfe3329635
2023-08-11 03:33:40 -07:00
Dean Lee b065f5c9a2 ui/map: fix CSS error (#29332)
fix css error
old-commit-hash: 4a89928a9a1eebcf46e789a2df037af66b087252
2023-08-11 03:31:13 -07:00
Shane Smiskol f8d9860d20 ui/map_instructions: clean up lane icon selection (#29330)
* draft

* revert

* remove extra directions

* more clean up

* add todo

* revert rename

* I assume this is moot, but preserve behavior

* spacing
old-commit-hash: 52675b2739de56a9b5784ba8016791cdb5286085
2023-08-11 03:27:32 -07:00
Dean Lee eb695a00c2 ui/map: check NavDestination only if navInstruction is invalid (#29331)
* check NavDestination only if navInstruction is invalid

* Update selfdrive/ui/qt/maps/map.cc

Co-authored-by: Shane Smiskol <shane@smiskol.com>

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 80356b34f1c189bee4287c0b70c3e6a18e105cc3
2023-08-11 03:26:08 -07:00
Dean Lee a494b38f6e ui/map: set WA_NoMousePropagation to prevent mouse event from propagating up (#29329)
set WA_NoMousePropagation
old-commit-hash: 15bb9dd09612bc23cc0d59da6fafd74669e1190e
2023-08-11 02:45:54 -07:00
Shane Smiskol 6b7b6034b7 common_fault_avoidance: take a bool (#29328)
old-commit-hash: 2a38f38be12052790804851a179acd159cea7f8b
2023-08-11 00:27:53 -07:00
Jason Wen 55f7f723a0 ui onroad: utilize local variables for repeated capnp reader access (#29325)
old-commit-hash: 22cf5421d625aaf578efcf572404a4d096c269b8
2023-08-10 23:13:45 -07:00
Dean Lee c8c2c5f801 ui/onroad: move duplicated code to drawIcon() (#29149)
* move duplicate code to function drawIcon

* fix center point
old-commit-hash: cef693f3097bf9c7a34e6d61afcac341814ab341
2023-08-10 23:08:46 -07:00
Shane Smiskol 151b707901 Car interfaces: remove hard-coded signal definitions (#27773)
* What if: no signals! 🙅🤌🎆

* do hyundai

* honda!

* do gm

* and vw! (sorry comments)

* do those

* -500

* little more

* fix subie

* change back

* bumpopendbc

* oof lol

* messages

* some clean up

* here too

* clean up honda radar_interface.py

fix

rm

* bump opendbc to master

* add todo

* rename checks in tesla/radar_interface

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: cbfcc405715ae4fa45b3beea03dd82ba925495c4
2023-08-10 20:30:35 -07:00
Justin Newberry 715f028a0e Ruff: enable flake8-builtins (#29315)
* enable flake8-builtins

* replace any with contains

* fix typo in pack

* fix type

* format is from the parent module, has to be enabled

* item_id

* fix item_id

* disable for id since that's what the remote server returns
old-commit-hash: 8793cbff40662a92bff16d75b51479c80517305a
2023-08-10 18:58:22 -07:00
Justin Newberry a14f162bc7 Ruff: comprehensions conventions (#29317)
ignore c408
old-commit-hash: 4a9afd7554060ac5353e96f1d7feb06d3a3671e9
2023-08-10 16:40:30 -07:00
Justin Newberry 7d6d3dc9ea Ruff: flake8 pie (misc lints) (#29318)
flake8 pie
old-commit-hash: af3ed37c5cd8823f793aec60e1c74760cf795bd9
2023-08-10 15:28:51 -07:00
Adeeb Shihadeh b7f6b6dc95 pytest unit test running (#29261)
* setup config

* collect passes

* pytest system/ works
old-commit-hash: 670fa9af5f66278152acf477b19d19559733094f
2023-08-10 08:23:19 -07:00
eFini e90ced8449 map ui: Fixed ETA text alignment issue in CJK (#29311)
fixed ETA text alignment issue in CJK
old-commit-hash: 8d7e909b539ee5e8411ccb7e3375a74dc6c86c2d
2023-08-10 02:15:43 -07:00
Shane Smiskol 11492496fc test_models: run on route list (#26226)
* move to openpilot

* draft

* support internal urls

* not used

* update seg list

* regen segment list

* regen seg list

* regen

* regen

* regen

* no dirty segments

* regen seg list with no fuzzy or fixed fp

* regen segments with hda2 exception

* regen with added filters

* regen without bad dongle

* regen

* regenerate!

* regenerate, only OP enabled

* regen

* regenerate!

* regenerate!

* stash

* use SegmentName

* new route list

* add temp comment

* remove comment

* let's see if this works

* comment out other tests to speed up

* fix agent

* ?

* hmm

* oh whoops...

* add matrix

* fix

* how many levels do we need?

* fix values

* matrix can't be in parallel

* how about this

* try this

* Revert matrix

Revert "try this"

This reverts commit 8d0d91fd70c467c1fbb4e4e9aed511d15b2a30ef.

Revert "how about this"

This reverts commit a8e4fc53234824e77cbfb1e471277bc033e9dea1.

Revert "matrix can't be in parallel"

This reverts commit daaa6fcc3c75c74cbb90e97c565099a94123994c.

Revert "fix values"

This reverts commit df554b6a3371d124a574eb8d26bc51ef5b5b8fde.

Revert "how many levels do we need?"

This reverts commit 1a17320fa1c5e7220ef60e29981bbb3bb7da16c6.

Revert "fix"

This reverts commit e7eb6e404358fbd2eac3fea1901a8d30ea92d729.

Revert "add matrix"

This reverts commit a1b57e5725417d3c2f639f8edfc0c889b84b6753.

* use pytest instead! (5 jobs is ~150 mins)

* split lines, uncomment

* This Sienna seg has a fault SDSU that stopped forwarding/sending msgs

* picked a route with no PSCMStatus and no panda errors, recent routes are working

* this cadillac was dashcammed (no radar)

* opened an issue for this, it's 'expected' right now

* small clean up

* small clean up

* i don't think that worked

* is this needed?

* add to new PC tests

* cache

* draft

* Revert "draft"

This reverts commit 3b7f740dd4883118747300bc3687074c2d3c2116.

* probably should be function

* draft

* clean up

* add todo

* 600 random segments

* debug

* does this fix pythonpath issues?

fix

* try this

* mount?

* pytest again!

* no need for PYTHONPATH now

* Update Jenkinsfile

* ?

* convention

* clean up

* would be even more complex (have to unset ci which is class level)

* track

* is lfs pulled at all?

* ah no it's not
old-commit-hash: 70b1e9dd756cd2f6929cdf33dd1061a33f3b52b1
2023-08-10 00:45:23 -07:00
Cruise Brantley 051380ca3d Hyundai: Additional Ioniq 5 firmware (#29307)
added fwdCamera
old-commit-hash: e8f33fb5b7d99533719451d6358ef49c090d7008
2023-08-09 23:10:54 -07:00