Commit Graph

7193 Commits

Author SHA1 Message Date
Shane Smiskol 490a836dd6 process replay: fix updating refs (#24716)
fix updating refs
old-commit-hash: 90af436a121164a51da9fa48d093c29f738adf6a
2022-06-02 13:49:21 -07:00
Adeeb Shihadeh 393ce7cfeb thermald: add back panda disconnect handling (#24713)
* thermald: add back panda disconnect handling

* cleanup
old-commit-hash: 302b0ea9bbac0fec939919b0d09b604569305be7
2022-06-02 13:39:41 -07:00
Willem Melching 753045c73d less TICI when not needed (#24698)
* less TICI when not needed

* fix process replay

* move reading voltages into hw abstraction layer

* Update selfdrive/hardware/tici/hardware.h

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

* Update selfdrive/hardware/hw.h

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

* Update selfdrive/hardware/base.h

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

* rename init function

* Update selfdrive/athena/athenad.py

Co-authored-by: Robbe Derks <robbe.derks@gmail.com>

* Update selfdrive/boardd/boardd.cc

* Apply suggestions from code review

* Update selfdrive/thermald/thermald.py

* update ref

* fix alert width if all cameras are bad

* add ecam to test_loggerd

* bump cereal

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
old-commit-hash: f49a9c9fd2100a4f1401a93d88064ddbbbd935c1
2022-06-02 15:20:51 +02:00
Willem Melching 86ec883c1a correctly parse UDS VIN response for Honda Bosch (#24710)
old-commit-hash: dc2172b55e1e848476eceb014d8e3eea82c7eb5a
2022-06-02 12:20:56 +02:00
Jason Young e683db37b8 thermald: consider pmic in component temp management (#24708)
old-commit-hash: c8c21baf50865b0db2cc9345901bb98904cfbaaf
2022-06-02 11:58:47 +02:00
Shane Smiskol 7a2d0b64eb Hyundai longitudinal: handle mid-press button change (#24674)
* send additional button event for previous if we switch buttons mid-press

* add comment

* remove

* comment
old-commit-hash: dd10a83708a17b04fb9b217c7fee4234b8ed7dfe
2022-06-02 01:27:34 -07:00
Lukas Petersson a16a20005b process replay: logreader as bytes (#24610)
* willem's changes

* classmethod for bytes

* submodules

* submodules

* Update tools/lib/logreader.py

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

* add back files

* little cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 86f73a507e2dba56bc8c3a1e753818147fb0eb0f
2022-06-01 22:02:42 -07:00
ClockeNessMnstr eeccd04c11 process replay: only download used logs (#24661)
* only download wanted logs

* cleanup

* cache as an option

* cleanup

* Readme

* Revert "cache as an option"

This reverts commit 060ed4ade548696505e3185fc7d20f1897072ded.

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 3fb22c0289d1c108aa0a5eb2064e7d87cc997bb9
2022-06-01 21:46:45 -07:00
Adeeb Shihadeh 11b41511c9 remove unused visionimg
old-commit-hash: c677c6b164fc8e642ca75809213eca0678cf86ac
2022-06-01 14:42:32 -07:00
Jason Wen 055bce8ebd Hyundai: Add missing engine and transmission FW for 2022 Sonata (#24693)
* Hyundai: Add FW for 2022 Sonata

* fix duplicate

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: b1177a325a1c7cf604c174b60b5ea2abaab86537
2022-06-01 13:54:15 -07:00
Adeeb Shihadeh 8d3dbf7312 Add UDS VIN query (#24311)
* Switch to UDS VIN query

* try both

* fall back to obd
old-commit-hash: 7d2ba9b0a43d6c7cfe463968b9fc0c2b6557b00b
2022-06-01 13:29:22 -07:00
Shane Smiskol ddf2d5b63c Button-enable cars: common functions for button events (#24678)
* function for creating button events

* fix

* one line

* alphabetical

alphabetical

* only needed once

* common function for enable events

* add to list

* extend

* fixes

* add type hints

* flip around
old-commit-hash: eed6803ccc55ecbfab4bd52a7ea62c9942243aea
2022-06-01 12:03:34 -07:00
George Hotz 2a6ffaf71d nv12: encoderd avoids a full frame copy (#24519)
* rgb to nv12

* nv12 works (w memcpy)

* correct now

* no copy

* fix nv12 with fast debayer

* reverts of unused stuff

* ui use nv12

* comment out thumbnails for now

* rebase fix

* dm read nv12

* model read nv12

* fix ffmpeg encoder

* thumbnails from nv12

* replay to nv12

* python framereader support nv12

* remove hardcoded frame/buffer sizes

* fix build

* ffmpeg encoder fix buffers

* small cleanup

* reduce power usage test

* fix cpu usage test

* fix snapshot

* fix loggerd test

* bump cereal

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Joost Wooning <jwooning@gmail.com>
old-commit-hash: ea5b8cdfb10686c972d8d2bc1778e6e6567e45a9
2022-06-01 17:18:28 +02:00
Willem Melching 82f9f302ed navd: dont crash on unregistered device (#24699)
old-commit-hash: 2b9f8662ccce470a145a12d6d3b8d998a4f77b9f
2022-06-01 14:57:58 +02:00
Willem Melching a8dfd19b76 navd: handle exceptions from requests (#24697)
old-commit-hash: 338a3babd48ee7cab49791950c837951dd3084df
2022-06-01 11:29:05 +02:00
Shane Smiskol f09e5a1d10 fingerprinting: bump CAN fingerprinting time and drain socket (#24694)
* add debugging script

* debug

* remove

* add comment

* timestamp CAN fingerprinting (to get time needed to wait for radar)

* comment

* need this to log

* just in case, log first can packet logMonoTime

* clean up

* clean up

* bump fingerprint time to 250ms

bump fingerprint time to 250ms

* comment
old-commit-hash: 80be66484f4af84bd315f3e64aec22c2f74eb2fc
2022-05-31 22:10:11 -07:00
Adeeb Shihadeh 415487ca45 add some release notes
old-commit-hash: 8be28b777ad5c0c7a4da6a021787e3bb4ca0f898
2022-05-31 14:04:10 -07:00
Erich Moraga 6746efe1a6 Toyota: Add missing HIGHLANDER_TSS2 FW versions (#24684)
`@HEADMAN#4924` 2022 Highlander Platinum (ICE)  DongleID/route 427976ba75953bf3|2022-05-30--16-28-27
old-commit-hash: dde05d53450f938ed62c32f7151664b9ccf67924
2022-05-31 13:47:08 -07:00
AlexandreSato 09e3a80f29 Toyota: add missing engine FW version for 2022 Corolla (#24682)
From dongle id 6444d42c9eba0145 | Test route: 6444d42c9eba0145|2022-05-29--10-44-07--0 | User: geraldoy#7013
old-commit-hash: 6bd14b86982f9a2b191b9bd5d4b82035d64d64bc
2022-05-31 10:38:10 -07:00
Gijs Koning 6a53db981b Simulator: Speed up process by removing second camera (#24679)
* simulator: support running wide camera only

* proper frame id

* use param name that makes more sense

* do some cleanup

* Update tools/sim/bridge.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: b5aed2bf6781cd4d74d28f6f44d24737ec08f0db
2022-05-30 15:25:07 +02:00
Willem Melching fa6d99a286 bump cereal
old-commit-hash: 30e70baf135b405e0a53a3e420cb46bb6a6b602a
2022-05-30 15:20:59 +02:00
Willem Melching 2c343d2fe3 navd: rewrite in python (#24621)
* navd: start python rewrite

* use enum

* send empty instruction packet

* parse banner

* cleanup

* switch to coordinate class

* add segment transition logic

* add recompute logic

* cleanup old navd code

* split out helpers

* cleanup release files

* fix typo

* fix docs

* add typing to helpers

* small fixes

* move outside of ui

* get last pos from param

* add ui restart detection

* check running

* send route

* set navInstruction to invalid with no active route

* whitespace

* do not overwrite response and use ratekeeper

* reuse params object

* remove navd exception
old-commit-hash: e72d6b5689dd95f5fd7a6558c72c2e02b37f8b12
2022-05-30 15:15:51 +02:00
Willem Melching e45155f592 sim no encoderd, move to BLOCK env variable
old-commit-hash: 85b07bf3e878d3e430b5a857b86065588fc2d1fb
2022-05-30 11:49:15 +02:00
Gijs Koning 3947af88e8 Remove encoderd service from PC. Fixes Sim (#24676)
* Disable encoderd completely in sim
old-commit-hash: 44bffc1b3b2c8a3f661d8ab28ee8765a1bc2219c
2022-05-30 02:36:11 -07:00
Shane Smiskol 2dce8e97c8 Toyota: add missing engine FW version for 2022 RAV4 Hybrid (#24677)
add missing fw version
old-commit-hash: 8eb9e8fc1a94013a60b0e69f7817b1c491cb1a33
2022-05-29 20:59:58 -07:00
Shane Smiskol b2196a160f Hyundai longitudinal: display lead on HUD (#24667)
* use leadVisible

* add comment
old-commit-hash: 5c5bb0be1197408ade793b49d731571ba831283a
2022-05-27 18:12:18 -07:00
Shane Smiskol a11084a6c6 UI: draw map with uiUpdate signal (#24632)
* draw map with same uiUpdate signal as onroad window

* fix

* fix

* fix

* test

* test

* clean up

* clean up

* clean up

* draw instantly when dragging

* self explanatory

* remove line

* fix spacing

* see if we call ui'c sm->update before mapwindow

* Revert "see if we call ui'c sm->update before mapwindow"

This reverts commit e5dcd70013750b871894c276e4d15d55b0c92e97.

* sort includes
old-commit-hash: fb4b4773a58a62783dd48e6058be5a0da6bb1fab
2022-05-27 15:35:09 -07:00
ntegan1 44ae448563 TSS-P Corolla: use torque lateral control (#24291)
use torque controller for tssp corolla

Co-authored-by: ntegan <nick.egan.gg>
old-commit-hash: 7115f1f7c8e43a4e97fcb7bfb51f84b45eaedc6f
2022-05-27 15:11:16 -07:00
BoBowchan dd31e31181 HKG: add missing fwdRadar for Kia Niro EV 2022 (#24665)
Co-authored-by: Bohan Li <bohan.li@yellowbrick.com>
old-commit-hash: 2c2e0ae8a770e2cb648111624a86f0e307d52bb3
2022-05-27 15:04:06 -07:00
ctidder2 aee5c1579f Toyota: Add missing Highlander Hybrid TSS2 fwdRadar and fwdCamera (#24664)
old-commit-hash: 1c3446a0dc5927a64000bc5610547cb485f569c3
2022-05-27 15:02:20 -07:00
HaraldSchafer f5a6a6dc77 Tssp prius torque control (#24669)
* use llk

* use steering sensor at low speed stil

* Try more simple

* rm prius tune

* updated ref
old-commit-hash: d708a134bdff9db5cc65491dd9129a709e30ad34
2022-05-27 10:21:02 -07:00
Adeeb Shihadeh b9453b2280 tici: always configure modem as data-centric (#24663)
According to the Quectel docs, this is how it should be configured
for both AT&T and T-Mobile (and likely any other carriers).
old-commit-hash: 5f00c6eca7b91bec2f7444a859ed78dedd163222
2022-05-26 17:13:43 -07:00
Adeeb Shihadeh 402a0800dd athena: remove redirect detection for old prime (#24662)
This worked on old magenta, but doesn't work on new magenta
or blue prime.
old-commit-hash: e38b93fc31f3ff89a3806675bc090c2149434cf7
2022-05-26 16:09:22 -07:00
Shane Smiskol 998d5ae1a1 test_fw_query_on_routes: warn on no CarParams (#24655)
add warning for no carparams
old-commit-hash: e32a735a58706d9be732748b555a6dbeee00511e
2022-05-26 13:59:19 -07:00
Lukas Petersson e7801f3b3b latency logger: add offset to visualize overlap (#24644)
* plot design

* readme

* y label

* readme img

* bigger gaps

* readme figs

* denser lines

* denser lines

* offset flag

* readme

* cleanup

* Update tools/latencylogger/latency_logger.py

* Update tools/latencylogger/latency_logger.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: cc4107fd1f3bef5b766b8d8d671e0a9cfc951833
2022-05-26 13:41:08 -07:00
Shane Smiskol 222d8818d7 process replay: fix updating refs after regen (#24656)
* fix updating refs after regen

* match spacing

* same as before

* fix

* minimize diff

* update

* not used
old-commit-hash: dff70876c3a41e66f218b3ecd9849034482139c4
2022-05-26 00:39:33 -07:00
Adeeb Shihadeh 3e8625e50b visionipc python shim (#24660)
old-commit-hash: 32a9ccfc37d97e6692435153ac9f0fe72feb1e9f
2022-05-25 20:49:56 -07:00
Comma Device 4f34fdf649 update modem restart script
old-commit-hash: 13b2c551c9669a01f49e678797e6ab3ae5486bec
2022-05-25 16:37:56 -07:00
Jason Young 789c9dbefa VW MQB: Add FW for 2015 Volkswagen Passat (#24653)
old-commit-hash: f414f7ff4e6b5017e42f6e7ac5286c02b99e51cb
2022-05-25 11:57:26 -07:00
Willem Melching 7d5546452c ui.py: use YUV stream
old-commit-hash: 2bdb2cb40af1bd159e165f9f475a2dc79f9d3c42
2022-05-25 17:37:21 +02:00
Gijs Koning 807803afbe Remove scipy usage from laikad (#24652)
Remove scipy
old-commit-hash: 65056b77c22334b4be727151732bf2a76f9b780d
2022-05-25 17:15:22 +02:00
Gijs Koning 8976820211 Add ephemeris parsing to laikad (#24642)
* Always send valid messages

* Use ephemeris and move astrodog in laikad

* improve test

* Always correct measurements

* Cleanup

* Fix test

* Update laika
old-commit-hash: a51aaaf1970fa864a8a2de7c59abd1db277c123a
2022-05-25 06:26:58 -07:00
Lukas Petersson afbdbc7c39 process replay: fix regen routes with migration (#24651)
* hacks to make routes work

* clean up

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 7d06a366f7b6d7a20dcb5aeeb48dfa5061a7e54a
2022-05-24 20:00:55 -07:00
HaraldSchafer 39886246c9 Rerevert torque control (#24649)
* Revert "Revert torque control (#24565)"

This reverts commit 93f434d047a92366c4ccefeece86fe101ed98d02.

* Move tune out of car specific stuff

* Update ref commit
old-commit-hash: d9289721503976cd99ac90216c502a841988c1a6
2022-05-24 17:52:33 -07:00
Shane Smiskol 8d83408ace UI: draw camera on same frame from modelV2 (#24335)
* draw camera on same frame from modelV2

* fix reversing

* optimze

* sleep shorter

* heavy debugging

* clean up

* fix ui hang

* try this

* more generic implementation

* add unused flag back

* draw latest frames when camerad is coming up with no modeld

* only get modelV2 once

* fix drawing

* conflate, reduce buffer, and remove special case when starting

* make tests pass

* remove comments

* frame_id is a uint32_t

* not sure why passing to cameraview causes overflow

* ternary, not too complicated

* change to size

* rename to frame

* use unique_ptr

* Revert "use unique_ptr"

This reverts commit 955842d9511a26468d4deedd1807f096540cb40c.

* Assert buffer size

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

* use one deque with pairs and uint32_t

* formatting

* frame offset

* Revert "frame offset"

This reverts commit a2cff8a2d57a02f314d9f6adb7221b193a150e4c.

* use array

* add prints

* Revert "add prints"

This reverts commit d6978746e5c316fb2d5a619091c9aaf849c31967.

* clean up

* this handles all cases

* we want to clip

* fixes going backwards when replay or modeld lags multiple frames, then skips multiple frames

fixes going backwards when replay or modeld lags multiple frames, then skips multiple frames

* fix rare case where camera is behind model

simpler comment

* draw latest frames if we start with no model, then hang on current frame until model catches up

fix

* store if it's updated

* accurate comment

* reset to latest on connect and showevent

* better order

* use quint32 for sending signal function

* use empty

* draft

* kinda works

* works

* one line

* debug

* clean up

* revert this

* to preserve behavior, think we need to poll these

* revert

* no timeout when modeld is not alive

* Update selfdrive/ui/qt/onroad.cc

* changes from other PR

* see if we're drawing dup model or camera frames

* looks good, just need to clean up

* debug

* clean up

* clean up

* revert these changes

* fix

* pretty simple, test on device

* clean up

* revert this

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: c10a2ef2e40a49b527ab49b8b7fd4e924b847a2d
2022-05-24 17:08:06 -07:00
Lukas Petersson 81af5dacdf process replay: update regen body route (#24648)
update to a preserved route
old-commit-hash: 3e975eb3aa02636aaf734f8268f23a3ba9391e04
2022-05-24 17:07:10 -07:00
Lee Jong Mun 12a2565ebb Hyundai: small car state cleanup (#24643)
* fix typo

* Update selfdrive/car/hyundai/carstate.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 4c7cb028b1ae05ea20e5fc7ca3a2bda96fcdf9f4
2022-05-24 15:37:02 -07:00
Erich Moraga 5c76a32790 Add missing LEXUS_RXH_TSS2 engine & ESP f/w (#24647)
`AiNzo0alGowN_#8859` 2020 RX450 HL  DongleID/route f6e6302176e041de|2022-05-24--13-48-18
old-commit-hash: 1d41d3e36173dfe6206d62430b48adc26d638546
2022-05-24 15:17:31 -07:00
Lukas Petersson 2e7804266a CI: run process replay in parallel (#24646)
* CI in parallel

* cache key
old-commit-hash: 28dd1a9124559bd590afc53edce4adcb75297ea8
2022-05-24 12:47:29 -07:00
Lukas Petersson bcc6ca0cf5 process replay: prefix setup in helper (#24636)
* prefix setup in helper

* context manager

* name change + none default

* skip checking prefix

* type hints + unset env
old-commit-hash: d6fb78b9a3e97f982d7aca0c635534732e939972
2022-05-24 12:33:59 -07:00