Shane Smiskol
f7a315e995
VIN query: switch to functional address ( #25933 )
...
* stash
* go in defined order
* \n feels cleaner
old-commit-hash: 68cc53a0852fc1ec620c81d996b868fa26048ca2
2022-09-30 20:29:54 -07:00
Shane Smiskol
11114b9789
Use tx_addr/sub_addr from query
...
old-commit-hash: 86f0632afdafe75869e07dd7e329f866579e60c9
2022-09-30 17:44:48 -07:00
Shane Smiskol
bfc4d72402
IsoTpParallelQuery: don't return rx_addr ( #25934 )
...
* revert isotpparallelquery returning rx addr for functional special case
* we don't really use the tx addr (and soon won't make sense with fun querying)
old-commit-hash: 4d7f4b4c9db739c85989797b750226b0ec217f71
2022-09-30 16:01:22 -07:00
Shane Smiskol
ae2f2add1d
Longitudinal planner: clip a_desired to cruise limits ( #25928 )
...
* Clip a_desired to cruise limits
* Update selfdrive/controls/lib/longitudinal_planner.py
* fix
* update refs
* explicit
old-commit-hash: 4bd146ee7af639f4a49e3d5cdeeab4ed022190ec
2022-09-30 15:43:04 -07:00
Shane Smiskol
02428ca744
IsoTpParallelQuery: process all functional responses ( #25939 )
...
* stash
* process all functional addrs (stash)
* clean up
* rm
* simplify
* let user pass in tx for rx addrs
* revert panda
* simplify
* comment
order
* need to go by rx_addr now
* Revert "need to go by rx_addr now"
This reverts commit 1197ecfbc5b9e5df20b523a0623f644cd8cae1ef.
* stash
* should also work
* this seems pretty clean
* not used
* properly use
* comment
* some fixes
* some fixes
* send consecutive frames on physical addrs
* bump panda
* looks better
* setup_only
* Revert VIN changes
* rev
* bump panda to master
* Update selfdrive/car/isotp_parallel_query.py
old-commit-hash: bea960675f2ae7d2d9e3c95d8c79fde6b61d93d0
2022-09-30 15:15:13 -07:00
Shane Smiskol
220c7ea7c3
process replay: rename second HYUNDAI entry
...
old-commit-hash: 75735675bddd39abf01fc1e1c8f004394559f51f
2022-09-30 14:49:27 -07:00
Adeeb Shihadeh
1ade0ce47d
sensord: test fixups ( #25935 )
...
* sensord: test fixups
* fix linter
* check freq
* fp seems reliable
* clean that up
* update refs
Co-authored-by: Comma Device <device@comma.ai >
Co-authored-by: Bruce Wayne <batman@z840-provisioning.internal >
old-commit-hash: 80c40048cb62fff15a8e884cb05fba8ddfb11809
2022-09-30 12:25:11 -07:00
Adeeb Shihadeh
1cb4cdab24
sim: fix sensor freq and timestamps ( #25937 )
...
* sim: fix sensor freq and timestamps
* 100hz
* fix that too
old-commit-hash: 5d33199905cbf9d9b45ef722a40530b08d5cecf4
2022-09-29 22:36:09 -07:00
Shane Smiskol
d7acc9fe75
Revert "IsoTpParallelQuery: process all functional responses ( #25930 )"
...
This reverts commit 39e98b0456047adc253c611b1015fd1aa38f6dd2.
old-commit-hash: 9e2cca23cfefd21483f78b0712583d564a6a3539
2022-09-29 21:15:34 -07:00
Shane Smiskol
f3211a9dfb
IsoTpParallelQuery: process all functional responses ( #25930 )
...
* Revert "VIN: query physical addresses (#25122 )"
This reverts commit 452c155a49b068891937450b7389a2154881160a.
* try sending tester present
* do CAN fingerprinting first
* looks like we can get rid of this!
* remove import
* no cache for testing
* revert
* revert
* move function to fw_versions
* Exception
* Revert fp order, sleep to let PubSocket connect
* comment
comment
* space
* Update selfdrive/car/car_helpers.py
* at 0.06 is where it becomes more consistent
* treat functional addrs like physical addrs (process all responses)
* fixes and debugging
* fix
* revert other changes
* Update selfdrive/car/isotp_parallel_query.py
* caps
old-commit-hash: c5514f344024f7523ba45dffe92e09147fb3704f
2022-09-29 19:07:28 -07:00
Vivek Aithal
911f4f9ea3
Live torque fix ( #25868 )
...
* fix np empty array quirk
* reset to offline values if saved values were not valid live
* edit cloudlog text
old-commit-hash: 4bc175bb9c9dd5976d1dba40abae716bb4a207ba
2022-09-29 16:36:43 -07:00
Kurt Nistelberger
fb06d2769f
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 >
old-commit-hash: 29d3ed2ce63a65f793dc0ecb553180a0d0fba03e
2022-09-29 14:31:54 -07:00
Lee Jong Mun
f6700cb7ba
remove blank whitespace ( #25921 )
...
old-commit-hash: 7df0e3efcfd2926405f5eaa872d03a652f9c66f9
2022-09-29 13:52:41 -07:00
Dean Lee
f4c83e8d78
boardd: remove global variable pigeon_active ( #25926 )
...
old-commit-hash: badecfd060bc4fe2265a680c9a42f9a9afa1647a
2022-09-29 11:30:12 -07:00
Adeeb Shihadeh
bcd69adc33
UI: remove imu tap detection ( #25924 )
...
old-commit-hash: 391780551a362faf9c6c290d47313583d14aa594
2022-09-29 11:02:27 -07:00
Adeeb Shihadeh
025098b819
Revert "update replay refs"
...
This reverts commit ef6d52afc8a2ad10bae6e7e6e32a5ce54ddac70c.
old-commit-hash: 03977a8783726038cdeae16e2115e3b9d1f47ab8
2022-09-28 21:42:58 -07:00
Kurt Nistelberger
4681730213
update replay refs
...
old-commit-hash: 683096e309e9e88cc0c5af9da3df70ce62279324
2022-09-28 21:38:31 -07:00
Adeeb Shihadeh
ca3d5d61e2
test_sensord: get 10s of events
...
old-commit-hash: 51e296733d196dcc504607571460e671cc2861e8
2022-09-28 20:19:47 -07:00
Adeeb Shihadeh
33508cd811
updated: clean untracked nested git repos ( #25917 )
...
* updated: clean untracked nested git repos
* ff all the cleans
old-commit-hash: 4e32387ce5b916df1a62ddb695c0cd10ba6f4f38
2022-09-28 16:33:42 -07:00
Adeeb Shihadeh
1bade71c4f
updated: configure branch upstream ( #25916 )
...
old-commit-hash: 17ed8dd0e9a8ecd0dcf8b573176ea27355c6a1ee
2022-09-28 16:08:32 -07:00
Adeeb Shihadeh
52529fb8f6
fix autobrightness for OX03C10 ( #25915 )
...
* fix autobrightness for OX03C10
* fix scaling
* use cur ev
* oops
* bump cereal
old-commit-hash: 2384a9ee67fc4480199149657a031510f9f48d14
2022-09-28 15:45:15 -07:00
Shane Smiskol
cfddc54ea7
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 >
old-commit-hash: 42210a99104d83d19cf7c426433721e1bf4ad1eb
2022-09-28 14:44:05 -07:00
Shane Smiskol
346c543ad6
Subaru: Add missing FW for 2021 Legacy ( #25914 )
...
Add missing 2021 Legacy FW from 9936b4bbf75a5fe4|2022-09-26--20-29-47
old-commit-hash: 685533a3a121b3cc50e8a0b6402547999d86829b
2022-09-28 14:06:34 -07:00
Shane Smiskol
c3fb4dda1b
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
old-commit-hash: 0ec8546042091f97072edcf8f5218627ea8a75a9
2022-09-28 14:01:17 -07:00
HaraldSchafer
10bc36ae58
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
old-commit-hash: 1007df874f284f2c01a48c245f48c209ed806957
2022-09-28 13:27:07 -07:00
Cameron Clough
23a4e66b17
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.
old-commit-hash: 4e310b807fb1ccdde4b2078468fab46e5324dfa2
2022-09-27 20:43:05 -07:00
Kurt Nistelberger
8a828af454
Sensor events regen ( #25903 )
...
old-commit-hash: 96ed5aa5816c692856ed352ef404f040a9615b69
2022-09-27 20:33:45 -07:00
Shane Smiskol
ab2eab0ffb
Log more FW/VIN errors in qlogs ( #25901 )
...
* log VIN query errors
* Update fw_versions.py
* use exception
* post-commit
old-commit-hash: ba1c3cda41de2002a31591fe0b92eca63df683b5
2022-09-27 20:17:42 -07:00
Shane Smiskol
b0d03acf2a
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
old-commit-hash: 870c5f383d2feb1b5dd255fd0c528d1427f8478c
2022-09-27 18:13:13 -07:00
Adeeb Shihadeh
6731c6b61c
sensor tests: bump light sensor threshold
...
old-commit-hash: 2a30da6698d92a3729bc5478a3c53996b8077152
2022-09-27 14:23:32 -07:00
Cameron Clough
529b861d4b
docs: remove redundant keyword args ( #25899 )
...
remove unnecessary keyword args, unnecessary package
old-commit-hash: 89768376c0e141fb4143f95136693c6fe48f1f0b
2022-09-27 14:00:08 -07:00
Shane Smiskol
a27814c513
Log tx addr for IsoTpMessage exceptions
...
old-commit-hash: 29b9a07393bffc6d7915245958e38b9219304aa7
2022-09-26 23:22:50 -07:00
Adeeb Shihadeh
7e200374a8
updated: check overlay mounted
...
old-commit-hash: d2869f4779495685730c5eb27e90fabf559f68d4
2022-09-26 16:57:21 -07:00
Lee Jong Mun
0361b6364d
Multilang: kor translation update ( #25893 )
...
old-commit-hash: a124fa22e412cd38f68a8e8db998dd786ed9509c
2022-09-26 12:01:24 -07:00
Lee Jong Mun
5020d45b57
update system.hardware import path ( #25889 )
...
old-commit-hash: d997d40f17406d079c2f343bcde446be44094021
2022-09-25 19:33:35 -07:00
Adeeb Shihadeh
3e18ef26d4
updated: allow reusing overlay ( #25883 )
...
old-commit-hash: b2376909f4b3c95f27eb11d081d3952566b06815
2022-09-23 19:44:18 -07:00
Kurt Nistelberger
eaca9b10b7
pin sensord and lsm interrupt to core 1, for better timing ( #25867 )
...
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com >
old-commit-hash: 755f24885aa3e89933cc8ad9784cdaf480156239
2022-09-23 18:51:07 -07:00
Dean Lee
219a0f97c7
bootlog: rename bz_file to file ( #25881 )
...
old-commit-hash: f4a4ec8fa21dfef5ef0ebe2eafaadc1c2536d861
2022-09-23 13:28:25 -07:00
Dean Lee
58de00a5db
modeld: removed extra spaces ( #25880 )
...
old-commit-hash: 2f878830c841402cc971b76a3b14e58fc8c69fd9
2022-09-23 10:54:13 -07:00
Robbe Derks
fe1352747d
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 >
old-commit-hash: b3be8636710c3ef4699bbb256f56823302d08397
2022-09-23 13:40:15 +02:00
Cameron Clough
c7b936584f
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
old-commit-hash: 9a2d8c420d0f0226390547feb00de4dcefbd1adf
2022-09-22 18:38:42 -07:00
Adeeb Shihadeh
d53804cc85
controlsd: ignore irrelevant alerts in dashcam mode ( #25875 )
...
old-commit-hash: dcdf9a6eb4d67432ea6e2902b285cc7c97caf56c
2022-09-22 13:43:27 -07:00
Adeeb Shihadeh
fe713be00a
ui: add support for dual cams ( #25876 )
...
old-commit-hash: f52dea7d8458948331f4a6e27d7848fed3219f8e
2022-09-22 13:42:00 -07:00
Dean Lee
4b50c653d6
locationd: remove redundant break statements ( #25873 )
...
old-commit-hash: cdbb06d45d5c6819319f5b6c2ba8b6f4261e9178
2022-09-22 10:41:47 -07:00
Dean Lee
a709ca5388
encoderd: build v4l_encoder.cc on PC ( #25872 )
...
old-commit-hash: d4404511bcfb420aaf26ae466654821ba4216b2a
2022-09-22 10:41:09 -07:00
Dean Lee
b7d7436556
V4LEncoder: remove unused member variable buf_in ( #25870 )
...
old-commit-hash: 3b9add56025a2807bd7a75d105421f7c276e578b
2022-09-22 10:40:41 -07:00
Adeeb Shihadeh
288b5fcdb0
update refs
...
old-commit-hash: 4693a9d3580db73905ccec525349007a8e3473e7
2022-09-22 10:40:23 -07:00
Adeeb Shihadeh
5f22ca2fce
hyundai: update mando radar dbc path
...
old-commit-hash: 051fa5bea42027c1a756ae61fd0c752c1e911899
2022-09-21 21:41:17 -07:00
Adeeb Shihadeh
a48ef1f640
set safety param for knockouts
...
old-commit-hash: 760d4e668ed7ac83a6445fb01e79622b6cffcef4
2022-09-21 21:23:14 -07:00
Adeeb Shihadeh
59d89cf36f
boardd: mutli pandas can knockout too
...
old-commit-hash: db60f6b943b7b07403228e82560ae06f7280d74e
2022-09-21 17:29:08 -07:00