Commit Graph

7214 Commits

Author SHA1 Message Date
Adeeb Shihadeh 081fd73d45 fix camera power draw test (#24739)
* fix camera power draw test

* update modeld

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 0ee647df3a
2022-06-03 14:03:49 -07:00
Shane Smiskol f9772e624b FPv2: log query request and response address (#24733)
* log fw query response offset

* one line still

* log request bytes as well

* bump cereal

* prettier order

* bump cereal

* I wonder if the radar sends a response pending...

debug

dont cache

fix

debug

* Revert "I wonder if the radar sends a response pending..."

This reverts commit 12a9552c27ac427c161c27f916fb4fd1a8e4b44c.

* log addr too

* bump cereal
old-commit-hash: 124f3f02d5
2022-06-03 12:05:13 -07:00
HaraldSchafer 7c4645f227 Fix onnx model replay (#24702)
* No more C2

* Add test

* Various fixups

* Use ONNXCPU

* rm prints

* LFS pull

* Use sim docker

* Try sim docker again

* Print counter

* Make sure it can fail

* Fails correctly

* comments

* Add more install to opencl base docker

* vim not needed in base
old-commit-hash: a2c6b30c98
2022-06-03 10:43:09 -07:00
Willem Melching 7b3faad3ee navd: broadcast sped limit (#24681)
* populate speedLimit field in navInstruction

* show in ui

* ensure coordinate is behind you

* handle unknown

* handle here

* a bit prettier

* US design

* no ui changes in this PR

* parse sign
old-commit-hash: 64ceb64511
2022-06-03 15:07:04 +02:00
Willem Melching 875961bb62 bump cereal
old-commit-hash: 069d708ad2
2022-06-03 14:32:37 +02:00
Shane Smiskol c0c0250077 Common interface attribute function (#24731)
* replace get_attr_from_cars with get_interface_attr

* and not combining the brands

* explicit check

* minimize diff

* values
old-commit-hash: 3fbbb7f4b0
2022-06-03 04:16:39 -07:00
Shane Smiskol f1f5924a71 update scons nodes
old-commit-hash: 058bbc356b
2022-06-03 03:17:33 -07:00
Gijs Koning 22e1157a5a Fix test_laikad in master (#24734)
* Use Livelocationkalman measurement struct

* Revert laika repo and fix time gap
old-commit-hash: ad04585c35
2022-06-03 03:12:31 -07:00
Willem Melching 9eb874d641 bump cereal
old-commit-hash: c642ef878b
2022-06-03 11:24:48 +02:00
Shane Smiskol 3ba40da00a Honda: fix enabling before PCM (#24715)
* Don't enable for pcmCruise Honda

* make it a no entry as well

* do in another PR
old-commit-hash: 40deea7d7b
2022-06-02 22:06:01 -07:00
Adeeb Shihadeh 2163c6bf2d handle bad VIN (#24712)
old-commit-hash: 36fdf50f98
2022-06-02 22:01:37 -07:00
Adeeb Shihadeh 3df7552b7b modeld: cleaner exit from onnx runner
old-commit-hash: 921a411da5
2022-06-02 20:16:21 -07:00
HaraldSchafer cf0564382a CL in docker (#24718)
* Move CL to base docker

* Different docker for cl

* add cl base docker

* add to tool

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dc4d4f875b
2022-06-02 18:26:12 -07:00
Lukas Petersson 35f277516e process replay: upload-only bug (#24722)
dont look for lr with upload only
old-commit-hash: 50a8b30580
2022-06-02 17:25:44 -07:00
Shane Smiskol 5f1990aa05 test_models: support for running on any route (#24002)
* run test_models on route

* clean up a bit

clean up a bit

clean up a bit

* remove

remove

* make route positional

* fixes from merge

* not working as I expected

* finally working, easiest way seems to make a new subclass dynamically

* bring back routes

* remove comments

* revert skiptest

* fix subclass name

* car first

* this should be here...

* this should work

* comment

* pytest doesn't support dynamically loading with load_tests

* minimize test_models.py diff, and make new file for running on a route

* fix static analysis

* remove print

* clean up a tiny bit

* rename and make required

* auto detect car fingerprint if not given

* move to location that makes more sense

* Add ci argument for running route from routes.py
old-commit-hash: e5b189416d
2022-06-02 17:23:05 -07:00
Adeeb Shihadeh 127f5858ae AGNOS 5 (#24692)
* AGNOS 5

* some more stuff
old-commit-hash: 38cd340922
2022-06-02 17:09:09 -07:00
Adeeb Shihadeh 3dd10e51e1 Create system/ for generic services (#24717)
* Create system/ for generic services

* logcatd joins the party

* fix those up
old-commit-hash: afd16b2ade
2022-06-02 17:02:25 -07:00
HaraldSchafer edb35600b7 Update README.md
old-commit-hash: c2b334acb5
2022-06-02 16:45:11 -07:00
Shane Smiskol 6e6f8422fc process replay: fix tested_cars
old-commit-hash: 6a21cc83ff
2022-06-02 14:20:19 -07:00
HaraldSchafer 248856d540 Update README.md
old-commit-hash: 5b0f660a0e
2022-06-02 14:19:29 -07:00
HaraldSchafer 4322483d7f Modeld readme replaced with driving.h
old-commit-hash: f07f7cbc8e
2022-06-02 14:19:19 -07:00
Shane Smiskol 490a836dd6 process replay: fix updating refs (#24716)
fix updating refs
old-commit-hash: 90af436a12
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: 302b0ea9bb
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: f49a9c9fd2
2022-06-02 15:20:51 +02:00
Willem Melching 86ec883c1a correctly parse UDS VIN response for Honda Bosch (#24710)
old-commit-hash: dc2172b55e
2022-06-02 12:20:56 +02:00
Jason Young e683db37b8 thermald: consider pmic in component temp management (#24708)
old-commit-hash: c8c21baf50
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: dd10a83708
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: 86f73a507e
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: 3fb22c0289
2022-06-01 21:46:45 -07:00
Adeeb Shihadeh 11b41511c9 remove unused visionimg
old-commit-hash: c677c6b164
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: b1177a325a
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: 7d2ba9b0a4
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: eed6803ccc
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: ea5b8cdfb1
2022-06-01 17:18:28 +02:00
Willem Melching 82f9f302ed navd: dont crash on unregistered device (#24699)
old-commit-hash: 2b9f8662cc
2022-06-01 14:57:58 +02:00
Willem Melching a8dfd19b76 navd: handle exceptions from requests (#24697)
old-commit-hash: 338a3babd4
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: 80be66484f
2022-05-31 22:10:11 -07:00
Adeeb Shihadeh 415487ca45 add some release notes
old-commit-hash: 8be28b777a
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: dde05d5345
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: 6bd14b8698
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: b5aed2bf67
2022-05-30 15:25:07 +02:00
Willem Melching fa6d99a286 bump cereal
old-commit-hash: 30e70baf13
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: e72d6b5689
2022-05-30 15:15:51 +02:00
Willem Melching e45155f592 sim no encoderd, move to BLOCK env variable
old-commit-hash: 85b07bf3e8
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: 44bffc1b3b
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: 8eb9e8fc1a
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: 5c5bb0be11
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: fb4b4773a5
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: 7115f1f7c8
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: 2c2e0ae8a7
2022-05-27 15:04:06 -07:00