Commit Graph

12568 Commits

Author SHA1 Message Date
ZwX1616
fa2d5bca57 controlsd: explicitly ignore camera states in process replay (#32515)
* explicitly ignore

* Update selfdrive/controls/controlsd.py

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

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-05-22 15:18:06 -07:00
Hoang Bui
fe9a091f11 CI: Drive a loop in MetaDrive (#32308)
* finish failure on crossing any line

* update

* standardize queue messages

* update control_command_gen

* fix

* fix logic

* update closing type

* update test

* update logic

* update test

* add out of lane to local

* ci arrive_dest

* pytest integration

* update ci_config

* fix ruff

* move test termination to time

* better

* better order

* curve_len

* add buffer

* cleanup

* cleanup

* cleanup

* cleanup

* out_of_lane

* cleanup

* merge tests

* run 90s

* change test name

* local out of lane detect

* out_of_lane

* static anal

* cleanup

* test_duration

* change setup_class -> setup_create_bridge

* no print state during test

* new out_of_lane detect

* cleanup print in common.py

* fix

* fix

* check distance vs time

* cleanup

* cleanup increase check time

* minimum bridge test time

* wording

* cleanup
2024-05-22 10:04:43 -07:00
Shane Smiskol
d96b8bbc01 [bot] Fingerprints: add missing FW versions from new users (#32511)
Export fingerprints
2024-05-22 10:02:26 -07:00
Shotaro Watanabe
a5ff4a94a6 devcontainer: add bash-completion (#32510) 2024-05-22 07:40:10 -07:00
Shane Smiskol
ffb34e558f Revert "Ford: detect missing LKAS from EPS configuration (#31821)"
This reverts commit 9f327aeb48.
2024-05-21 23:21:31 -07:00
Shane Smiskol
9fa92c2225 card: only exit ELM once done with ECU knock outs (#32505)
* only exit elm once done with knock outs

* comments!
2024-05-21 21:23:14 -07:00
roberttruong
b059f2eda8 Additional Subaru Impreza 2022 Fingerprint (#31916)
* Update fingerprints.py

Add fingerprint for Subaru Impreza 2022 Australia

* auto_fingerprint

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-05-21 20:31:47 -07:00
Marcin Perlikowski
5e63906a3f Hyundai: add fingerprint for 2020 IONIQ PHEV (#31301)
add fingerprint for 2020 Hyundai IONIQ PHEV

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-05-21 20:24:45 -07:00
19igari
25cc8a96ef fix(modeld): Fix for unpredictable behavior in commonmodel_pyx.pyx (#32482)
Avoid undefined behavior

Co-authored-by: 19igari <koki.igari@turing-motors.com>
2024-05-21 18:41:04 -07:00
Dean Lee
d234085496 ui/update_dmonitoring: Improve readability of r_xyz matrix initialization (#32359) 2024-05-21 17:27:25 -07:00
Cameron Clough
9f327aeb48 Ford: detect missing LKAS from EPS configuration (#31821)
* debug: disable FW cache

* Ford: detect missing TJA/LCA config and disable LKAS

* set dashcamOnly

* revert

* clean up

* clean up

* some CAN FD do not have 0x01 block for PSCM

* bump cereal (fork)

* remove confusing comment

* add flags/event

* remove duplicate from events

* copy can be next pr

* dashcamOnly if no config comes back either (this shouldn't happen)

* flipped

* can do this

* Revert "can do this"

This reverts commit c3d311b2ffb7bbc346c7f702ac5c1934bc495c65.

* Revert "flipped"

This reverts commit 75c01fb4c5f7fdc9222ea13b8901f76b5b419c99.

* Revert "dashcamOnly if no config comes back either (this shouldn't happen)"

This reverts commit f82624a0eb28bf683660f86b3ddfd44717a6915f.

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-05-21 17:01:04 -07:00
Adeeb Shihadeh
406f30add4 more apt dependency cleanup (#32502)
rm
2024-05-21 15:40:00 -07:00
Adeeb Shihadeh
527cd74b21 CI: cleanup PR review jobs (#32503) 2024-05-21 15:25:50 -07:00
Shane Smiskol
e29ed6849e [bot] Fingerprints: add missing FW versions from new users (#32501)
Export fingerprints
2024-05-21 14:37:24 -07:00
Shotaro Watanabe
b9c1c1dd37 devcontainer: mount /dev (#32500) 2024-05-21 10:59:15 -07:00
Shane Smiskol
e836845f02 update TOTAL_SCONS_NODES 2024-05-21 01:19:55 -07:00
Shane Smiskol
71f5c441fe card: process that abstracts car interface and CAN (#32380)
* format card

* standalone process

* no class member CS, there's no point

also can be confusing; what else could be using this?

* rename CoS

* Update selfdrive/controls/controlsd.py

* never works first time :D

* canRcvTimeout is bool

* hack

* add cpu

* see what testing closet comes up with

* first

* some clean up

* support passable CI, fix test models

* fix startup alert

* process replay changes

* test_fuzzy

* gate carOutput valid on carControl valid

* we should publish after we update carOutput

* controlsd was using actuatorsOutput from 2 frames ago for torque, not the most up to date

* check all checks for carControl in case controlsd dies

* log more timestamps

* more generic latency logger; needs some clean up

latency_logger.py was difficult to understand and modify

* card polls on can and carControl to get latest carControl possible

* temp try to send earlier

* add log

* remove latencylogger

* no mpld3!

* old loop

* detect first event

* normal send

* revert "card polls on can and carControl to get latest carControl possible"

how it was is best

* sheesh! update should be first

* first timestamp

* temp comment ( timestamp is slow :( )

* more final ordering, and make polling on/off test repeatable

* Received can

* new plot timestamps

* clean up

* no poll

* add controllers (draft)

* Revert "add controllers (draft)"

This reverts commit e2c3f01b2fadcff74347bac90c8a5cc1ef4e27b3.

* fix that

* conventions

* just use CS

* consider controlsd state machine in card: not fully done

* hmm it's just becoming controlsd

* rm debugging

* Revert "hmm it's just becoming controlsd"

This reverts commit 534a357ee95bec4ed070667186af55d59421bbc7.

* Revert "just use CS"

This reverts commit 9fa7406f30c86200f20457f7b9ff95e731201bf9.

* add vCruise

* migrate car state

* Revert "migrate car state"

This reverts commit 4ae86ca163c6920070f410f608f7644ab632850b.

* Revert "add vCruise"

This reverts commit af247a8da41c3626ada4231b98042da1a1ae4633.

* simple state machine in card (doesn't work as is)

* Revert "simple state machine in card (doesn't work as is)"

This reverts commit b4af8a9b0a2e17fdfc89d344c64678ef51305c24.

* poll carState without conflate

* bump

* remove state transition

* fix

* update refs

* ignore cumLagMs and don't ignore valid

* fix controls mismatch; controlsd used to set alt exp

* controlsd_config_callback not needed for card

* revert ref temp

* update refs

* no poll

* not builder!

* test fix

* need to migrate initialized

* CC will be a reader

* more as_reader!

* fix None

* init after publish like before - no real difference

* controlsd clean up

* remove redundant check and check passive for init

* stash

* flip

* migrate missing carOutput for controlsd

* Update ref_commit

* bump cereal

* comment

* no class params

* no class

* Revert "no class"

This reverts commit 5499b83c2dcb5462070626f8523e3aec6f4c209d.

* add todo

* regen and update refs

* fix

* update refs

* and fix that

* should be controlsstate

* remove controlsState migration

CoS.initialized isn't needed yet

* fix

* flip!

* bump

* fix that

* update refs

* fix

* if canValid goes false, controlsd would still send

* bump

* rm diff

* need to be very careful with initializing

* update refs
2024-05-21 01:18:10 -07:00
Adeeb Shihadeh
49d7edfe11 Revert "CI: move car docs diff job (#32496)"
This reverts commit da42c4a561.
2024-05-20 23:33:16 -07:00
Adeeb Shihadeh
5e98d9e289 also tag as latest 2024-05-20 23:28:58 -07:00
Shane Smiskol
ce136317d8 regen: use existing carParams msg (#32493)
use existing msg
2024-05-20 23:26:47 -07:00
Adeeb Shihadeh
da42c4a561 CI: move car docs diff job (#32496)
* CI: move car docs diff job

* no if
2024-05-20 23:11:19 -07:00
Adeeb Shihadeh
936e8d3d80 CI: merge build jobs (#32495) 2024-05-20 23:01:42 -07:00
Adeeb Shihadeh
b2cf9b35f6 thermald: move to system/ (#32494)
* thermald: move to system/

* fix path

* revert
2024-05-20 22:51:29 -07:00
Adeeb Shihadeh
da6fd75125 move sentry/stats to system/ (#32490)
* move sentry/stats to system/

* fix
2024-05-20 22:39:25 -07:00
Mauricio Alvarez Leon
1203f5eeb3 minimize ubuntu deps. needed to run build openpilot (#32492)
* minimize common deps list

* fix

* fix endline error

* add portaudio3

* add build-essential

* upload old loggerd deps

* libqt5charts5-dev

* libncurses5-dev

* libbz2-dev

* libsqlite3-dev
2024-05-20 20:47:53 -07:00
Dean Lee
0678644a8f ui: improve update_line_data() (#32354)
improve update_line_data
2024-05-20 19:38:24 -07:00
Adeeb Shihadeh
0e3df5ae4d ruff: enable TRY 2024-05-20 17:47:48 -07:00
Adeeb Shihadeh
b2e4c64cf8 ruff: enable UP 2024-05-20 17:43:54 -07:00
Adeeb Shihadeh
788c4edeec ruff: enable NPY 2024-05-20 17:40:46 -07:00
LostEon
1ea2411575 Fingerprint 2016 Jeep Grand Cherokee (#32491)
* Fingerprint 2016 Grand Cherokee

* sort

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-05-20 17:38:47 -07:00
macdoos
e0fa26b1a4 split out dev apt dependencies (#32476)
* init

* add more extra packages

* update Dockerfile

* cleanup

* Update Dockerfile.openpilot_base

* needed to build

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-05-20 17:35:33 -07:00
Adeeb Shihadeh
af991b143a fix pre-commit warning 2024-05-20 16:46:34 -07:00
Adeeb Shihadeh
332542fad8 cleanup old ignore paths 2024-05-20 16:01:17 -07:00
Adeeb Shihadeh
19c8e72c74 Update BOUNTIES.md 2024-05-20 15:50:54 -07:00
Adeeb Shihadeh
3279dbeff7 athena: move to system/ (#32488)
* athena: move to system/

* slash
2024-05-20 14:59:43 -07:00
Hoang Bui
f3f22a5698 CI/simulator: Fix metadrive test pyopencl.CompilerWarning (#32487)
* add pytest.mark.filterwarnings

* remove -W pyopencl.CompilerWarning

* add comment
2024-05-20 14:41:31 -07:00
Shane Smiskol
833316835a [bot] Fingerprints: add missing FW versions from new users (#32486)
Export fingerprints
2024-05-20 09:48:51 -07:00
Shane Smiskol
09f2077f58 [bot] Fingerprints: add missing FW versions from new users (#32477)
Export fingerprints
2024-05-19 10:39:29 -07:00
Shane Smiskol
220fcc1675 process replay: regen routes (#32464)
* regen

* regen

* update

* undo

* update refs

* fix

* real fix

* test

* test2

* test3

* stash

* Revert "stash"

This reverts commit bf6765f526b48426f49a4b29c4042097f57fc4b0.

* rk.lagging can not be trusted. BODY segment has radarFault while modelV2 is not valid, causing radarState to not be valid

* order

* update refs again

* we never logged carOutput!

* bump

* add back checks
2024-05-19 01:07:12 -07:00
Adeeb Shihadeh
075176f869 define alert for actuatorsApiUnavailable 2024-05-18 17:55:52 -07:00
Dean Lee
b742776bff encoderd: publish i-frame as thumbnail (#32202)
* pusblish i-frame as thumbnail

* generic

* disable for now

* fix

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-05-18 17:46:34 -07:00
Mauricio Alvarez Leon
bd6bea39bf deps: add rerun-sdk into pyproject.toml (#32472)
* add rerun-sdk into pyproject.toml

* install/wheel cleanup

* unpin version
2024-05-18 17:21:04 -07:00
Adeeb Shihadeh
c9531b463a Revert "ui: single-threaded CameraView (#32291)"
This reverts commit dd6e2a400b.
2024-05-18 16:34:03 -07:00
Adeeb Shihadeh
04d8a4ecad CI: remove redundant pj job 2024-05-18 16:08:10 -07:00
Adeeb Shihadeh
4c558e45b9 control is still used 2024-05-18 15:15:41 -07:00
Adeeb Shihadeh
1e08132cdf gc unused python deps 2024-05-18 14:51:49 -07:00
Adeeb Shihadeh
48e24321e8 remove libopencv-dev (#32469) 2024-05-18 14:29:49 -07:00
Hoang Bui
950aeae544 CI: fix metadrive test (#32457)
* fix test

* this?

* fix

* this?

* deprecation warning inside

* comment
2024-05-18 14:04:22 -07:00
Shane Smiskol
1a4e022d70 [bot] Fingerprints: add missing FW versions from new users (#32468)
Export fingerprints
2024-05-18 14:03:50 -07:00
Adeeb Shihadeh
985b22d4b7 add [project] section to pyproject.toml 2024-05-17 21:43:57 -07:00