Commit Graph

10097 Commits

Author SHA1 Message Date
cpaioletti
285204c5d1 Kia: add missing fwdCamera for Niro HEV 2023 (#27557)
* Update values.py for 2023 Kia Niro HEV

{'carParams': {'alternativeExperience': 0,
               'autoResumeSng': True,
               'carFingerprint': 'mock',
               'carFw': [{'address': 2004,
                          'brand': 'hyundai',
                          'bus': 1,
                          'ecu': 'eps',
                          'fwVersion': b'\xf1\x00SG2 MDPS C 1.00 1.06 56310AT050\x00 4SG2C106',
                          'logging': False,
                          'request': [b'"\xf1\x00'],
                          'responseAddress': 2012,
                          'subAddress': 0},
                         {'address': 2000,
                          'brand': 'hyundai',
                          'bus': 1,
                          'ecu': 'fwdRadar',
                          'fwVersion': b'\xf1\x00SG2_ RDR -----      1.00 1.01 99110-AT000         ',
                          'logging': False,
                          'request': [b'"\xf1\x00'],
                          'responseAddress': 2008,
                          'subAddress': 0},
                         {'address': 2017,
                          'brand': 'hyundai',
                          'bus': 1,
                          'ecu': 'transmission',
                          'fwVersion': b'\xf1\x00PSBG2552  D121049\x00\x00\x00DSG2G16XXH049NS6MC\xe3x',
                          'logging': False,
                          'request': [b'"\xf1\x00'],
                          'responseAddress': 2025,
                          'subAddress': 0},
                         {'address': 1988,
                          'brand': 'hyundai',
                          'bus': 1,
                          'ecu': 'fwdCamera',
                          'fwVersion': b'\xf1\x00SG2HMFC  AT USA LHD 1.01 1.09 99211-AT000 220801',
                          'logging': False,
                          'request': [b'"\xf1\x00'],
                          'responseAddress': 1996,
                          'subAddress': 0},
                         {'address': 2016,
                          'brand': 'hyundai',
                          'bus': 1,
                          'ecu': 'engine',
                          'fwVersion': b'\xf1\x87391S3-08AF0\xf1\x81HM6M7_0a0_D00',
                          'logging': False,
                          'request': [b'"\xf1\x87\xf1\x81\xf1\x00'],
                          'responseAddress': 2024,
                          'subAddress': 0},
                         {'address': 2000,
                          'brand': 'hyundai',
                          'bus': 1,
                          'ecu': 'fwdRadar',
                          'fwVersion': b'\xf1\x8799110AT000\xf1\x00SG2_ RDR -----      1.00 1.01 99110-AT000         ',
                          'logging': False,
                          'request': [b'"\xf1\x87\xf1\x81\xf1\x00'],
                          'responseAddress': 2008,
                          'subAddress': 0},
                         {'address': 2004,
                          'brand': 'hyundai',
                          'bus': 1,
                          'ecu': 'eps',
                          'fwVersion': b'\xf1\x8756310AT050\x00\xf1\x00SG2 MDPS C 1.00 1.06 56310AT050\x00 4SG2C106',
                          'logging': False,
                          'request': [b'"\xf1\x87\xf1\x81\xf1\x00'],
                          'responseAddress': 2012,
                          'subAddress': 0},
                         {'address': 2017,
                          'brand': 'hyundai',
                          'bus': 1,
                          'ecu': 'transmission',
                          'fwVersion': b'\xf1\x8795441-2BGJ0\x00\xf1\x81D121049\x00\x00\x00\xf1\x00PSBG2552  D121049\x00\x00\x00DSG2G16XXH049NS6'
                                       b'MC\xe3x',
                          'logging': False,
                          'request': [b'"\xf1\x87\xf1\x81\xf1\x00'],
                          'responseAddress': 2025,
                          'subAddress': 0},
                         {'address': 2000,
                          'brand': 'hyundai',
                          'bus': 4,
                          'ecu': 'fwdRadar',
                          'fwVersion': b'\xf1\x00SG2_ RDR -----      1.00 1.01 99110-AT000         ',
                          'logging': False,
                          'request': [b'"\xf1\x00'],
                          'responseAddress': 2008,
                          'subAddress': 0},
                         {'address': 1975,
                          'brand': 'hyundai',
                          'bus': 4,
                          'ecu': 'cornerRadar',
                          'fwVersion': b'\xf1\x00SG2 BCW RR 1.01 , 1.04 (wQ\x83"\x02\x01\x03@',
                          'logging': True,
                          'request': [b'"\xf1\x00'],
                          'responseAddress': 1983,
                          'subAddress': 0},
                         {'address': 1988,
                          'brand': 'hyundai',
                          'bus': 4,
                          'ecu': 'fwdCamera',
                          'fwVersion': b'\xf1\x00SG2HMFC  AT USA LHD 1.01 1.09 99211-AT000 220801',
                          'logging': False,
                          'request': [b'"\xf1\x00'],
                          'responseAddress': 1996,
                          'subAddress': 0},
                         {'address': 2017,
                          'brand': 'mazda',
                          'bus': 1,
                          'ecu': 'transmission',
                          'fwVersion': b'D121049\x00\x00\x00',
                          'logging': False,
                          'request': [b'"\xf1\x88'],
                          'responseAddress': 2025,
                          'subAddress': 0},
                         {'address': 2016,
                          'brand': 'subaru',
                          'bus': 1,
                          'ecu': 'engine',
                          'fwVersion': b'0TD23N6HGXD00\x00',
                          'logging': False,
                          'request': [b'>\x00', b'"\xf1\x82'],
                          'responseAddress': 2024,
                          'subAddress': 0},
                         {'address': 2017,
                          'brand': 'subaru',
                          'bus': 1,
                          'ecu': 'transmission',
                          'fwVersion': b'DSG2G16XXH049NS6',
                          'logging': False,
                          'request': [b'>\x00', b'"\xf1\x82'],
                          'responseAddress': 2025,
                          'subAddress': 0},
                         {'address': 2016,
                          'brand': 'volkswagen',
                          'bus': 1,
                          'ecu': 'engine',
                          'fwVersion': b'\xf1\x87391S3-08AF0\xf1\x820TD23N6HGXD00\x00',
                          'logging': False,
                          'request': [b'"\xf1\x87\xf1\x89\xf1\x82'],
                          'responseAddress': 2024,
                          'subAddress': 0},
                         {'address': 2017,
                          'brand': 'volkswagen',
                          'bus': 1,
                          'ecu': 'transmission',
                          'fwVersion': b'\xf1\x8795441-2BGJ0\x00\xf1\x89D121049\x00\x00\x00\xf1\x82DSG2G16XXH049NS6',
                          'logging': False,
                          'request': [b'"\xf1\x87\xf1\x89\xf1\x82'],
                          'responseAddress': 2025,
                          'subAddress': 0}],

* Update values.py to add missing comma

Added missing comma to Line 1659 to fix previous new firmware additions for 2023 Kia Niro Hybrid

* Update selfdrive/car/hyundai/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-20 13:28:52 -07:00
Luqi Pan
fa01a8e6b3 Add fwd camera value for 2023 GV60 Advanced (#27617) 2023-03-20 13:24:41 -07:00
Erich Moraga
744f1e4f57 Add missing CAMRY_TSS2 engine & fwdCamera f/w (#27619)
`ChromeNinja#0001` 2023 Camry ICE  DongleID/route a9c072de54f9194d|2023-03-17--17-24-56
2023-03-20 13:22:50 -07:00
Lee Jong Mun
e5069058f0 Kia: add missing Korean EV6 fwdCamera FW (#27621)
* add EV6 kor camera fw

* Update selfdrive/car/hyundai/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-20 13:21:59 -07:00
tonzy74
bfbfdb2851 Kia: Sorento 2021 support (#27623)
* Update values.py

* Update selfdrive/car/hyundai/values.py

* update docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-20 13:18:07 -07:00
koch-cf
ae423a6868 GM: Buick LaCrosse 2017-19 support (#27332)
* Added Buick LaCrosse 2017

* Added Buick LaCrosse as candidate

* Added Buick LaCrosse CAR_INFO and Fingerprint

* Added Buick LaCrosse to non_tested_cars

* Added Buick LaCrosse

* Updated number of supported cars to 237

* Added ACC and LKAS description to Buick LaCrosse

* Updated CAR_INFO for Buick LaCrosse

* Added the Escalade which was recently updated

* Update selfdrive/car/gm/values.py

Suggested fingerprint by @sshane

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

* Premium is a trim with ACC. Use package name instead

* lacrosse custom FF;
fit info:
describe(steer_offsets) = DescribeResult(nobs=1649402, minmax=(-0.7127894163131714, 5.3997602462768555), mean=3.3090523060153645, variance=0.3130325564084465, skewness=-1.5986155151533736, kurtosis=8.18810418298873)
Samples: 1357787
Regularizing...
Regularized samples: 1140
speed: DescribeResult(nobs=1140, minmax=(8.478170424241286, 35.837870224662446), mean=27.888804767013475, variance=34.16742353763829, skewness=-1.068587303119431, kurtosis=0.6193071765927134)
angle: DescribeResult(nobs=1140, minmax=(-21.057768565637094, 28.516874490999708), mean=-0.4328602593886506, variance=43.19046813273241, skewness=0.001966426701503317, kurtosis=0.20547357649038434)
steer: DescribeResult(nobs=1140, minmax=(-0.8432471203007578, 0.9634959333674695), mean=-0.021981142946747863, variance=0.20152217060233915, skewness=0.03202313890158864, kurtosis=-1.2318826088567174)
Performing fit...
Fit: [5.85397825e-01 3.27650818e-01 4.60531117e-03 1.32307599e+01
 1.37194709e-01 1.33099557e-01 6.14782304e-02]
ANGLE_COEF = 0.58539783
ANGLE_COEF2 = 0.32765082
ANGLE_OFFSET = 0.00460531
SPEED_OFFSET = 13.23075991
SIGMOID_COEF_RIGHT = 0.13719471
SIGMOID_COEF_LEFT = 0.13309956
SPEED_COEF = 0.06147823
MAE old 0.2098, new 0.0309
STD old 0.1021, new 0.0273
deg 00-03:457, deg 03-06:258, deg 06-09:218, deg 09-12:132, deg 12-15:62
deg 15-18:6, deg 18-21:4, deg 21-24:1, deg 24-27:0, deg 27-30:2
deg 30-33:0, deg 33-36:0, deg 36-39:0, deg 39-42:0, deg 42-45:0

mph 10-15:0, mph 15-20:1, mph 20-25:18, mph 25-30:12, mph 30-35:30
mph 35-40:26, mph 40-45:52, mph 45-50:54, mph 50-55:73, mph 55-60:86
mph 60-65:204, mph 65-70:228, mph 70-75:179, mph 75-80:176, mph 80-85:1
mph 85-90:0,

* Update routes.py

* remove from non tested routes

* use torque controller

* update docs

* update releases

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Tim Wilson <twilsonco@gmail.com>
2023-03-20 13:10:19 -07:00
Adeeb Shihadeh
5e269b25c4 plotjuggler: update controls mismatch layout 2023-03-18 20:03:00 -07:00
Dean Lee
529ba41825 cabana: display zoom range while dragging rubber-band selection (#27620) 2023-03-18 14:34:11 -07:00
Harald Schäfer
4718fa5748 Bump laika (#27618)
* Laika on master

* use constellation id
2023-03-17 16:39:44 -07:00
Dean Lee
741d26b025 cabana: set min-max values from size when creating a new signal. (#27589) 2023-03-17 16:18:38 -07:00
Adeeb Shihadeh
455d76cdb6 manager: log time with exit param (#27615)
* manager: log time with exit param

* fix double brackets
2023-03-17 16:17:42 -07:00
Dean Lee
d8a55de166 ui: remove lupdate warnings: "Qualifying with unknown namespace" (#27616) 2023-03-17 16:14:43 -07:00
Dean Lee
74db5a4b42 cabana: group CAN events by message id to reduce the time complex from O(N) to O(1) (#27601)
* refactor streams

* helper function xLessThan

* fix fill gaps
2023-03-17 10:16:14 -07:00
Shane Smiskol
57c4d78869 Toyota: add 2023 RAV4/RAV4 Hybrid as dashcam (#27609)
* test out lta message

* correctly send

* percentage is percentage driver isn't overriding

* closer to stock system

* should be able to send LTA at 100hz, counter is the same as LKA

* small amount of torque towards desired

* Offset commanded torque correctly

* Too little torque

* use car's SETME's

* Revert "use car's SETME's"

This reverts commit c88856969995f97cc5ec4e2b24a5cc4e3ef4721a.

* try cutting steer every second

* Didn't seem to matter

This reverts commit 6923498b2a9eed8beb3998f441899f1df4948f6f.

* steer to 0

* let packer set counter

* add for camry

* log steer faults

* comments

* bump opendbc

* add opParams

* add lta safety

* set safety param

* fix torque control bug

* bump panda

* fix missing signal

* [experiment] apply some rate limiting and anti-windup

* no faults, clip to 90 deg, decent torque blending

* clean up blending

* toyota angle rate limits

* use std angle limits

* assert we only add angle control to TSS2 cars

* clean up carcontroller a bit

* space space

* bump opendbc

* clean up toyotacan from opendbc change

* bump panda

* will tests run?

* steer at zero

* refactor angle to use LatControlPID with zero gains

* stop some faults and tuning

* possibly fix integral wind up at max torque

* Add 2023 rav4

* limit torque inside EPS when overriding (no huge windup in edge cases when overriding)

* fix wind up issue after turns (or prolonged saturation)

* this doesn't work that well

* try these limits

* try this

* log the angle!

* global variable

* Apply suggestions from code review

* clip angle to 3 m/s/s

* some tolerance for roll

* raise limits a bit

* bumppanda

* fix faults

* still not good

* offsetting causing hugging?

* Revert "offsetting causing hugging?"

This reverts commit a42ec0b772ed74a1fd54b7fef2e7c275a3e8333b.

* reduce kp

* class var not needed

* limit up angle delta

* fix saturation check

* feedforward includes offset

* some threshold for roll

* bump panda

* surely we don't need this

* test stuff

* Toyota: Add FW for 2023 RAV4 Hybrid (#27494)

* Toyota: Add FW for 2023 RAV4 Hybrid

* Set RAVH_TSS2_2022 to use angle SteerControlType

* bump panda

* remove extras

* Revert "remove extras"

This reverts commit 87378e734915c107f57f99a5feef4dcb2b2a9a37.

* no max angle limit for now

* add as separate platforms

* remove debug scripts

* revert to master

* remove these FW versions from 2022

* dashcam these cars :(

* fix test

* interface

* add to untested routes

* never send torque with LTA cars

* fix values

* clean up controlsd

* reset lat control files

* use the car param

* add to params

* bump panda to master

* Update selfdrive/car/toyota/carcontroller.py

* don't set torque params if angle control (fixes controlsd bug)

* reset controlsd

* keyword

* in another pr

* simplify test

* rm line

* Update selfdrive/car/toyota/tests/test_toyota.py

---------

Co-authored-by: crispbee <84819466+crispbee@users.noreply.github.com>
2023-03-17 00:03:21 -07:00
Shane Smiskol
2f95148a67 bump panda (#27612) 2023-03-16 23:16:11 -07:00
Kay Oh
b5198f99ea Add missing FW for 2022 (2023MY) Hyundai IONIQ 5 (#27590)
Update values.py

Korean Ver.
2023-03-16 23:08:51 -07:00
Harald Schäfer
204f7d8623 Ttff logs (#27610)
* ttff in logs

* More meta info

* cleanup

* passess tests

* unused import

* fix linting

* ttff of 0 is invalid

* ref commit

* bump cereal

* Update ref_commit

* sort ephem status list

* sort ephem status list

* update ref
2023-03-16 22:09:05 -07:00
YassineYousfi
b0ba79451e upgrade to torch 2.0 cuda 11.8 (#27611)
forgot to lock
2023-03-16 21:09:21 -07:00
YassineYousfi
4208b74ed8 update to torch 2.0 and cuda 11.8 (#27608)
* wip: update to torch 2.0

* update opencv
2023-03-16 19:04:04 -07:00
Adeeb Shihadeh
4cff94366f Revert "LAIKAD: TTFF, and ephemeris statuses in logs (#27591)"
This reverts commit 95216de591.
2023-03-16 19:01:45 -07:00
Harald Schäfer
95216de591 LAIKAD: TTFF, and ephemeris statuses in logs (#27591)
* ttff in logs

* More meta info

* cleanup

* passess tests

* unused import

* fix linting

* ttff of 0 is invalid

* ref commit

* bump cereal
2023-03-16 17:00:54 -07:00
Saber422
87f3a658a7 VW MQB: Add FW for 2022 Škoda Kodiaq (#27602)
@jyoung8607 I try to do this joy better
I setup my C3 on this car to get information to merge this FPV2
The route name is 0bbe367c98fa1538|2023-03-16--11-41-19--2

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-16 15:03:22 -07:00
Oxygen
61f25b5b95 Firmware version for TOYOTA Camry 2.0G, China built 2022.07 (#27558)
Update values.py

Firmware version for Carmy 2.0G, China Build 2022.07

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-16 14:48:29 -07:00
martinl
0d1e272b91 Subaru: Add 2019 Forester FPv2 (#27500)
* Subaru: Add 2019 Forester FPv2

* Update selfdrive/car/subaru/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-16 14:32:22 -07:00
Shane Smiskol
fe358102f2 test: fix Honda and Hyundai tests (#27606)
test honda and hyundai
2023-03-16 14:31:55 -07:00
Saber422
cb5573cbfd VW MQB: Add FW for 2022 Skoda Kodiaq 1.5TSI (#27489)
* VW MQB: Add FW for 2022 Skoda Kodiaq 1.5TSI

carVin': 'TMBJB9NS3N8051692'

* alphabetical order

* add to docs

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-16 14:25:31 -07:00
klaw73
d5dfd3f1a6 Add missing FW for 2020 Lexus NX Hybrid (#27565)
* Added fw for 2020LexusNXH

* Added fw for 2020LexusNXH

* Add fw to 2020Lexus NXH
2023-03-16 13:38:02 -07:00
freddiebd
a11a5d6231 VW MQB: Add FW for 2016 Golf Mk7 (#27581) 2023-03-16 13:34:52 -07:00
Harald Schäfer
5c38392785 Laikad: always return msg (#27599)
* always return msg

* always return msg

* Not all qcom constellations are understood

* call error error
2023-03-16 13:29:02 -07:00
kevinsdev
e6c514eb72 Added firmware for 2021 Lexus NX Base (#27604)
* Update values.py

Added my 2021 Lexus NX 300 Base

* Update values.py

Added 2021 Lexus NX Base
2023-03-16 13:24:22 -07:00
Harald Schäfer
719901b57c Bump laika (#27605)
* bump laika

* Update ref_commit
2023-03-16 13:06:30 -07:00
Adeeb Shihadeh
c2ec18cb71 bump panda 2023-03-16 10:43:22 -07:00
Robbe Derks
d26d8b3ba9 Improve OX frame timing jitter (#27582)
* frame timing script

* enable vsync output and improve fsin tracking

* increase measurement time

* fix python linting

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-03-16 10:59:27 +01:00
Cameron Clough
57d10a26e7 fix tabulate types (#27598)
fix types for tabulate
2023-03-15 20:58:08 -07:00
Harald Schäfer
38cb42f76a LaikaD new cache version (#27596) 2023-03-15 20:26:19 -07:00
Harald Schäfer
896fa029f9 Laikad: cleanup time range holder (#27595)
* cleanup time range holder

* update

* unused import

* unused import

* unused import

* bump laika
2023-03-15 20:06:29 -07:00
Harald Schäfer
629e5f6bf2 Fix qcom laika caching and test (#27594) 2023-03-15 15:16:47 -07:00
Adeeb Shihadeh
9a6bcba741 UI: remove spammy CameraView log 2023-03-15 14:34:33 -07:00
Dean Lee
f00c108acb cabana: eliminate deep copy of events in live stream mode (#27588) 2023-03-15 10:54:22 -07:00
Harald Schäfer
153ffa3f68 Sat info from ublox (#27526)
* squashed

* bump cereal
2023-03-15 01:21:18 -07:00
Harald Schäfer
5c70482761 Use structs in laika (#27585)
* doesnt crash

* New cacher

* unused import

* help linter

* Annotate list

* print error

* fix caching bugs

* wrong name

* small fixes

* fix sum

* wrong brackets

* fix tests

* update ref

* bump submodules
2023-03-15 00:02:56 -07:00
Adeeb Shihadeh
2749205b4a allow running amp config script standalone (#27587)
Co-authored-by: Comma Device <device@comma.ai>
2023-03-14 20:55:41 -07:00
Shane Smiskol
e2f4a82c03 Add CAN fingerprint to qlog (#27574) 2023-03-14 14:00:39 -07:00
Dean Lee
d5375af2f5 ui: auto detect available streams (#27470)
* auto detect available streams

* no switch if wide cam not available

* clear frames before getAvailableStreams

* warning

* clear at same time

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-03-14 13:59:22 -07:00
Adeeb Shihadeh
39cf8c6694 only run rawgpsd without a ublox (#27577) 2023-03-14 13:31:49 -07:00
Dean Lee
696cbb3e24 cabana: fix incorrect current ts in live stream mode (#27578) 2023-03-14 11:31:57 -07:00
Willem Melching
0afd3bab34 cabana: DBCManager only expose methods/signals through MessageId (#27540) 2023-03-14 11:31:04 -07:00
Willem Melching
b591b0c764 cabana: show signal values with consistent number of digits (#27556) 2023-03-14 11:29:00 -07:00
Harald Schäfer
d75ee19def Only trust locationd for nav (#27579)
* Only trust locationd for nav

* unused var
2023-03-14 09:25:09 -07:00
Shane Smiskol
4692cf7d1c Chrysler Pacifica 2018: add missing CAN fp (#27576)
new pacifica FPs
2023-03-13 17:07:42 -07:00