Commit Graph

7234 Commits

Author SHA1 Message Date
Shane Smiskol fa9528e119 IsoTpParallelQuery: handle response pending (#24724)
* handle response pending

* match commit

* remove total timeout, just keep track of individual response timeouts

* fix

* add back total timeout

* this isn't reliable enough

* keep track of pending responses to print warning

* tx_addr is (addr, subaddr)

* debug

only query hyundai

import time

reponse pending

no cache

all cars

no timeout to test before

* Revert "debug"

This reverts commit abe9cfc1b668034d7fa5ca5cbe9efe8834db3e7b.

* always print pending

always debug

* Only debug

* Update selfdrive/car/isotp_parallel_query.py

* remove variable only for debugging
old-commit-hash: 30e1f282134f7693a451e783b1d2d8ee68a79c06
2022-06-07 17:49:07 -07:00
Jason Shuler f392d45f41 GM: interface cleanup (#24774)
* Move all defaults above models

* Remove reduntant/defaults

* make minEnableSpeed common

* Update selfdrive/car/gm/interface.py

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

Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: b95c449847da37809ab3cd9a582cd910a612a1cf
2022-06-07 17:23:08 -07:00
Shane Smiskol 8fd06495b8 Honda: rename Bosch harness to Bosch A
old-commit-hash: bdc05fd13cdbdb4879fbadf5d5262bd8236b3243
2022-06-07 17:18:03 -07:00
Shane Smiskol e3253d87fa PlotJuggler: add torque control layout (#24726)
* add torque control PJ layout

* less custom transformation

* Use curvature, less noisy

* remove that
old-commit-hash: 6a58dd808f3e168fe72129b09ca5f829a4c146db
2022-06-07 15:01:19 -07:00
Adeeb Shihadeh d25c537b8b UI: remove DM icon (#24771)
old-commit-hash: 4d836c6edd6e0f2639a3e2500794990da339eddc
2022-06-07 13:59:48 -07:00
Gijs Koning 2fabc9d509 Laikad: Use process for parsing orbits (#24769)
* Use Process instead of Thread to fetch orbits

* small refactor

* Cleanup
old-commit-hash: e7234e22b4d11cc8f349d02855df9b3414096c0d
2022-06-07 20:55:39 +02:00
ClockeNessMnstr 52a28d8938 update DH names + notes for MPC output curvatures (#24701)
* update names + notes for MPC outputs

"current_curvature" is not the correct description of what the MPC is outputting in it's curvature_ego state.
The MPC is integrating it's free variable, curvature_rate, such that curvature[0] is actually the desired_curvature before any delay.
inversely: the curvature_rate_desired is the desired rate of change to the setpoint and not the actual curvature rate. 

If we were to set the initial curvature = measured curvature in the MPC initiation these names would be correct. 
This was possibly how it was initially set up but the nomenclature here is now confusing.

* more notes

* match

* Clarify #1
old-commit-hash: b215d611b1adf5ea2b93e6628936f2e73539f34f
2022-06-07 09:41:03 -07:00
Gijs Koning 7bf243b61e Laikad: cleanup fetching orbits (#24759)
* Seperate prediction orbits from regular observation orbits and download them efficient

* Cleanup

* clean and update laika

* Fix test

* Fix test

* Fix checking pos fix

* space
old-commit-hash: 8d8055f00f11fcdf0a8a235de5218d9c2fd2f5ad
2022-06-07 03:25:58 -07:00
Lukas Petersson 4171e45e9c process replay: regen in parallel (#24628)
* regen in parallel

* prefixes

* clean regen

* clean output

* tqdm loc

* del swp file

* add routes back

* cleanup

* disable tqdm

* unique dirs

* unique dirs

* outdir in regen_all

* formatting when played from other dirs

* prefix dongle id

* local disable_tqdm

* formatting

* bug fix

* dont spam fakedata

* 16 char fake dongle ids

* formatting

* formatting

* more descriptive dongle

* fix azure path

* couple more fixes

* handle failures nicely

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 397da56c85d4d4932d25435dcb1d57f2cd2d8c4b
2022-06-06 14:21:12 -07:00
Jason Young 1f5667285b ui: fix prime ad storage duration (#24756)
fix ui prime ad storage duration
old-commit-hash: 7e5eec2e4fe826a79386ae89fb2ddfeb6e59f93b
2022-06-06 14:03:34 -07:00
Adeeb Shihadeh b249f40f0c move clocksd to system/ (#24761)
old-commit-hash: ca682b389d75f433d28063c8d774460df0c0fa83
2022-06-06 13:27:45 -07:00
Gijs Koning 33136c3f89 bump laika
old-commit-hash: 037862a7b7086bdfbb224ce0adc9786495f49e60
2022-06-06 12:51:25 +02:00
Gijs Koning 9771eebb62 Laikad: Fetch orbit data in thread (#24654)
* Add fetching orbits thread

* Use ephemeris type enum. Send list of std floats.
Speed up parsing orbit data by skipping redundant old data

* Remove Glonass from supported constellation for now

* Fix latest time msg

* Add small laika update

* Fix
old-commit-hash: 7df54792d8c04d842d44536723edb7b8370c47a1
2022-06-04 09:25:20 +02:00
Jason Young d22347a9c6 VW MQB: Add FW for 2019 Volkswagen Passat (#24753)
old-commit-hash: 2a2294662cbea2962a3da1ddcd7030918ed52dee
2022-06-03 23:59:55 -07:00
Shane Smiskol 41f9767370 FPv2: add ECU whitelisting support (#24730)
* reduce fw queries for hyundai

* no whitelisting yet

* formatting

* fix

* clean up test

* clean up variables, comments, error

* update error
old-commit-hash: 29a1bf5a4667de9de74e977956145132b2301fd7
2022-06-03 20:16:11 -07:00
Adeeb Shihadeh f21897ee14 AGNOS 5.1 (#24741)
old-commit-hash: bee5531816f0c951b8e36245a6c6c067b982e955
2022-06-03 19:38:34 -07:00
Shane Smiskol 19de8a2f9f bump panda (#24752)
old-commit-hash: 5254451724aa52235057c4db298063d329bd3275
2022-06-03 18:37:13 -07:00
Shane Smiskol 1a2bf8412c Car documentation: set steering torque star using car interface (#24709)
* Set good torque using torque controller tuning

* should be equal to

* save lateral accel to car params

* use maxLateralAccel

* always

* same convention

* nan will always evaluate to false

* The great good torque purge

* adjust default friction

* Add data for more cars

* adjust name

* Welcome back, guys. Only adjust good torque if maxLatAccel is set

* Update refs (1.7 is 1.7000001...)
old-commit-hash: c6bc03311c04bec31677170782d5f3e1f404c2a7
2022-06-03 17:41:20 -07:00
Adeeb Shihadeh 59a58cd15f UI: don't disable toggles onroad
old-commit-hash: d3af76842c82c3f5bc19be7623264c739b21c740
2022-06-03 14:34:16 -07:00
HaraldSchafer 08ad733229 Remove laneless toggle (#24738)
* Remove laneless toggle

* Update refs
old-commit-hash: 7f16e19f791d9f709b40e2ef9781b88eb930aa98
2022-06-03 14:04:14 -07:00
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: 0ee647df3ac159d387f3b6e5c27f1c4febe31bbf
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: 124f3f02d5c14048e5698353201950f89ce2b318
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: a2c6b30c982cc4b5ebea890ab7cdd937dea9b4fa
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: 64ceb645115060b3856ed4642cfdefadab32dcb5
2022-06-03 15:07:04 +02:00
Willem Melching 875961bb62 bump cereal
old-commit-hash: 069d708ad288ec1ff0cf830990ee3346a19f04dd
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: 3fbbb7f4b0c0cf7273f37e4abae409ec82f7dde5
2022-06-03 04:16:39 -07:00
Shane Smiskol f1f5924a71 update scons nodes
old-commit-hash: 058bbc356be30f7afbc72503ca98247f43d395ae
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: ad04585c35afdc885ca3c24c066e5801c25d2bc7
2022-06-03 03:12:31 -07:00
Willem Melching 9eb874d641 bump cereal
old-commit-hash: c642ef878b5350f7f808887176c571a181060e74
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: 40deea7d7bdd2176f897c203657e45bfd7fd1fcc
2022-06-02 22:06:01 -07:00
Adeeb Shihadeh 2163c6bf2d handle bad VIN (#24712)
old-commit-hash: 36fdf50f98b59da2aeb32a9000113ca3cc4a6616
2022-06-02 22:01:37 -07:00
Adeeb Shihadeh 3df7552b7b modeld: cleaner exit from onnx runner
old-commit-hash: 921a411da5f385d39f8d6e1975eb34edbcf7e9d6
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: dc4d4f875b173b92847149918af7f1c63d78701f
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: 50a8b3058037351519c8bfa558527d225f0d97c6
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: e5b189416d756c1b4f364c6f01b30d97b62710a5
2022-06-02 17:23:05 -07:00
Adeeb Shihadeh 127f5858ae AGNOS 5 (#24692)
* AGNOS 5

* some more stuff
old-commit-hash: 38cd340922def6c4febbca21d51076c7422e4695
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: afd16b2ade7723d87a15fa6c5f5de59734897f51
2022-06-02 17:02:25 -07:00
HaraldSchafer edb35600b7 Update README.md
old-commit-hash: c2b334acb5fb0703eebf7dd3afb3faaf0fe91de9
2022-06-02 16:45:11 -07:00
Shane Smiskol 6e6f8422fc process replay: fix tested_cars
old-commit-hash: 6a21cc83ffdae067550542e8dad45ea0cc2fe2b4
2022-06-02 14:20:19 -07:00
HaraldSchafer 248856d540 Update README.md
old-commit-hash: 5b0f660a0ebc0511c4c42b3f9f4231e238e627de
2022-06-02 14:19:29 -07:00
HaraldSchafer 4322483d7f Modeld readme replaced with driving.h
old-commit-hash: f07f7cbc8e505da3b95ed972636539370933e4ab
2022-06-02 14:19:19 -07:00
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