Commit Graph

13153 Commits

Author SHA1 Message Date
Adeeb Shihadeh 4356b74cca updated: finish system/ move (#32535)
* updated: finish system/ move

* add those back

* skip that

* skip whole file

* one more time
old-commit-hash: 73b02f2cda
2024-05-25 12:22:02 -07:00
Adeeb Shihadeh f1c241361c speedup pj demo test
old-commit-hash: cd21d64058
2024-05-25 11:40:10 -07:00
Adeeb Shihadeh 75f86a0845 move rerun to dev dependencies (#32534)
old-commit-hash: b9244f1031
2024-05-25 11:09:08 -07:00
Hoang Bui 60b476a5b6 CI/simulator: metadrive test starts when OP engaged and world is initialized (#32523)
* fix metadrive start time

* fix
old-commit-hash: 613f73c53f
2024-05-25 10:37:07 -07:00
Shane Smiskol d56052fcad [bot] Fingerprints: add missing FW versions from new users (#32533)
Export fingerprints
old-commit-hash: 95aa7c4b68
2024-05-25 09:42:23 -07:00
Shane Smiskol efc7075f26 LongitudinalMpc: use DT_MDL (#32532)
bad magic number
old-commit-hash: 6ecb710305
2024-05-25 03:29:54 -07:00
Mauricio Alvarez Leon f90655a1ff `ubuntu_setup`: fix `No module apt_pkg` error when setting up (#32526)
* no apt_pkg fix

* check arch

* fix if

* cleanup

* reorder

* increase shm size for selfdrive tests

* add comment explaining reinstall

* refine
old-commit-hash: f4322666c6
2024-05-24 21:38:23 -07:00
Yassine 3ad7205042 Revert "wip /500"
This reverts commit 3baaa27c2defbdd4ec29805c2641b9e8a82a35ce.

old-commit-hash: 8bd4540636
2024-05-24 19:45:00 -07:00
Yassine c40976bb5f wip /500
old-commit-hash: 8183715beb
2024-05-24 19:44:14 -07:00
Shane Smiskol 1295d75c31 Kia: add 2022 Forte model year
The minimum enable speed is also 0 mph with a lead like the 2023, so it's likely supported with this harness

old-commit-hash: a7065d158b
2024-05-24 15:49:45 -07:00
Shane Smiskol 6b1d51e4df Kia: update Forte 2019-21 min enable speed (#32528)
* forte enable speed fix

* update docs
old-commit-hash: 937ff7f418
2024-05-24 15:48:26 -07:00
cipioh 049256c5e3 Added ecu firmware data for 2024 Kia EV6 GT (#32524)
* Update fingerprints.py

added KIA EV6 GT 2024

* Update fingerprints.py

added firmware from 2024 Kia EV6 GT

* format

* update my

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 652f15d54e
2024-05-24 13:39:42 -07:00
ZwX1616 bf7724d30b dmonitoringd: simplify main loop (#32517)
* one call does all

* no need

* update etst

* filename

* dbf5b05ff480145a79b5941e360d0698b70979cd
old-commit-hash: 204219695f
2024-05-23 20:14:28 -07:00
Kacper Rączy 5e70ea98d2 process_replay: most messages valid check (#32521)
* check_most_messages_valid impl

* Add to both regen and test_processes

* Refactor

* Bring back carOutput

* Use Counter

* Use get(k, 0)
old-commit-hash: e0d20d2cf3
2024-05-23 15:30:21 -07:00
Adeeb Shihadeh 5bc1ce5c58 fix PATH
old-commit-hash: 38c0fdac47
2024-05-23 11:30:56 -07:00
Adeeb Shihadeh ca19327118 remove a pyenv reference
old-commit-hash: 278c312876
2024-05-23 11:24:10 -07:00
Mauricio Alvarez Leon e665f05efe Removal of pyenv (#32512)
* initial removal of pyenv

* remove .python-version copy in dockerfile

* successful image build with ppa

* update prompt

* pip install scons

* apt install scons

* finally fix dockerfile to work with venv

* cleanup userflow

* increase memory to 100m

* typos

* wrong variable

* lmao
old-commit-hash: f5752121f8
2024-05-23 07:56:18 -07:00
Shane Smiskol 0aae777597 Reapply "Ford: detect missing LKAS from EPS configuration (#31821)" (#32518)
* Reapply "Ford: detect missing LKAS from EPS configuration (#31821)"

This reverts commit 79247ab507d239c2e80bc0ecbf08e654af0c0c5b.

* catch

* now fix

* clean up
old-commit-hash: 7a6818da7e
2024-05-22 17:27:22 -07:00
Adeeb Shihadeh 04a7ae120c rm disabled notebooks test
old-commit-hash: 423016d6e9
2024-05-22 17:16:08 -07:00
Shane Smiskol e534d9777c test car interfaces: catch more FW-related failures (#32514)
* only pick ecus from brand

* use superset of all requests

* much better

* clean up

* clean up

* try 150

* ?

* ???

* faster debug

* wtf

* no clue

* run push!

* this shouldn't catch it

* clean up

* rm
old-commit-hash: ef1b6b4703
2024-05-22 17:12:54 -07:00
ZwX1616 bd0cabd88d Update process replay refs with updated submaster alive behavior (#32508)
* add cereal

* update cereal

* cereal master

* lol really

* ref com

* ref
old-commit-hash: 749455c91d
2024-05-22 15:47:11 -07:00
ZwX1616 9a7fd90cb1 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>
old-commit-hash: fa2d5bca57
2024-05-22 15:18:06 -07:00
Hoang Bui b8fd64f3e7 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
old-commit-hash: fe9a091f11
2024-05-22 10:04:43 -07:00
Shane Smiskol 8499ca62ca [bot] Fingerprints: add missing FW versions from new users (#32511)
Export fingerprints
old-commit-hash: d96b8bbc01
2024-05-22 10:02:26 -07:00
Shotaro Watanabe c851d41c5a devcontainer: add bash-completion (#32510)
old-commit-hash: a5ff4a94a6
2024-05-22 07:40:10 -07:00
Shane Smiskol e3af6d23de Revert "Ford: detect missing LKAS from EPS configuration (#31821)"
This reverts commit 0a46b076a3b8f52e9a7aa5cc87acf1e3d8b64a0e.

old-commit-hash: ffb34e558f
2024-05-21 23:21:31 -07:00
Shane Smiskol 912ae13307 card: only exit ELM once done with ECU knock outs (#32505)
* only exit elm once done with knock outs

* comments!
old-commit-hash: 9fa92c2225
2024-05-21 21:23:14 -07:00
roberttruong 19f3c88368 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>
old-commit-hash: b059f2eda8
2024-05-21 20:31:47 -07:00
Marcin Perlikowski fb3429c2ce Hyundai: add fingerprint for 2020 IONIQ PHEV (#31301)
add fingerprint for 2020 Hyundai IONIQ PHEV

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

Co-authored-by: 19igari <koki.igari@turing-motors.com>
old-commit-hash: 25cc8a96ef
2024-05-21 18:41:04 -07:00
Dean Lee 6400f9644a ui/update_dmonitoring: Improve readability of r_xyz matrix initialization (#32359)
old-commit-hash: d234085496
2024-05-21 17:27:25 -07:00
Cameron Clough 513f571afc 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 c3d311b2ff.

* Revert "flipped"

This reverts commit 75c01fb4c5.

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

This reverts commit f82624a0eb.

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 9f327aeb48
2024-05-21 17:01:04 -07:00
Adeeb Shihadeh 64c444544f more apt dependency cleanup (#32502)
rm
old-commit-hash: 406f30add4
2024-05-21 15:40:00 -07:00
Adeeb Shihadeh 385ef598c8 CI: cleanup PR review jobs (#32503)
old-commit-hash: 527cd74b21
2024-05-21 15:25:50 -07:00
Shane Smiskol a979167c05 [bot] Fingerprints: add missing FW versions from new users (#32501)
Export fingerprints
old-commit-hash: e29ed6849e
2024-05-21 14:37:24 -07:00
Shotaro Watanabe 03fa0bf4c1 devcontainer: mount /dev (#32500)
old-commit-hash: b9c1c1dd37
2024-05-21 10:59:15 -07:00
Shane Smiskol 86b9bb374f update TOTAL_SCONS_NODES
old-commit-hash: e836845f02
2024-05-21 01:19:55 -07:00
Shane Smiskol ee03d13529 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 e2c3f01b2f.

* 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 534a357ee9.

* Revert "just use CS"

This reverts commit 9fa7406f30.

* add vCruise

* migrate car state

* Revert "migrate car state"

This reverts commit 4ae86ca163.

* Revert "add vCruise"

This reverts commit af247a8da4.

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

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

This reverts commit b4af8a9b0a.

* 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 5499b83c2d.

* 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
old-commit-hash: 71f5c441fe
2024-05-21 01:18:10 -07:00
Adeeb Shihadeh f6bafe95f6 Revert "CI: move car docs diff job (#32496)"
This reverts commit aa372959f53f92f01778fae4c6f01960d1f040b4.

old-commit-hash: 49d7edfe11
2024-05-20 23:33:16 -07:00
Adeeb Shihadeh 385f3c0041 also tag as latest
old-commit-hash: 5e98d9e289
2024-05-20 23:28:58 -07:00
Shane Smiskol f7e0da0dd9 regen: use existing carParams msg (#32493)
use existing msg
old-commit-hash: ce136317d8
2024-05-20 23:26:47 -07:00
Adeeb Shihadeh 3a09d909e8 CI: move car docs diff job (#32496)
* CI: move car docs diff job

* no if
old-commit-hash: da42c4a561
2024-05-20 23:11:19 -07:00
Adeeb Shihadeh 947ca354f7 CI: merge build jobs (#32495)
old-commit-hash: 936e8d3d80
2024-05-20 23:01:42 -07:00
Adeeb Shihadeh 14e7c7d260 thermald: move to system/ (#32494)
* thermald: move to system/

* fix path

* revert
old-commit-hash: b2cf9b35f6
2024-05-20 22:51:29 -07:00
Adeeb Shihadeh 7a3e454d27 move sentry/stats to system/ (#32490)
* move sentry/stats to system/

* fix
old-commit-hash: da6fd75125
2024-05-20 22:39:25 -07:00
Mauricio Alvarez Leon eca631af2d 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
old-commit-hash: 1203f5eeb3
2024-05-20 20:47:53 -07:00
Dean Lee 124b0180c3 ui: improve `update_line_data()` (#32354)
improve update_line_data
old-commit-hash: 0678644a8f
2024-05-20 19:38:24 -07:00
Adeeb Shihadeh 70d14c99e1 ruff: enable TRY
old-commit-hash: 0e3df5ae4d
2024-05-20 17:47:48 -07:00
Adeeb Shihadeh 3358745103 ruff: enable UP
old-commit-hash: b2e4c64cf8
2024-05-20 17:43:54 -07:00
Adeeb Shihadeh 73e4aa24b9 ruff: enable NPY
old-commit-hash: 788c4edeec
2024-05-20 17:40:46 -07:00