Commit Graph

2343 Commits

Author SHA1 Message Date
Shane Smiskol 730450d71e Honda Bosch Radarless: use CarControllerParams variable
old-commit-hash: 51c3f43205048948d49d1c969c71ebb46c3fc53e
2023-03-30 12:19:48 -07:00
royjr 77ce14cf0b Honda Bosch Radarless: update stopAccel to match actuation limits (#27740)
* civic22_stop_faster

* limit stopAccel to current safety model

* Update selfdrive/car/honda/interface.py

* Update selfdrive/car/honda/interface.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: fe49fbf8ec56733c0cbab45cde31df916f7a9fd3
2023-03-30 12:18:32 -07:00
Erich Moraga eafdc1b1dc Add missing AVALON_TSS2 engine & ABS f/w (#27733)
`@jundi#8597` 2022 Avalon ICE  DongleID/route 6b650cedd7de2808|2023-03-29--18-36-56
old-commit-hash: a9d342689cef1a6e21e12a529bcf0ad8cf2dec8e
2023-03-29 19:06:44 -07:00
royjr 37a03aa6eb Honda Civic 2022: match stock Auto Idle Stop behavior (#27722)
* honda_idlestop_timer

* whoops

* simplify

* just use stopping counter and move bosch radarless specific logic into the function

* it's actually 4 seconds

* Update selfdrive/car/honda/hondacan.py

* check equal to 0

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: e377305ea84dc6e50367f500897f553376583728
2023-03-29 19:04:33 -07:00
Vivek Aithal b6909a65e7 Bolt EUV: Non-linear torque function (#27696)
* add erf based ff

* silly bug; diff of nonlinear != nonlinear of diff

* add sigmoid based ff, ensure slope at 0 > 1

* reduce steer down limit and increase driver allowance

* rebase panda

* atry without friction, and with tanh nonlinear

* finalize the nonlinear function

* do not disable friction compensation in the ff

* bump panda

* bump panda

* update refs

* update refs

* resolve comments

* Add type hints

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 15b880c0ea6fb306e916a2ec015b5f03cec22b20
2023-03-29 15:10:39 -07:00
royjr f4d0b68a21 Honda Bosch Radarless: experimental longitudinal support (#25364)
* civic22_long

* Stock requests -4

* add standstill bit

* bump

* fix standstill

* bump

* bump

* bump panda

* Update hondacan.py

* bump panda

* add docs

* bump panda

* bump panda

* fix control_on value

* set control_off

* fix cars.md

* Update panda

* Update opendbc

* Update panda

* Update panda

* allow more braking

* Revert "allow more braking"

This reverts commit ecd2493a436a095b621d815e8b0c7591fa6b93a9.

* Update panda

* fix speed mismatch

* Revert "fix speed mismatch"

This reverts commit ca795dc5bd9d6e841225e1ac1ff93a1f78618513.

* Update panda

* fix speed mismatch and standstill

* delay stopped message to match stock behavior

* green cruise only when enabled

* Update panda

* Revert "green cruise only when enabled"

This reverts commit d21aa5b541a42fa6d1c87e3b065f720af28ff38b.

* lesser nester

* simplify

* simplify control_on

* simplify common signals

* simplify CONTROL_ON

* lessest nester

* hide speed on gas_override to match stock behavior

* tiny simplification, lesser nester

* flip common acc control values around

* move magic number to global variable

* Revert "move magic number to global variable"

This reverts commit 160be0e0872dc08a8786d97fc2125b2eb131362d.

* remove stopped logic

* remove unused variable

* looks ok

* looks better

* simplify override

* clarify CONTROL_OFF signal comment

* civic22_long_bettercontroloff

shorten delay

init

selfless

whoops

move to carcontroller

selfmore

lower time, currently take 5s to kick in

just right

deline

* Rename CONTROL_OFF -> IDLESTOP_ALLOW

This tells the car its ready to turn off the engine, which does so when the car is standstill.

* Update panda

* Update opendbc

* Update panda

* fix docs

* Update panda

* Update panda

* Update opendbc

* Update panda

* Update panda

* Update panda

* Update panda

* bump panda

* idlestop in another PR

* radarless doesn't need tester present

* simplify that

* helper

* one line is fine

* test bump

* bumpback

* disallow

* reduce diff

---------

Co-authored-by: sshane <shane@smiskol.com>
old-commit-hash: 1853d6f40edc07a49a910f6fb8cedab96e9f3521
2023-03-28 01:53:48 -07:00
Dean Lee a837c85ec3 isotp_parallel_query: use drain_sock_raw (#27714)
use drain_sock_raw
old-commit-hash: fb03e225fd5b815f1600ec71848e94ddb55eb597
2023-03-28 00:25:20 -07:00
Shane Smiskol 284e1bd0d0 Nissan: add missing FW for 2020 Leaf (IC) (#27670)
add nissan leaf ic fp
old-commit-hash: 3555a08c17af6c1ef22d75345a78ff6f670b1d66
2023-03-27 16:11:59 -07:00
erotisch 919b0e37e3 HKG: add missing 2019 Genesis G70 FW (#27676)
* Update values.py

* Update values.py

* Update values.py

* fix FW

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: c0b2e15a60f5c5592a5097ab79c309bc2b0fb2f6
2023-03-27 15:37:54 -07:00
Erich Moraga f49de14ac1 Add missing TUCSON_4TH_GEN fwdCamera/fwdRadar f/w (#27708)
`chodochodo#7177` 2022 Hyundai Tucson 2.4L ICE  DongleID/route c5ba26f7af98e5d1|2023-03-27--14-33-34
old-commit-hash: 7284969eb8c098efce07bdd6937b2a1a3f50f0ad
2023-03-27 15:06:47 -07:00
Shane Smiskol 8c7093c2d8 Toyota: add missing FW versions for C-HR Hybrid 2021 (#27687)
add another 2021 CHR H
old-commit-hash: 12e46e5d4abd8d2a00af6370c275ad4c8462a15a
2023-03-27 14:22:25 -07:00
pugdaddys 2bc3f8dc49 VW: add missing Audi A3 2016 FW (#27699)
* Update values.py

* Update values.py

* Update values.py

* missing radar

* convert to hex

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 8a36887dfbef0da9a754d7b9a8decb564ce277ab
2023-03-27 13:58:30 -07:00
Shane Smiskol cee3c52af2 bump cereal (#27704)
old-commit-hash: 86f6c315bc3712c924ef709a4de59dade6d05070
2023-03-27 13:30:22 -07:00
Shane Smiskol 53bf3256f3 FPv2: match brand against extra ecus (#27688)
* query extra ecus (still need to match)

* match against extra ecus

* clean p

* clean p

* switch that around

* can clean that up

* values
old-commit-hash: 6f35d23c062ab000af90f5a0d7704eab8682479d
2023-03-25 01:07:58 -07:00
Shane Smiskol 5a3c857303 FPv2: replace temporary variable with config (#27692)
* query extra ecus (still need to match)

* match against extra ecus

* clean p

* clean p

* switch that around

* can clean that up

* values

* rm

* not used
old-commit-hash: 084e83cda1415189539755343e74e9342e7ec42d
2023-03-25 01:02:11 -07:00
Shane Smiskol 534801a39c Toyota: use DBC for alt brake safety param (#27686)
* use DBC

* use DBC
old-commit-hash: b61a0b785af911d12816d405edc8e904416a6271
2023-03-24 20:07:11 -07:00
Shane Smiskol 06f7bb7bbc VW: add missing Arteon 2019 FW (#27671)
* add missing arteon 2019 fw

* duplicate
old-commit-hash: d443d8f5e30e2d9110893c181d433fe9af2d91e9
2023-03-24 19:11:50 -07:00
Shane Smiskol eeacd59988 Lexus: 2017 RC is not supported (#27678)
we don't support 2017
old-commit-hash: c2bdbaa3462808bbe274d0adcb4f08ba9609dd90
2023-03-24 17:48:31 -07:00
Shane Smiskol 4a73806068 Lexus: LSS is standard on ES (#27684)
* standard on 17 and 18 https://dealerinspire-brochure.s3.amazonaws.com/834.pdf & https://www.lexus.com/content/dam/lexus/documents/brochures/models/2018/MY18-Lexus-ES-and-ES-Hybrid-Brochure.pdf

* update docs
old-commit-hash: b2beb3792ec34dd1cc3bf554b845f5f496812343
2023-03-24 17:44:49 -07:00
Shane Smiskol b6897bce1a FPv2: only set multiplexing when needed (#27669)
* only set multiplexing if bus matters

* these don't matter anymore
old-commit-hash: 9e023b3eadcf4d8ed0b59fd5fbe4041342be322f
2023-03-24 00:29:48 -07:00
Shane Smiskol 7a56692c24 FPv2: log OBD multiplexed requests (#27667)
* log multiplexed requests

* bump cereal

* bump cereal to master
old-commit-hash: 2ad9eec882e6be5aff4ae6a55e3ffb6f76a3d85b
2023-03-24 00:25:37 -07:00
Shane Smiskol c96b1c3040 Hyundai CAN FD: log ADAS parking ECU FW version (#27662)
* add parking and hvac ecus

* needs a new query sadly

* move space

* temp

* comment

* fix

* mid-solution stash

* pretty cleannnnnnn

* everything seems to be working

* bump cereal

* bump to master

* bump to master

* don't multiplex when we don't need it
old-commit-hash: 021661b316f488682c9e4c1b586c9fb51384cdf6
2023-03-24 00:12:25 -07:00
Shane Smiskol 528f7e5302 FwQueryConfig: auxiliary field to add requests for first aux panda (#27666)
* mid-solution stash

* pretty cleannnnnnn

* everything seems to be working

* rename

* space

* reduce obd multiplexing transitions from 3 to 1 (0.3s to 0.1s)
old-commit-hash: ecbd7150eb68ca79737c43914e91dbc7c633c812
2023-03-23 23:47:15 -07:00
Shane Smiskol e0bebea962 Hyundai CAN FD: log hvac FW version (#27668)
* add parking and hvac ecus

* needs a new query sadly

* move space

* temp

* comment

* fix

* mid-solution stash

* pretty cleannnnnnn

* everything seems to be working

* bump cereal

* this is a smaller diff, easier to merge

* bump cereal

* just hvac

* bump to master
old-commit-hash: 5ab45890aa28e4d97044bb80564de1fb1c2b5492
2023-03-23 23:31:38 -07:00
Shane Smiskol cdcf06e9e2 boardd: ability to switch between ELM safety params (#27656)
* indecisive

* rename to generic FW query

* remove code and update comment

* we need this to start off, unless we set multiplexing immediately

* draft

* draft 2

* try that

* can't do this either, boardd might read Enabled after removing, but before setting new Request param

* this should work

* use one less param

* fix params

* match behavior (set all pandas to safety param of 1, disabling multiplexing for fingerprinting

* clean up (some tests may temp break)

* fix param name and sort

* time it

* yes it does matter

* add to hyundai's bus 5 query

* remove hyundai for now

* this should work

* clean up

* clean up

* flip argument around, clean up

* fix test_startup

* some clean up

* rm line

* comment makes more sense

* required typing

* clean up common type

* comments

* Update selfdrive/car/car_helpers.py

* line

* whoops, need to set before vin!

* fix debug

* annoying

* more debugging

* bug fix (needs both keys always)

* debuGG

debuGG

* Revert "debuGG"

This reverts commit 55b2f429324c0b92d5cfb2cabf8b20db1e166248.

* Revert "more debugging"

This reverts commit 02934c3403ad5270f03093508b704c151d1ccb2a.

* Revert "annoying"

This reverts commit 8b4e5e09989f9a0217e3ec1c0ba68735929b7366.

* clean that up

* bumpback

* bumpback

* every second write param

* flip

* stuff

* move up?

* fix timing out in CI

* rm
old-commit-hash: 42449b482d46565242341ca2d7e3a7255572f6a2
2023-03-23 00:14:31 -07:00
Shane Smiskol 746f0ba63b fw_versions: cleanup common types (#27658)
* use common type

* use it in fw_versions

* add typing to queries
old-commit-hash: 727a94cc7837e8556a243170111294440722a233
2023-03-22 21:58:04 -07:00
Shane Smiskol 0759da6d09 test lateral limits: remove Konas from blacklist (#27424)
* remove konas from blacklist

* update measured accel

* remove

* no longer needed
old-commit-hash: 8b8c4d810f84ae980f0a99c48e7fccc5888dc091
2023-03-22 13:37:09 -07:00
Shane Smiskol f20e33a2c5 GM: common longitudinal actuator delay (#27357)
* common longitudinal actuator delay

* comment

* remove dup

* move

* clean up

* Update ref_commit
old-commit-hash: aefe636cc1b415f4ebf63f71ae9ae298461e37ac
2023-03-22 00:23:51 -07:00
Shane Smiskol e83edd554a Toyota LTA: allow no torque (#27646)
* no torque

* Update ref_commit

* Update ref_commit
old-commit-hash: aeb905a2bf64475d3d33b70da6e8a60e4b0985c9
2023-03-21 19:21:11 -07:00
Shane Smiskol bffa466e63 Chrysler: add FW versions for 2019 Jeep Grand Cherokee (#27649)
add FW versions for Jeep 2019
old-commit-hash: 660b9e9718129d80afc0cb3d235fcefb22ba0fc6
2023-03-21 19:16:05 -07:00
Lee Jong Mun aa1cfcbffb Kia: add missing Korean EV6 fwdCamera FW (#27641)
* Kia: add missing Korean EV6 fwdCamera FW

* Apply suggestions from code review

* Update selfdrive/car/hyundai/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 114b1e4a143acd1d20c2513035873c15228cef8c
2023-03-21 18:41:31 -07:00
realfast 9d281db35e Ram: FW version dump (#27083)
* Add extra firmwares and sort for rams

* Added another ECU

* Update selfdrive/car/chrysler/values.py

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

* Apply suggestions from code review

* sort

* formatting

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: aa4286153a2fb2a003307a15fbcb91ffd05d6ec2
2023-03-20 22:54:55 -07:00
Shane Smiskol 6155af477f Chrysler: add FW for 2019 Ram 3500 (#27636)
* Add 2019 Ram 3500

* wrong ones

* missing EPS
old-commit-hash: 4a844078cd675ca2c75d822f5d776ca8b0b71dbf
2023-03-20 21:39:06 -07:00
Shane Smiskol 8e9185cf01 Chrysler: add FW for 2023 Ram 1500 (#27634)
add FW for 2023 Ram 1500
old-commit-hash: aa0421ffd7dd73976b45635cb62182d66c4f1613
2023-03-20 21:20:35 -07:00
cpaioletti 3b31fffd79 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>
old-commit-hash: 285204c5d1e83944d69dc7126c7c1d7e7921f9a2
2023-03-20 13:28:52 -07:00
Luqi Pan e6574822e0 Add fwd camera value for 2023 GV60 Advanced (#27617)
old-commit-hash: fa01a8e6b37aa76636fa314670657b7258f272d7
2023-03-20 13:24:41 -07:00
Erich Moraga 62b2f0374c Add missing CAMRY_TSS2 engine & fwdCamera f/w (#27619)
`ChromeNinja#0001` 2023 Camry ICE  DongleID/route a9c072de54f9194d|2023-03-17--17-24-56
old-commit-hash: 744f1e4f5764146927b830c34cd11ef9b67ecc2c
2023-03-20 13:22:50 -07:00
Lee Jong Mun b11e443200 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>
old-commit-hash: e5069058f0291c1a285ae530d57f4cf0a9813b84
2023-03-20 13:21:59 -07:00
tonzy74 b3eecb54c6 Kia: Sorento 2021 support (#27623)
* Update values.py

* Update selfdrive/car/hyundai/values.py

* update docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: bfbfdb28519a6da890569d30dfa325df53a7ef22
2023-03-20 13:18:07 -07:00
koch-cf b39f632403 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>
old-commit-hash: ae423a68686ca258c40fa679b931011e99f5f780
2023-03-20 13:10:19 -07:00
Shane Smiskol 472d08fc2c 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>
old-commit-hash: 57c4d78869ad197189427ab68c45ac8cc7bbd9d0
2023-03-17 00:03:21 -07:00
Kay Oh 9633a8f6e9 Add missing FW for 2022 (2023MY) Hyundai IONIQ 5 (#27590)
Update values.py

Korean Ver.
old-commit-hash: b5198f99ea66c68aab87f4d9e525d306ebe97b72
2023-03-16 23:08:51 -07:00
Saber422 1451216370 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>
old-commit-hash: 87f3a658a7f3a52877136f141ef528d0864bf04b
2023-03-16 15:03:22 -07:00
Oxygen 262fe97ee9 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>
old-commit-hash: 61f25b5b958ec5f9d420fdd1c607d6665e9b48b1
2023-03-16 14:48:29 -07:00
martinl dee1d69ec0 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>
old-commit-hash: 0d1e272b917b8c1a98453bbe78337a42cd8451fe
2023-03-16 14:32:22 -07:00
Shane Smiskol c63da0423b test: fix Honda and Hyundai tests (#27606)
test honda and hyundai
old-commit-hash: fe358102f2df380c070b3cfaed28cd3c9d2ea91b
2023-03-16 14:31:55 -07:00
Saber422 47821756d8 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>
old-commit-hash: cb5573cbfd4b674d431be1fef04afe9928b58b83
2023-03-16 14:25:31 -07:00
klaw73 e439c582c8 Add missing FW for 2020 Lexus NX Hybrid (#27565)
* Added fw for 2020LexusNXH

* Added fw for 2020LexusNXH

* Add fw to 2020Lexus NXH
old-commit-hash: d5dfd3f1a69772c68a24a9069c50cc7fdb7b793c
2023-03-16 13:38:02 -07:00
freddiebd 35b7915346 VW MQB: Add FW for 2016 Golf Mk7 (#27581)
old-commit-hash: a11a5d6231c5d7e677dbd5d13a1ad3b0c21608bc
2023-03-16 13:34:52 -07:00
kevinsdev 30ddef446a 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
old-commit-hash: e6c514eb72f0c87186c637c8bbd9f19eabcaa140
2023-03-16 13:24:22 -07:00