Commit Graph

10171 Commits

Author SHA1 Message Date
Adeeb Shihadeh 0ced56b2ea remove xx dependencies (#29263)
* rm xx deps

* mv that

* fix

* fix a path

* relock

* relock

* update

* update sentry

* update

* revert sentry

* Update lock

* Dummy pip package

* Not needed with poetry

* dont need dummy

---------

Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
2023-08-11 20:05:44 -07:00
Shane Smiskol f5a361a111 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
2023-08-11 18:47:12 -07:00
Shane Smiskol 09ce869ee7 fw_versions: clean up some typing (#29350)
* another common type

* here too

* unused
2023-08-11 18:37:17 -07:00
Shane Smiskol 001d4e8729 test_models: match online fingerprinting behavior (#29306)
* draft

* 1x

* clean up

* final clean up

* fix

* self explan

* space

* space
2023-08-11 18:33:11 -07:00
Shane Smiskol a1e85f3661 static analysis fixes 2023-08-11 18:22:42 -07:00
Shane Smiskol 1099b3486a 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
2023-08-11 18:10:27 -07:00
Kacper Rączy 460f5c8e0b 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
2023-08-11 18:07:06 -07:00
Justin Newberry 2482b58968 CI: move other caches out of /tmp (#29348)
* also move other caches

* macos can stay
2023-08-11 17:41:23 -07:00
Justin Newberry e4ead4f183 Ruff: b905 (strict zip) (#29336)
* added mutable default args

* most of the Bs

* add comment about lrucache

* b905
2023-08-11 16:13:51 -07:00
Justin Newberry ace4d78e31 CI: move cache to home directory (#29347)
move cache to home dir
2023-08-11 15:45:38 -07:00
Vivek Aithal 81322a4805 [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>
2023-08-11 15:34:25 -07:00
Justin Newberry 62c1e65924 Ruff: enable most of bugbear (#29320)
* added mutable default args

* most of the Bs

* add comment about lrucache
2023-08-11 15:33:49 -07:00
Shane Smiskol 84fbf1c2e9 simulator: fix CANParser input args (#29343)
* we weren't testing?

* fix
2023-08-11 14:12:33 -07:00
Adeeb Shihadeh aeece52a06 setup openpilot package (#29338) 2023-08-11 14:11:28 -07:00
Justin Newberry a0f399677e CI: use default caching action (#29339) 2023-08-11 14:03:10 -07:00
Dean Lee 233e053842 scons: rename QT_MOCHPREFIX to QT3_MOCHPREFIX (#29334)
rename QT_MOCHPREFIX to QT3_MOCHPREFIX
2023-08-11 10:38:34 -07:00
YassineYousfi 9858754a02 camera transformations: pass intrinsics to get_calib_from_vp (#29323) 2023-08-11 10:24:30 -07:00
Misophist 4cad0a035d util: random_string is now more entropic (#29312)
* random_string now returns a significantly higher entropy random string

sizeof(char*) is going to be 8 on a 64-bit system, not the length of the
string. Before, only strings of integer values [0-6] were being generated. Also
switched to C++ constructs for simplicity.

* Update common/util.cc

* maintain repo style

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-11 03:46:47 -07:00
Shane Smiskol cc747e2166 ui/map_instructions: round <500 distances (#29333)
round
2023-08-11 03:33:40 -07:00
Dean Lee 4a89928a9a ui/map: fix CSS error (#29332)
fix css error
2023-08-11 03:31:13 -07:00
Shane Smiskol 52675b2739 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
2023-08-11 03:27:32 -07:00
Dean Lee 80356b34f1 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>
2023-08-11 03:26:08 -07:00
Dean Lee 15bb9dd096 ui/map: set WA_NoMousePropagation to prevent mouse event from propagating up (#29329)
set WA_NoMousePropagation
2023-08-11 02:45:54 -07:00
Shane Smiskol 2a38f38be1 common_fault_avoidance: take a bool (#29328) 2023-08-11 00:27:53 -07:00
Jason Wen 22cf5421d6 ui onroad: utilize local variables for repeated capnp reader access (#29325) 2023-08-10 23:13:45 -07:00
Dean Lee cef693f309 ui/onroad: move duplicated code to drawIcon() (#29149)
* move duplicate code to function drawIcon

* fix center point
2023-08-10 23:08:46 -07:00
Shane Smiskol cbfcc40571 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>
2023-08-10 20:30:35 -07:00
Shane Smiskol 470b520d8a bump opendbc (#29321)
bump
2023-08-10 19:40:03 -07:00
Justin Newberry 8793cbff40 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
2023-08-10 18:58:22 -07:00
Adeeb Shihadeh cd4bb412f5 CI: bump up model test timeout 2023-08-10 17:29:56 -07:00
Adeeb Shihadeh 01273d6224 ruff: check for unused noqa 2023-08-10 17:11:48 -07:00
Justin Newberry 69deed1f1a Ruff: Disallow implicit string concat (#29316)
* ruff enable isc

* also disallow multiline
2023-08-10 16:43:39 -07:00
Justin Newberry 4a9afd7554 Ruff: comprehensions conventions (#29317)
ignore c408
2023-08-10 16:40:30 -07:00
Justin Newberry af3ed37c5c Ruff: flake8 pie (misc lints) (#29318)
flake8 pie
2023-08-10 15:28:51 -07:00
Adeeb Shihadeh 670fa9af5f pytest unit test running (#29261)
* setup config

* collect passes

* pytest system/ works
2023-08-10 08:23:19 -07:00
Harald Schäfer 4b57e71e93 Poetry lock: no poetry recursion (#29304)
* Poetry lock: no poetry recursion

* Make tests pass

* Update poetry

* Update pip too

* Update lock with new pip

* Needed for xx
2023-08-10 03:34:24 -07:00
eFini 8d7e909b53 map ui: Fixed ETA text alignment issue in CJK (#29311)
fixed ETA text alignment issue in CJK
2023-08-10 02:15:43 -07:00
Shane Smiskol 70b1e9dd75 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
2023-08-10 00:45:23 -07:00
Cruise Brantley e8f33fb5b7 Hyundai: Additional Ioniq 5 firmware (#29307)
added fwdCamera
2023-08-09 23:10:54 -07:00
Adeeb Shihadeh 44c76257a1 rm some old tests 2023-08-09 22:31:47 -07:00
eFini 5b4aa67864 Multilang: Chinese translations update (#29310)
* chinese translations

* Update selfdrive/ui/translations/main_zh-CHS.ts

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-09 20:40:39 -07:00
Shane Smiskol 6106876da7 test_car_model: remove duplicate argument (#29309)
* only need to pass test_route

* unused
2023-08-09 20:36:49 -07:00
Mitchell Goff c04e5d12fc Non-Inflatable Model 🎈 (#29003)
* Added all maneuvers to navInstruction message

* Added nav instruction logic to modeld

* New model: fcee01c1-96bb-414f-b00d-e4a994a00922/700

* Fixed bug in navd

* Added sharp/slight modifiers

* Updated refs
2023-08-09 19:56:45 -07:00
Adeeb Shihadeh e53f9597f3 remove rest of pylint (#29302)
* remove rest of pylint

* fix release build
2023-08-09 19:03:36 -07:00
Shane Smiskol 6ffdc32bfc Toyota: set stop and go if TSS2 car (#29303)
we should assume all TSS2 have stop and go (because we set them all manually)
2023-08-09 17:46:06 -07:00
Shane Smiskol 225ed2ed5a interfaces: test interface attributes (#29301)
* test

* draft

* draft

* clean up

* clean up

* better test

* clean up

* check car info

* uncomment

* rm space

* no loop

* use dbc

* more clear

* one line
2023-08-09 17:01:38 -07:00
Adeeb Shihadeh e9e0661771 ruff: fix running outside pre-commit 2023-08-09 16:45:09 -07:00
Adeeb Shihadeh 51831d03a3 Revert "interfaces: test interface attributes (#29297)"
This reverts commit 6a678cde6c.
2023-08-09 16:28:12 -07:00
Shane Smiskol 6a678cde6c interfaces: test interface attributes (#29297)
* test

* draft

* draft

* clean up

* clean up

* better test

* clean up

* check car info

* uncomment

* rm space

* no loop

* use dbc

* more clear

* one line
2023-08-09 16:10:30 -07:00
eFini 8ca7753c95 longitudinal_planner.py: cleaner variable assignment (#29290)
* cleaner variable assignment

* Update selfdrive/controls/lib/longitudinal_planner.py

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-08-09 15:17:19 -07:00