Commit Graph

9199 Commits

Author SHA1 Message Date
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: 749455c91dc27ed876d1b194c1d84bd481eefb00
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: fa2d5bca57a10bc54667d7e5e3e2ef5fbe80992f
2024-05-22 15:18:06 -07:00
Shane Smiskol 8499ca62ca [bot] Fingerprints: add missing FW versions from new users (#32511)
Export fingerprints
old-commit-hash: d96b8bbc01f8c18c38b52cb440f8d72f1d211398
2024-05-22 10:02:26 -07:00
Shane Smiskol e3af6d23de Revert "Ford: detect missing LKAS from EPS configuration (#31821)"
This reverts commit 0a46b076a3b8f52e9a7aa5cc87acf1e3d8b64a0e.

old-commit-hash: ffb34e558fe369bb5a5d6d7ff476c3b8e601f6db
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: 9fa92c222513731a19009781ce463bb9e69158db
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: b059f2eda807aca543b7e33031d52fc5a45be31f
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: 5e63906a3f4ef4eb01c99f23592aa87f2cc419a9
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: 25cc8a96ef22df5c8d6951c159045ae4e6d94807
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: d2340854967197836d6cc8f27d55039c1f205243
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 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>
old-commit-hash: 9f327aeb4824576497a57f077fe9b8243b95e8c0
2024-05-21 17:01:04 -07:00
Shane Smiskol a979167c05 [bot] Fingerprints: add missing FW versions from new users (#32501)
Export fingerprints
old-commit-hash: e29ed6849e4bd8e53b6ce03cfb860af071d75b16
2024-05-21 14:37:24 -07:00
Shane Smiskol 86b9bb374f update TOTAL_SCONS_NODES
old-commit-hash: e836845f02adc7abab05de8852859c315780c9d3
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 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
old-commit-hash: 71f5c441fe32184d94a9f26565a36c661e2ccf28
2024-05-21 01:18:10 -07:00
Adeeb Shihadeh 385f3c0041 also tag as latest
old-commit-hash: 5e98d9e2895330264a42c90c81c347b7d5bd1f5c
2024-05-20 23:28:58 -07:00
Shane Smiskol f7e0da0dd9 regen: use existing carParams msg (#32493)
use existing msg
old-commit-hash: ce136317d8e7c9d1c2981dacc77df414859c0e21
2024-05-20 23:26:47 -07:00
Adeeb Shihadeh 14e7c7d260 thermald: move to system/ (#32494)
* thermald: move to system/

* fix path

* revert
old-commit-hash: b2cf9b35f68061587fd6ab7a94a58f7b433b2da2
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: da6fd751257bcd3aa087ac4114e9f1529f7d3d12
2024-05-20 22:39:25 -07:00
Dean Lee 124b0180c3 ui: improve update_line_data() (#32354)
improve update_line_data
old-commit-hash: 0678644a8f1c5292d7904ecde6e55aeb90550b52
2024-05-20 19:38:24 -07:00
Adeeb Shihadeh 3358745103 ruff: enable UP
old-commit-hash: b2e4c64cf8fe3256d1e411e8715c29e2eb6f4f00
2024-05-20 17:43:54 -07:00
LostEon 4d0fdbff52 Fingerprint 2016 Jeep Grand Cherokee (#32491)
* Fingerprint 2016 Grand Cherokee

* sort

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 1ea2411575a04176637856af5ce54aae01b1cd8e
2024-05-20 17:38:47 -07:00
Adeeb Shihadeh 18970afb0e athena: move to system/ (#32488)
* athena: move to system/

* slash
old-commit-hash: 3279dbeff7d4f696804c94de1573be2b5f3f2f9d
2024-05-20 14:59:43 -07:00
Shane Smiskol 1c1b63bdb3 [bot] Fingerprints: add missing FW versions from new users (#32486)
Export fingerprints
old-commit-hash: 833316835aedaf259e6d6333a1be57cc31dce360
2024-05-20 09:48:51 -07:00
Shane Smiskol 0c28caa0fc [bot] Fingerprints: add missing FW versions from new users (#32477)
Export fingerprints
old-commit-hash: 09f2077f587e9c3abfb1cc1d9420dcb6d452938e
2024-05-19 10:39:29 -07:00
Shane Smiskol b3fc3f25ce 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
old-commit-hash: 220fcc16753ce87c8997275733f62bc385342a7e
2024-05-19 01:07:12 -07:00
Adeeb Shihadeh d0f0ee8435 define alert for actuatorsApiUnavailable
old-commit-hash: 075176f869088f9e2021aadc9e236edd8cac7d3e
2024-05-18 17:55:52 -07:00
Adeeb Shihadeh 72b6504595 Revert "ui: single-threaded CameraView (#32291)"
This reverts commit 6adb53abf4d483e70bbe36725588a05cf75681fb.

old-commit-hash: c9531b463a6cb4a2a56792046fd69f9041006d81
2024-05-18 16:34:03 -07:00
Shane Smiskol d7519e5dcc [bot] Fingerprints: add missing FW versions from new users (#32468)
Export fingerprints
old-commit-hash: 1a4e022d70610acbd74602f80d76876d94a4fdaa
2024-05-18 14:03:50 -07:00
ZwX1616 1f9bc952bf dmonitoringd: don't check for buttonEvents or vCruise change (#32454)
* drop check for carState.buttonEvents

* 100% people not use this

* huge oof

* ref comit

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 8e87655a128f6b2ebcc6fdcf639167d647c99fe0
2024-05-17 21:38:03 -07:00
cl0cks4fe 6d3a8c09e0 remove unittest dependency from test_ui (#32432)
old-commit-hash: 173d96644436c9c4e36b3adbc38acf03811dc4a5
2024-05-17 20:54:08 -07:00
Dean Lee 4bade99d62 ui: single-threaded CameraView (#32291)
single thread cameraview
old-commit-hash: dd6e2a400b1b9543fad0c3c4a78463abf756da6b
2024-05-17 20:18:41 -07:00
Adeeb Shihadeh eaa6fe2510 remove old valgrind replay test
old-commit-hash: e1a697fee521eedad2210d8e01d668e2bb020ace
2024-05-17 19:43:47 -07:00
Curtis Jiang fd02f44551 HKG: Add FW version for Canada Hyundai Tucson PHEV 2024 (#32440)
* Car port for Hyundai Tucson PHEV 2024

* Fix doc
old-commit-hash: 5cfaae771d02846c273797795a737ac22e312ec1
2024-05-17 13:17:24 -07:00
cl0cks4fe 639a634f7c Unittest to pytest (#32366)
* add pytest-asyncio

* switch common

* switch selfdrive

* switch system

* switch tools

* small fixes

* fix setUp and valgrind pytest

* switch to setup

* fix random

* switch mock

* switch test_lateral_limits

* revert test_ui

* fix poetry.lock

* add unittest to banned-api

* add inline ignores to remaining unittest imports

* revert test_models

* revert check_can_parser_performance

* one more skip

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dd9d5d4528ff0a61c7699abc1b63ba8fd282632f
2024-05-17 11:01:44 -07:00
eFini 1fc584aaa8 Mutilang: update CHS/CHT translation (#32455)
update translations for chinese
old-commit-hash: 1a60b63b7d9be96b890c7e59a77fd10504ab15ab
2024-05-17 09:17:22 -07:00
Shane Smiskol 693c53cafc events: reduce priority of resumeRequired (#32450)
CC
old-commit-hash: 42861f6683cf80b7ec0a1f05fc821e4cc5327962
2024-05-16 21:17:37 -07:00
Shane Smiskol 681f5c6a34 process replay: check missing services (#32452)
* add check to check

* don't forget to raise

* skip this segment
old-commit-hash: ac81467c5c2c7ca0f340ee8d2aff81e330eb803a
2024-05-16 21:11:55 -07:00
Shane Smiskol 77b1da0a45 Toyota: remove redundant cancel code (#32448)
saw no cases where this was non-zero while cruise_active was false
old-commit-hash: b17ec494b20245c821081a7be0651f655c005576
2024-05-16 16:13:12 -07:00
Shane Smiskol 860283c4cb test_car_interface: run CC once (#32449)
run once
old-commit-hash: 593ea504e7a9a23b81b9a03fe8a2dffddfe7c8ac
2024-05-16 15:41:20 -07:00
ZwX1616 2cb58bbe35 DM: improve e2e predictions (#32431)
* good but need to freeze quant weights

* pass ref

* pg

* update model reply
old-commit-hash: b8171a1e9cb1696377e33657052ee75655f771f9
2024-05-16 13:55:40 -07:00
Shotaro Watanabe 3913887f7d fix(ui): fix build error in onroad_home.cc without ENABLE_MAPS (#32441)
old-commit-hash: 288a3fcd8b2f5b8e62af7b29a58bfddebb82f69a
2024-05-16 11:10:22 -07:00
Shane Smiskol 785d92c474 Revert "card: move all car events (#32427)" (#32439)
* Revert "card: move all car events (#32427)"

This reverts commit e1918a6270257e96d68df3ac03e884603253c8e2.

* keep the event here

* oops

* Revert "oops"

This reverts commit ea99a2768fbeb7a6123dd755585157b530e7a2a1.

* Revert "keep the event here"

This reverts commit ec089b4e1afdf09b2e6b184de8f23584ef931601.
old-commit-hash: 407791113d10d2f9fea9b68c8313271fefa1e36e
2024-05-15 14:32:52 -07:00
Kirito3481 cdd1f2b109 Fix incorrect korean translation (#32436)
old-commit-hash: 6605743b48fedf934ecf998ea10855978e979ab4
2024-05-15 10:29:38 -07:00
Shane Smiskol 1a5533a8c3 [bot] Fingerprints: add missing FW versions from new users (#32438)
Export fingerprints
old-commit-hash: 1bf2d2e1f978103242a8629ba6fa3f6b5eb1d137
2024-05-15 10:28:28 -07:00
Shane Smiskol cd782c06d1 card: move all car events (#32427)
* move last event over

* fix
old-commit-hash: 8f46028bd4b71c619bac654d6f2a4f8006b7508d
2024-05-14 15:20:03 -07:00
Shane Smiskol f9dc18f418 Events: remove dependency (#32430)
* Revert "Events: use sorted container (#32395)"

This reverts commit 3c9c039ca3202649d7212ee259b1b82a65a92c4f.

* remove implicit dependency
old-commit-hash: e9bf36232bf587cacc1282837afbe82600c0977f
2024-05-14 15:19:02 -07:00
Shane Smiskol c3630f813a controlsd: use already initialized params (#32429)
old-commit-hash: 6f3cd143efdec89524e603a181f2a7cbf02e8588
2024-05-14 14:01:38 -07:00
Shane Smiskol 426ab7d7d8 Fix test_time_to_onroad (#32423)
* this star doesn't make sense

* only docs for now

* flip

* fix spotty test_time_to_onroad.py

* better

fix

fix

fix

fix

* already there -_-

* we can fp again
old-commit-hash: 46eda641773a1e00b54d4b2d58c64bed3480a24a
2024-05-13 18:56:15 -07:00
Shane Smiskol 97dc134a42 card: create pedal pressed event (#32417)
* card: create pedal pressed event (#32393)

* move pedalPressed to card

* rm

* needs to be a builder

* move these

* clean up

* reader later

* Update ref_commit

* moved to card
old-commit-hash: d0d44a51a0ff66c1b2da56b3d9864e10ecc2174d
2024-05-13 16:18:55 -07:00
Shane Smiskol 6c2c024855 Car docs: gate auto resume star on enable down to stop (#32421)
* this star doesn't make sense

* only docs for now

* flip
old-commit-hash: 82e70db47c06ee3c447e6bceebadbde5b5e92b2f
2024-05-13 16:18:29 -07:00
Shane Smiskol f7eaec0a4b Hyundai Kona: add min speed (#32420)
* add min speed for kona

* update docs
old-commit-hash: 06c581e202322f7d3a9e21cb59ebe57418e5abe9
2024-05-13 16:02:47 -07:00