Commit Graph

7153 Commits

Author SHA1 Message Date
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
stephenkwo 97bb8e2702 Docs: add video link for 2022 Toyota RAV4 Hybrid (#24622)
Docs: add video link for 2022 Toyota RAV4 Hybrid

CAR.RAV4H_TSS2_2022: ToyotaCarInfo("Toyota RAV4 Hybrid 2022", video_link="https://youtu.be/U0nH9cnrFB0"),
old-commit-hash: 9a98a0853a825c0eff03ab6d59948b354c2ff7e9
2022-05-24 10:40:44 -07:00
George Hotz 3ece7be044 camerad: pixclk 88mhz but frame time the same (#24587)
* pixclk 88mhz but frame time the same

* scale integration time

* 22.8 ms

* 15.18 ms

* fix exposure

* fix glitching, 18.9 ms

* set both to min

* faster pixclk = more power

* should pass CI

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 7c74ab8992ef32277deaf02312a9bbf272ba581a
2022-05-24 09:54:46 -07:00
HaraldSchafer 55085a12db New model: better laneless (#24605)
* Fix ping pong

* Fix hugging: e6fd3a62-aa86-46d1-a414-19137ed1babc/800

* Remove lateral toggle

* a6da6265-1952-48dd-986b-2b5996dd2642/950

* Model replay commit

* Revert "Remove lateral toggle"

This reverts commit 69e57eb7e1a72e4bad5e12bcfded6ff431a21a0e.
old-commit-hash: 7da48ebdba5e3cf4c0b8078c934bee9a199f0280
2022-05-24 09:11:31 -07:00
Adeeb Shihadeh e5f94df332 latency logger: improve plot style
old-commit-hash: 3d74b5429da5c0b2c4c61ee0e32222512274a8df
2022-05-23 20:57:14 -07:00
Adeeb Shihadeh 46ff882add Kia EV6 (#24485)
* ev6 squash

* test route

* cleanup

* remove those

* resume spam

* setme

* more reliable button pressing

* new steer signals

* for now

* update docs
old-commit-hash: 53a134f1c35502729eb758c8ebb18f59f9dacde5
2022-05-23 19:16:17 -07:00
Adeeb Shihadeh ac51e19f2c bump version to 0.8.15
old-commit-hash: 26d8cdfd3d6fecb204c7396c57ff3cf5a837f358
2022-05-23 19:05:00 -07:00
Adeeb Shihadeh 29e2b3f757 controlsd: ensure all system malfunction events have the right types (#24635)
old-commit-hash: 71901c94dbbaa2f9f156a80c14cc7ea65219fc7c
2022-05-23 17:46:46 -07:00
Adeeb Shihadeh 00f7f96308 little tools fix ups (#24629)
old-commit-hash: b8a32bbc461fea1f15ef7db8021f1aa8f85f7df7
2022-05-23 16:10:36 -07:00
Shane Smiskol 0f85c8a19c CarInfo: Add test for missing platform info (#24607)
* Add test for missing car info

* Make optional
old-commit-hash: b73d7cf3a5928696fe432d57552af324b32714d8
2022-05-23 14:22:10 -07:00
Adeeb Shihadeh 8456b0e79c uploader: increase max uncompressed qlog size to 100MB
old-commit-hash: eca265e07b512831d473cd1cf6d6b3dea5a03327
2022-05-23 13:43:14 -07:00
Adeeb Shihadeh ce9ebe0fdc bump that up a bit
old-commit-hash: b24f0dd8ced85f75a74b821c27f891a4fb540283
2022-05-23 13:41:46 -07:00
Lukas Petersson 0bb766ea3a Latency logger: binary search for frame ID (#24586)
binary search for frame id
old-commit-hash: 8fbcc49ee3a4d87823c02c1240c4b90e0e82403f
2022-05-23 13:02:23 -07:00
Lukas Petersson c74b2edc8d latency logger: update demo route (#24608)
* handle no segment

* dont handle no route
old-commit-hash: 522b67f16df9947fb9f4704a55806bac80a1f3d3
2022-05-23 12:48:11 -07:00
Willem Melching f7e2813438 Small fixes for macOS build (#24620)
* Small fixes for macOS build

* remove gpu_libs
old-commit-hash: 1cc652602f008122cf82171f7705522d3e2457dd
2022-05-23 13:46:48 +02:00
Cameron Clough d625ee361a honda bosch: typo affecting longitudinal limits clip (#24603)
* fix typo?

* another typo

* Revert "another typo"

This reverts commit 45cd9bf2e89d2e0af727b502e5a7881eb52c23ee.
old-commit-hash: 779bfbc63e10c758d2a8fa54e5db3f372dd71b79
2022-05-23 13:13:26 +02:00
Jake Lynn 7933015668 fixed CarParams write in replay (#24613)
* fixed CarParams write in replay

* need to capture temporary object

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: dc1a7bf082bd38a0f0c6ca9a708ac10562048357
2022-05-22 04:30:13 -07:00
Chester Jungseok Roh 861bbaa62a Genesis: add FW versions for G70 2020 Korean edition (#24543)
* GENESIS_G70_2020 Korean edition added

* remove newline

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 6965e03c0a1167beecd0732406902078759d9e3a
2022-05-20 20:28:23 -07:00
luuuuucas 9bf6b153ff Toyota: add missing esp FW version for 2022 Toyota Corolla (#24598)
add corolla TSS2 esp

Co-authored-by: Lucas Pharattanavong <lucas@Lucass-MacBook-Air.local>
old-commit-hash: a3ed10b907f2ec651c223d04a9df20836e845a97
2022-05-20 20:04:28 -07:00
Shane Smiskol 7b0bc2c163 GM: Revert noisy brake pressed signal (#24612)
* Revert "GM: Fix noisy brake pressed (#23712)"

This reverts commit 2cd30c56d9e591d547ebf16292dd6b75aeee9fdd.

* keep this

* same check, but don't clip CS.brake

* bump panda

* bump panda to master
old-commit-hash: 1b114464a94aadf4cb10494c53c610457be06d4c
2022-05-20 19:59:15 -07:00
Shane Smiskol cb11e4b43b SubMaster: support for polling in C++ (#24602)
* poll when sm.update isn't 0

* bump cereal

* poll modelV2 in UI

* fix driverview

* need to update here

* empty list means poll all

revert

* Revert "poll modelV2 in UI"

This reverts commit 82aac96a1ffc64eb79b07817451b76e6924a9812.

* Revert "fix driverview"

This reverts commit 074ee10f177cf7c99f8201a85904e01d40adbe6d.

* poll all
old-commit-hash: e6da217813ecc58bedd3f92d1c905e13409ea79a
2022-05-20 15:00:28 -07:00
HaraldSchafer 51165e5df5 Latcontrol torque: integrator need not be reset (#24606)
slow integrators need not be reset
old-commit-hash: 2181bbca71d9d9c8bfe7a6b2bb26241a84138607
2022-05-20 13:50:47 -07:00
Adeeb Shihadeh 18a2f8dfed affine aux panda IRQ to boardd core (#24600)
old-commit-hash: 4ef94a436fa266e1d0fcd93126f2826128512e79
2022-05-20 10:16:56 -07:00
Gijs Koning e72a8d9330 Add gnss kalman filter to laikad (#24578)
* Add gnss kalman filter to laikad

* Fix analysis

* Fix analysis

* Update laika

* Refactor a bit

* cleanup, improve unit test

* Also commit test

* fix

* Always return messages. Use Measurement struct that contains std and valid keys

* Push cereal

* Change prints to cloudlog

* Always send valid messages

* Only send gnssMeasurement msg when measurementReport type
old-commit-hash: ef97329c0e825d477577bf27cbaf772753f077ca
2022-05-20 03:21:17 -07:00
George Hotz 109916df80 loggerd: Fix loggerd encode packet drops (#24599)
* hmm, try this

* hmm, try this

* rewrite handle_encoder_msg

* fix new logic

* add comments and an assert

* handle startup condition better

* handle restarts of encoderd

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 0000ad2ac0996075481841221e9bcc842f2812d7
2022-05-20 00:02:50 -07:00
Adeeb Shihadeh 3abe307374 encoder test speedup (#24601)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: d87f30ea069a4bbfc20c8caa32e9fdf89a498ed5
2022-05-19 22:33:17 -07:00
Adeeb Shihadeh 9732d29a86 update release notes
old-commit-hash: 238faf4810a8de5492ffb419466c08711afcfd59
2022-05-19 21:57:11 -07:00
Adeeb Shihadeh 3f445fbaff bump panda
old-commit-hash: fa901fd88b0c593367c88e3a5c34cf4706c30e3e
2022-05-19 16:01:50 -07:00
Jason Young 855eafd758 VW MQB: Cleanup, add FW for 2022 Volkswagen Taos (#24596)
* null-effect ordering and indentation fixes

* VW MQB: Add FW for 2022 Volkswagen Taos
old-commit-hash: a1fadc7b547f10782222b3f38df68e89d649dd92
2022-05-19 13:42:52 -07:00
Willem Melching 710531e85d statsd: fix duplicate filename (#24595)
old-commit-hash: dd55d14bb1a1bc7c7d4fdfbf1b1344562d11f847
2022-05-19 15:36:07 +02:00
Shane Smiskol 56a44d41f8 controls: pressing set while gas pressed resets to vEgo (#24100)
* set while gas pressed to resume

* better order

* what was I thinking?

* Update selfdrive/controls/lib/drive_helpers.py

Co-authored-by: Gijs Koning <gijs-koning@live.nl>

* Update selfdrive/controls/lib/drive_helpers.py

Co-authored-by: Gijs Koning <gijs-koning@live.nl>

* only if under set speed

* some clean up and ciel the v_cruise_kph

* clean up

* actually floor

* Should be cruise min

* On phone, will clean up

* Think no floor is fine

* clean up and catch setCruise

* update comment and just always do rounding and clipping

update comment

* flip order

Co-authored-by: Gijs Koning <gijs-koning@live.nl>
old-commit-hash: d3d210c18304e5ce37c844b3efb706b30fee1460
2022-05-19 03:28:50 -07:00
Adeeb Shihadeh df559d3631 bump opendbc
old-commit-hash: 285bbe5283c754d8e132627f4aef722f0dac8641
2022-05-19 00:45:04 -07:00
Lukas Petersson d1e21cef79 process replay: support running in parallel (#24534)
* prefix params

* set env

* prefix in manager

* filesystem except

* dont delete manager folder

* Update selfdrive/common/params.h

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

* debug same path

* remove cleanup + same default

* dont use filesystem lib

* param symlink path

* prefix helpers

* path

* dont delete d

* parallel loop

* refactor loop

* msgq

* clean msgs

* spelling

* nestable pool

* spelling

* logreaders in parallel

* bugfix

* assert msgq

* Update selfdrive/test/process_replay/test_processes.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* Update selfdrive/test/process_replay/test_processes.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* assert in cereal

* folder exists

* create dirs in test

* bump cereal

* Update selfdrive/test/process_replay/process_replay.py

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

* PR feedback

* params path in basedir

* ref commit

* param path

* bugfix

* upload_only

* param path

* Update selfdrive/test/process_replay/process_replay.py

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

* msgq path name

* python concurrency.features

* progress bar

* remove progress bar from compare logs

* Update selfdrive/test/process_replay/test_processes.py

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

* Update selfdrive/test/process_replay/test_processes.py

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

* defaultdict

* context manager

* update refs

* dont get logs if upload only

* upload refs in parallel

* cleanup

* Update selfdrive/test/process_replay/test_processes.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* cleanup

* text

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 444d26582121550a371f14e17d614ba6984cc10a
2022-05-18 19:59:30 -07:00
Shane Smiskol 077a70d80d Support RAV4 2022 with stock longitudinal (#24367)
* support for ICE 2022 RAV4

* add to releases

* swap

* add fingerprints from a5c341bb250ca2f0

* update test route

* update docs

* add test for rav4

* values.py is a comma file
old-commit-hash: bdaf17415422ce16a1b2c412a89e099e552135a9
2022-05-18 19:04:11 -07:00
Adeeb Shihadeh dea5b1fbe0 define new prime types
old-commit-hash: ab7c653cc59c0935495ca359d30d5f87fbdaf69e
2022-05-18 18:50:42 -07:00
Adeeb Shihadeh 748cdcf76e remove that too
old-commit-hash: 370fc2d352f7cff33be1108d8f61bef94c2d369c
2022-05-18 16:43:23 -07:00
Adeeb Shihadeh 67d71f693c camerad: remove webcam + replay cameras (#24554)
* camerad: remove replay camera

* remove webcam + fix AE tests
old-commit-hash: b4091847dfe67374d673ae3bf2dd2607068260f7
2022-05-18 15:12:48 -07:00
Adeeb Shihadeh f4675fc260 Merge common/ and selfdrive/common (#24556)
* Merge common/ and selfdrive/common

* fix that

* fix version

* fix unit tests
old-commit-hash: cb8885cffb313bea258c012c3026461a22bf8135
2022-05-18 14:11:57 -07:00
George Hotz eea872ae98 compressed_vipc: use correct system timestamps
old-commit-hash: e4b7791044003663d354c1734d1744dbe69f36e6
2022-05-18 13:18:00 -07:00
George Hotz fca47bb6a4 add unixTimestampNanos to encoderd (#24583)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c2279ef39dd7a2cda88ec6949b24ff0f71c19983
2022-05-18 12:58:52 -07:00
George Hotz d811962f7a add to compressed_vipc
old-commit-hash: bb5a05084063ddf5ab2a353c1ca48c3cc8566d74
2022-05-18 12:58:12 -07:00