Commit Graph

7537 Commits

Author SHA1 Message Date
Vivek Aithal 4bc175bb9c Live torque fix (#25868)
* fix np empty array quirk

* reset to offline values if saved values were not valid live

* edit cloudlog text
2022-09-29 16:36:43 -07:00
Kurt Nistelberger 29d3ed2ce6 Sensor events splitup (#25714)
* PoC of reading sensors via interrupts instead of polling

* add Gyro and draft for magn

* add more functionality to gpio.cc

* change LSM gyro to interrupt

* resolve rebase conflict

* update BMX accel interrupt impl

* add interrupt collector thread to fetch in parallel

* change get_event interface to return true on successful read

* update BMX gyro interrupt impl

* update gpio.h/.cc according to comments

* address comments, rename Edgetype enum

* Edgetype to EdgeType

* update sensor interrupt interface

* add error handling, and read fd on trigger

* avoid sending empty messages

* fix build

* use gpiochip

* less diff

* gpiochip on both edges, but skip falling edge if rising edge is detected

* init last_ts with 0

* update sensord testcases

* update sensord testsweet

* test for pipeline

* readd with_process

* add null check

* move tests update to seperate PR

* sensord: improve test coverage (#25683)

* update sensord-interrupt testsweet

* address review comments

* inc stddev threshold

* fix format string

* add version 0 check again

* relax strictness after c3 with bmx tests

* relax strictness after tests

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>

* address PR comments

* fix typo

* remove 4ms limit, and skip first 0.5sec of data

* revert disable_interuppt change to destructor

* fix and remove timing skip

* make gpiochip generic

* sensord port

* change from sensorEvents to separated events

* fix gyro usage

* add splitted sensor tests

* modify debug script sensor_data_to_hist.py

* refactor get_event interface to remove sensorEvent message type

* update locationd to non sensorEvent usage

* tmp commit

* fix replay

* fix accelerometer type

* fix sensor to hist debug script

* update sensord tests to split events

* remove rebase artifacts

* port test_sensord.py

* small clean up

* change cereal to sensorEvents-splitup branch

* upate sensorEvents in regen

* fix route generation for splitted sensor events

* regen cleanUp from sensorEvents change

* .

* remove light and temp from locationd

* add generic init delay per sensor

* .

* update routes

* move bmx gyro/accel to its own channel

* adopt sensor tests to bmx channel

* remove rebase artifacts

* fix sensord test

* handle bmx not present

* add bmx sockets to regen

* .

* .

* code cleanUp

* .

* address PR comments

* address PR comments

* address PR comments

* lsm clean up

* readd sensorEvents

* rever regen.py

* .

* update replay refs

* move channels

* fix artifact

* bump cereal

* update refs

* fix timing issue

Co-authored-by: Bruce Wayne <batman@workstation-eu-intern2.eu.local>
Co-authored-by: gast04 <kurt.nistelberger@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-09-29 14:31:54 -07:00
Kurt Nistelberger 784246cf54 Gps test Setup, PoC (#25919)
* first ignore

* init gps test

* make LimeGPS git clone

* revert ignore

* .

* remove prebuilt bins

* Update README.md

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-09-29 14:24:19 -07:00
Lee Jong Mun 7df0e3efcf remove blank whitespace (#25921) 2022-09-29 13:52:41 -07:00
Adeeb Shihadeh 74f741d0be agnos updater: set timeout on download (#25927) 2022-09-29 13:18:01 -07:00
Dean Lee badecfd060 boardd: remove global variable pigeon_active (#25926) 2022-09-29 11:30:12 -07:00
Adeeb Shihadeh 391780551a UI: remove imu tap detection (#25924) 2022-09-29 11:02:27 -07:00
Adeeb Shihadeh 03977a8783 Revert "update replay refs"
This reverts commit 683096e309.
2022-09-28 21:42:58 -07:00
Kurt Nistelberger 683096e309 update replay refs 2022-09-28 21:38:31 -07:00
Adeeb Shihadeh 51e296733d test_sensord: get 10s of events 2022-09-28 20:19:47 -07:00
Adeeb Shihadeh 47de20ffb5 update release notes 2022-09-28 18:56:23 -07:00
Dean Lee 2e5b50c2d7 test_proclog: add cmdline check in buildProcLogerMessage (#25891) 2022-09-28 17:35:55 -07:00
Adeeb Shihadeh 4e32387ce5 updated: clean untracked nested git repos (#25917)
* updated: clean untracked nested git repos

* ff all the cleans
2022-09-28 16:33:42 -07:00
Adeeb Shihadeh 17ed8dd0e9 updated: configure branch upstream (#25916) 2022-09-28 16:08:32 -07:00
Adeeb Shihadeh 2384a9ee67 fix autobrightness for OX03C10 (#25915)
* fix autobrightness for OX03C10

* fix scaling

* use cur ev

* oops

* bump cereal
2022-09-28 15:45:15 -07:00
Shane Smiskol 42210a9910 multilang: nav instructions (#25102)
* Try Chinese nav

* try this

* not sure what does what

* read language setting in navd

* probably not used

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-09-28 14:44:05 -07:00
Shane Smiskol 685533a3a1 Subaru: Add missing FW for 2021 Legacy (#25914)
Add missing 2021 Legacy FW from 9936b4bbf75a5fe4|2022-09-26--20-29-47
2022-09-28 14:06:34 -07:00
Shane Smiskol 0ec8546042 vin and ecu_addrs: add more argparse options (#25913)
* add bus options

* use debug

* add timeout and try

* fix

* don't need keywords

* log this too

* fix
2022-09-28 14:01:17 -07:00
HaraldSchafer 1007df874f Minor ACC fixes (#25911)
* Change cruise accel limits

* Long tuning script looks good

* Cap cruise slowdown aggression in e2e mode

* Revert atau change

* Cleanup

* Update ref

* fix ref
2022-09-28 13:27:07 -07:00
Cameron Clough b944a22b9b exclude opendbc and xx from mypy pre-commit 2022-09-27 22:55:05 -07:00
Adeeb Shihadeh 1c6dc12a04 camerad: improved frame sync and skip tests (#25904)
* camerad: cleanup frame sync and skip tests

* fix linter

Co-authored-by: Comma Device <device@comma.ai>
2022-09-27 21:32:21 -07:00
Cameron Clough 4e310b807f configure mypy outside of pre-commit environment (#25892)
* add mypy config matching precommit

* use local mypy, add files to config

* excludes too

* fix config

* pylint is sad now... did it get updated?

* fix typing hints

* ignore

* this should be a regexp

* mypy doesn't like Deque despite inheriting MutableSequence

* more excludes

* Revert "pylint is sad now... did it get updated?"

This reverts commit 250c632f18ecb3d33ffb931e15425f9314a0964b.
2022-09-27 20:43:05 -07:00
Kurt Nistelberger 96ed5aa581 Sensor events regen (#25903) 2022-09-27 20:33:45 -07:00
Shane Smiskol ba1c3cda41 Log more FW/VIN errors in qlogs (#25901)
* log VIN query errors

* Update fw_versions.py

* use exception

* post-commit
2022-09-27 20:17:42 -07:00
Shane Smiskol 12998520b9 bump panda 2022-09-27 18:56:25 -07:00
Shane Smiskol 870c5f383d IsoTpParallelQuery: extend timeout for each ISO-TP frame (#25897)
* raise timeouts

* extend timeout for each message/frame (not multi-frame full response)

* bump panda

* 100 ms timeout between frames (max I've seen is 20, should be good)

* bump panda

* remove unused

* Add tester present to HKG queries (temp)

* send tester present to all ecus first

* vin and fw_versions.py sleep, should figure out why sendcan drops packets

* None is wildcard (some ecus respond with negative code, that's fine)

* typing

* try bus 0

* revert brand-specific changes

* Update selfdrive/car/isotp_parallel_query.py
2022-09-27 18:13:13 -07:00
Adeeb Shihadeh 2a30da6698 sensor tests: bump light sensor threshold 2022-09-27 14:23:32 -07:00
Cameron Clough 89768376c0 docs: remove redundant keyword args (#25899)
remove unnecessary keyword args, unnecessary package
2022-09-27 14:00:08 -07:00
Shane Smiskol 26517a0ef9 replay: set CarParamsPersistent 2022-09-26 23:50:49 -07:00
Shane Smiskol 29b9a07393 Log tx addr for IsoTpMessage exceptions 2022-09-26 23:22:50 -07:00
Adeeb Shihadeh f18773acbe compressed_vipc: add main() 2022-09-26 22:27:30 -07:00
Adeeb Shihadeh d2869f4779 updated: check overlay mounted 2022-09-26 16:57:21 -07:00
Lee Jong Mun a124fa22e4 Multilang: kor translation update (#25893) 2022-09-26 12:01:24 -07:00
Lee Jong Mun d997d40f17 update system.hardware import path (#25889) 2022-09-25 19:33:35 -07:00
Adeeb Shihadeh b2376909f4 updated: allow reusing overlay (#25883) 2022-09-23 19:44:18 -07:00
Kurt Nistelberger 755f24885a pin sensord and lsm interrupt to core 1, for better timing (#25867)
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2022-09-23 18:51:07 -07:00
Dean Lee f4a4ec8fa2 bootlog: rename bz_file to file (#25881) 2022-09-23 13:28:25 -07:00
Dean Lee 2f878830c8 modeld: removed extra spaces (#25880) 2022-09-23 10:54:13 -07:00
Robbe Derks b3be863671 Tesla FW query (#25785)
* early wip

* add addresses

* cleaned up fw versions

* remove CAN fingerprint

* Revert "remove CAN fingerprint"

This reverts commit 337e8d65ef7ee2724cfe6ff711ee8aeffdbbb22f.

* bump panda

* Revert "Revert "remove CAN fingerprint""

This reverts commit 12536fa8358438a6d6713c0b7bef0383bbc83588.

* bump cereal

* fix ecu type

* whitelist per rx_offset

* bump submodules again

Co-authored-by: Comma Device <device@comma.ai>
2022-09-23 13:40:15 +02:00
Cameron Clough 9a2d8c420d docs: update Hyundai packages (#25851)
* LKAS is part of same package as SCC for Elantra 2017-2019

https://cdn.dealereprocess.org/cdn/brochures/hyundai/2017-elantra.pdf
https://cdn.dealereprocess.org/cdn/brochures/hyundai/2018-elantra.pdf
https://cdn.dealereprocess.org/cdn/brochures/hyundai/2019-elantra.pdf

* LKAS is standard on all trims for Elantra 2021

https://cdn.dealereprocess.org/cdn/brochures/hyundai/2021-elantra.pdf

* LKAS is part of same package as SCC on Genesis 2016

TODO: confirm 2015

https://cdn.dealereprocess.org/cdn/brochures/hyundai/2016-genesis.pdf

* LKAS is part of same package as SCC for Ioniq Hybrid 2017-19

Same package 2017-18
https://cdn.dealereprocess.org/cdn/brochures/hyundai/2017-ioniq.pdf
https://cdn.dealereprocess.org/cdn/brochures/hyundai/2018-ioniq.pdf
SEL and Limited on 2019
https://cdn.dealereprocess.org/cdn/brochures/hyundai/2019-ioniq.pdf

* LFA is part of same trim as SCC on Ioniq Hybrid 2020-22

TODO: confirm for 2022

SEL and Limited includes both SCC and LFA
https://cdn.dealereprocess.org/cdn/brochures/hyundai/2020-ioniq.pdf
https://cdn.dealereprocess.org/cdn/brochures/hyundai/2021-ioniq.pdf

* Remove Ioniq Hybrid 2020-21 until harnesses verified

All three model years were added in a single PR - need to lookup
routes and see if there are users with 2020-21 MY vehicles.
https://github.com/commaai/openpilot/pull/22610

* LKAS is on same trim as SCC for Ioniq Electric 2019

https://cdn.dealereprocess.org/cdn/brochures/hyundai/2019-ioniq.pdf

* SCC and LKA are on all trims for Ioniq Electric 2020

https://cdn.dealereprocess.org/cdn/brochures/hyundai/2020-ioniq.pdf

* LKA and SCC are on same trims for Ioniq Plug-in Hybrid 2019

https://cdn.dealereprocess.org/cdn/brochures/hyundai/2019-ioniq.pdf

* SCC and LFA are on all trims for Ioniq Plug-in Hybrid 2020-21

https://cdn.dealereprocess.org/cdn/brochures/hyundai/2020-ioniq.pdf
https://cdn.dealereprocess.org/cdn/brochures/hyundai/2021-ioniq.pdf

* LKAS is standard on Kona Electric 2018-21

SCC only on Ultimate trim, LKAS on all

(2018 UK only) https://www1.hyundai.news/fileadmin/uk/press-kits/20180828_kona_electric/Hyundai_Kona_Electric_-_Technical_data_and_specifications.pdf
https://cdn.dealereprocess.org/cdn/brochures/hyundai/2019-kona.pdf
https://cdn.dealereprocess.org/cdn/brochures/hyundai/2020-konaelectric.pdf
https://cdn.dealereprocess.org/cdn/brochures/hyundai/2021-konaelectric.pdf

* LKAS is part of same package as SCC for Sonata 2018-19

Tech Package includes SCC and LKAS

https://cdn.dealereprocess.org/cdn/brochures/hyundai/2018-sonata.pdf
https://cdn.dealereprocess.org/cdn/brochures/hyundai/2019-sonata.pdf

* define LKAS package explicitly

* remove package where default

* LFA part of same trim as SCC for Seltos 2021

https://cdn.dealereprocess.org/cdn/brochures/kia/2021-seltos.pdf

* LKAS is on all trims with SCC for Sorento 2019

https://cdn.dealereprocess.org/cdn/brochures/kia/2019-sorento.pdf

* LKAS is on all trims with SCC for Stinger 2018-20

https://cdn.dealereprocess.org/cdn/brochures/kia/2018-stinger.pdf
https://cdn.dealereprocess.org/cdn/brochures/kia/2019-stinger.pdf
https://cdn.dealereprocess.org/cdn/brochures/kia/2020-stinger.pdf

* remove min steer speed definition from docs for Optima 2016

* LFA is included in same trim as SCC for Niro Hybrid 2022

https://cdn.dealereprocess.org/cdn/brochures/kia/2022-niro.pdf

* update docs

* remove Ioniq Hybrid 2020-21, add note

* update docs

* remove LKAS for Kona Hybrid 2020 and Niro Hybrid 2021, likely included in SCC trims

* update docs

* Revert "remove Ioniq Hybrid 2020-21, add note"

This reverts commit 62096a8db3fb21771a04e20714ecee906a5c0b34.

* Revert "Remove Ioniq Hybrid 2020-21 until harnesses verified"

This reverts commit ac773285f76a108c32d8692d12eef18cabcfd023.

* update docs
2022-09-22 18:38:42 -07:00
Adeeb Shihadeh dc65f8a60a agnos 6 (#25864)
* agnos 6

* new agnos

* no casync for now
2022-09-22 15:56:17 -07:00
Adeeb Shihadeh dcdf9a6eb4 controlsd: ignore irrelevant alerts in dashcam mode (#25875) 2022-09-22 13:43:27 -07:00
Adeeb Shihadeh f52dea7d84 ui: add support for dual cams (#25876) 2022-09-22 13:42:00 -07:00
ZwX1616 4ed0abd197 camerad: recalibrate ox colors for HDR (#25874)
re
2022-09-22 12:52:48 -07:00
Dean Lee cdbb06d45d locationd: remove redundant break statements (#25873) 2022-09-22 10:41:47 -07:00
Dean Lee d4404511bc encoderd: build v4l_encoder.cc on PC (#25872) 2022-09-22 10:41:09 -07:00
Dean Lee 3b9add5602 V4LEncoder: remove unused member variable buf_in (#25870) 2022-09-22 10:40:41 -07:00
Adeeb Shihadeh 4693a9d358 update refs 2022-09-22 10:40:23 -07:00
Adeeb Shihadeh 051fa5bea4 hyundai: update mando radar dbc path 2022-09-21 21:41:17 -07:00
Adeeb Shihadeh 760d4e668e set safety param for knockouts 2022-09-21 21:23:14 -07:00