Commit Graph

271 Commits

Author SHA1 Message Date
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: 1853d6f40e
2023-03-28 01:53:48 -07:00
Shane Smiskol
eeacd59988 Lexus: 2017 RC is not supported (#27678)
we don't support 2017
old-commit-hash: c2bdbaa346
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: b2beb3792e
2023-03-24 17:44:49 -07:00
Shane Smiskol
8e9185cf01 Chrysler: add FW for 2023 Ram 1500 (#27634)
add FW for 2023 Ram 1500
old-commit-hash: aa0421ffd7
2023-03-20 21:20:35 -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: bfbfdb2851
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: ae423a6868
2023-03-20 13:10:19 -07:00
Jason Young
ee382b5275 VW MQB: Add FW for 2017 Škoda Kodiaq (#27532)
* VW MQB: Add FW for 2017 Škoda Kodiaq

* retry CI
old-commit-hash: 3ff8fc110c
2023-03-08 13:06:17 -08:00
Adeeb Shihadeh
3a968c67e1 loggerd: move to system/ (#27534)
old-commit-hash: 94eb215980
2023-03-08 11:20:49 -08:00
Adeeb Shihadeh
47d30174d3 sensord: move to system/ (#27531)
* sensord: move to system/

* add gitignore to releaes files
old-commit-hash: 6f40f0d442
2023-03-08 10:56:54 -08:00
Jason Young
f442e12c1f VW MQB: Škoda Fabia Mk4 (#27520)
* VW MQB: Škoda Fabia Mk4

* typo
old-commit-hash: 186c48137a
2023-03-07 10:39:36 -08:00
Shane Smiskol
042ff4e58f Car docs: add Toyota Camry 2023 (#27483)
* We support 2023 Camry

* update docs
old-commit-hash: 9245335e8c
2023-03-02 16:44:58 -08:00
Webomcar
1340dc6dff Add missing FW for Toyota C-HR Hybrid 2020 (#27366)
* Update values.py

* Verified C-HR 2020 is TSS-P

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 500b1b4a5c
2023-02-20 15:23:42 -08:00
Shane Smiskol
cb47436bf9 Toyota: expand C-HR Hybrid model years (#27402)
we probably support 2021 too
old-commit-hash: 1bd15f00a7
2023-02-20 14:07:22 -08:00
Shane Smiskol
7cbb75f4c2 HKG: update Santa Cruz model years (#27401)
2021 Santa Cruz doesn't exist
old-commit-hash: 55da5175ae
2023-02-20 13:29:37 -08:00
Matt Crum
4b7fb0f4a4 Added FW for 2023 Hyundai Santa Cruz Limited (#27395)
* Update values.py

Added additional firmware version for Santa Cruz 1st Gen forward camera
Updated CAR.SANTA_CRUZ_1ST_GEN's information to include 2023 models

* Update values.py

added fwdRadar firmware version

* Update CARS.md

Updated to include 2023 Hyundai Santa Cruz
old-commit-hash: 4918daaf5d
2023-02-20 13:25:46 -08:00
Ricky Gilleland
701bde9de3 GM: Escalade 2017 support (#27276)
* Initial 2017 Escalade values

* update docs/CARS.md

* revert back to v1 fingerprint & add test route

* revert bad merge

* update fingerprint

* update

* update

* Update selfdrive/car/gm/values.py

* Update selfdrive/car/gm/values.py

* no engine

* Try global tune

* pcm

* Driver Assist Package has ACC, and includes LKAS from previous package

* update docs

* add to releases

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: b76795d7f0
2023-02-15 17:07:24 -08:00
Kyumin Han
87d0f2a829 HKG: remove Kia Stinger 2018 from legacy safety mode (#27302)
* Remove Kia stinger from legacy safety system array

Enable OP long

* update docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 7b654337d6
2023-02-11 00:04:17 -08:00
Manu
15341714b3 Toyota: C-HR Hybrid 2022 support (#27269)
* Added C-HR 2022

* add harness link

* Revert "add harness link"

This reverts commit 54eaf4a5d83b2e844175cdcf4637329490e1a5b0.

* Revert "Added C-HR 2022"

This reverts commit b75a54886fbd0236a309b5c89bf74fd748a5b9e2.

* Added Toyota C-HR Hybrid 2022

Added Toyota C-HR Hybrid 2022

* another year

* it's a hybrid

* fix platform name

* new route

* add to releases

* right right, it's a hybrid

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 5ee4740821
2023-02-09 16:54:25 -08:00
Shane Smiskol
58e6704a6f GM: split steering speeds (#27277)
* split steering speeds

* update docs

* Update ref_commit
old-commit-hash: 29ca52bc48
2023-02-09 16:53:16 -08:00
Jason Young
b84b6bd39c VW MQB: Add FW for 2023 Volkswagen Tiguan (#27273)
* VW MQB: Add FW for 2023 Volkswagen Tiguan

* regen CARS.md
old-commit-hash: be6f5c6a33
2023-02-09 12:34:08 -08:00
Jason Wen
3c3f0da05a HKG: Car Port for Kia Niro Hybrid 2023 (HDA1) (#26827)
* HKG: Car Port for Kia Niro Hybrid 2023 (HDA1)

* bump opendbc

* bump

* Found gear signal

* Only set one flag

* bump opendbc

* Update CARS.md

* Update routes.py

* bump opendbc

* Update CARS.md

* some values cleanup

* new route with rlogs

* set from data

* merge

(3854+3391+3227+3336)/4

* fine move back down here for now

fine move back down here for now

* Update selfdrive/car/hyundai/interface.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: dae1331817
2023-02-08 19:21:50 -08:00
eFini
03bfa64a26 Toyota: Car Port for Toyota C-HR 2021 (TSS2) (#27212)
* Toyota C-HR 2021 TSS2 Port

* remove

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 134766fe26
2023-02-08 18:05:23 -08:00
Erich Moraga
bea2c7cbf3 Add sveral missing LEXUS_ESH_TSS2 firmwares (#27219)
* Add sveral missing LEXUS_ESH_TSS2 firmwares

@salmankali#7352 2023 Lexus ES 300h  DongleID/route c010a8cd3af884f5|2023-02-04--03-27-12

* docs.py gen'd CARS.md w/ 2023 Lexus ES Hybrid update
old-commit-hash: d662f6d289
2023-02-04 15:11:08 -08:00
pbkompasz
f255bb481d docs: Add cabana to tools (#27208)
old-commit-hash: 73a8d6b951
2023-02-03 15:30:59 -08:00
Jason Wen
061c6ca091 HKG: Car Port for Kia K5 Hybrid 2020 (#26947)
* HKG: Car Port for Kia K5 Hybrid 2020

* Add test route (Experimental Mode)

* No abs

* remove extra trans

* move up

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 1816b499c4
2023-02-02 22:58:29 -08:00
mrquell
b49290d69c Support for Kia Niro PHEV 2020 (#27158)
* Update values.py

* Update values.py

Added support for Kia Niro PHEV 2020

* Update values.py

Added support for Kia Niro PHEV 2020

* Update values.py

Changed the fingerprint to be 4 seperate IDs

* Apply suggestions from code review

* generate

* gen docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 83af2182b4
2023-02-01 17:04:48 -08:00
AlexandreSato
96f9787ee6 Toyota: add FW engine for Brazilian Corolla Hybrid (#26943)
* Add miss FW engine for Toyota Corolla Hybrid

Test route `   4f50e44908cc46b8|2023-01-12--21-08-57  `

* braziliam toyota corolla hybrid 2023

is US affected by TSK?

* add a new entry for south america

* Revert "add a new entry for south america"

This reverts commit 28454c04cc93dc241da3b004a7154e44313e85c9.

* CARS.md is autogenerated!

* delete CARS.md to fix merge conflict

* space

* i don't know if we know for sure not all international 2023's have TSK

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: ec4c553542
2023-01-31 15:46:57 -08:00
Sean Cox
375fe5f277 Fix 2017 Genesis G80 car harness and shop link in docs (#27127)
* Fix 2017 Genesis G80 car harness

* Revert "Fix 2017 Genesis G80 car harness"

This reverts commit 2d5a92b7f0972c7ab61b132dce6cfebe978781c9.

* split and make G80 2017 have J harness

* generate and change min enable speed

* adjust min steer speed

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: cf94394026
2023-01-31 12:02:05 -08:00
Jason Young
96c273b7a9 VW MNB: Volkswagen Crafter Mk2 (#26006)
* VW MNB: Volkswagen Crafter Mk2

* Crafter has a min steer speed :(

* add to non_tested_cars for now

* autogratitude

* Revert "autogratitude"

This reverts commit 8f19085bfa3424a8a75d7c95f32be8ecb010f8f4.

* autogratitude

* regen docs
old-commit-hash: 5ce7572b46
2023-01-31 11:00:10 -08:00
Shane Smiskol
8f4b655b85 HKG: Update Genesis GV60 harnesses (#27033)
* Update values.py

* generate
old-commit-hash: 752b4edb92
2023-01-26 12:54:53 -08:00
Jason Wen
a00c1d3fd5 Hyundai: Add FW Versions for Elantra 2023 (#27026)
* Hyundai: Add FW Versions for Elantra 2023

* only short where possible

* regen

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: d1c87faedc
2023-01-24 16:11:12 -08:00
Shane Smiskol
7d047ac788 Car docs: link to car harness on shop (#26957)
* harness links

* test

* fix for no years cars

* match order of docs
old-commit-hash: 6527f2c825
2023-01-13 17:52:24 -08:00
Shane Smiskol
cc44b893c4 docs: open footnotes in new tab
old-commit-hash: 47cca343ec
2023-01-12 15:07:14 -08:00
Shane Smiskol
dfba489902 red panda footnote: finish thought (#26933)
missing `car`
old-commit-hash: df394004d5
2023-01-12 14:58:47 -08:00
Shane Smiskol
08269a6064 Car docs: show video link (#26907)
* add videos to gh docs

* fix

* add icon

* fix

* try this

* white inner triangle

* width

* try height

* use video_icon in template

* clean up

* rename

* smaller
old-commit-hash: de6f9010fa
2023-01-11 23:30:11 -08:00
Jason Wen
fe85cb28dd HKG: Car Port for Kia Sorento 2022 (#26874)
* HKG: Car Port for Kia Sorento 2022

* Harness K

* SCC is on bus 4

* Add test route

* seems reasonable

* more interesting segment

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 69f8ac0b65
2023-01-11 21:17:58 -08:00
Adeeb Shihadeh
a92cf3d5ff docs: update CAN FD footnote (#26896)
* docs: update CAN FD footnote

* touch up
old-commit-hash: bf34110572
2023-01-07 11:05:56 -08:00
Mauricio Alvarez Leon
a0cde2999f Hyundai: add FW versions for Sonata 2023 (#26880)
* Update Hyundai Sonata year to 2023

* update docs

* update docs

* update docs

* Update values.py

* and engine

Co-authored-by: Laptop Researcher <laptop@researcher.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 4145bc8379
2023-01-06 16:49:27 -08:00
Adeeb Shihadeh
b3e47c691b move all third party stuff into third_party/ (#26853)
* mv fastcluster

* move msm_kgsl.h

* camerad include

* update path

* mv pyextra

* fix tici build

* add acados_template to release build

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: cd8e03d53e
2022-12-31 21:00:50 -08:00
Erich Moraga
02b548fe8a Add several missing HIGHLANDERH_TSS2 firmwares (#26844)
* Add several missing HIGHLANDERH_TSS2 firmwares

`@joeswisher#3240` 2023 Highlander Hybrid  DongleID/route 1cdd18b56163c309|2022-12-29--23-18-05

* docs.py gen'd CARS.md w/ 2023 Highlander Hybrid update
old-commit-hash: a7155a43b7
2022-12-30 16:16:24 -08:00
Erich Moraga
1e6d3fc374 Add several missing HIGHLANDER_TSS2 firmwares (#26801)
* Add several missing HIGHLANDER_TSS2 firmwares

`@randywf#0891` 2023 Toyota Highlander (ICE)  DongleID/route d9049fcd50225c9d|2022-12-14--12-16-16

* docs.py gen'd CARS.md w/ 2023 Highlander update
old-commit-hash: 6d8f166722
2022-12-18 20:09:40 -08:00
Jason Wen
92391790be HKG: Add FW Versions for Southeast Asia Kia EV6 2022 HDA1 (#26795)
HKG: Add FW Versions for Southeast Asia Kia EV6 2022
old-commit-hash: a143ebf648
2022-12-14 14:05:13 -08:00
Jason Wen
31d14da03e Hyundai: Add FW Versions for Southeast Asia 2022 Ioniq 5 HDA1 (#26755)
* Hyundai: Add FW Versions for 2022 Ioniq 5 HDA1

* Check IONIQ_5 fwdCamera FW to segregate radar and camera SCC cars

* Test things out

* Is it that simple?

* Revert "Is it that simple?"

This reverts commit 6d48945925597fa686a7c6c534960487bb811e26.

* Revert "Test things out"

This reverts commit 772cd5f47ab4d92c6ba69e77f44ba3799849d399.

* Revert "Check IONIQ_5 fwdCamera FW to segregate radar and camera SCC cars"

This reverts commit 3ca1a2d6faa02e86b8fa628985cd5d76e1763688.

* No ADAS ECU detected, but has all messages for HDA2

* Check DISTANCE_UNIT on CRUISE_BUTTONS

* Revert "Check DISTANCE_UNIT on CRUISE_BUTTONS"

This reverts commit 9cbfe520f3406f8b1d66a56608a80417fea54871.

* Check DISTANCE_UNIT on CRUISE_BUTTONS for all CAN-FD HKG

* Update selfdrive/car/hyundai/interface.py

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

* Test fingerprint

* Southeast Asia specific

* Revert "Test fingerprint"

This reverts commit 33bb30b750c09f6d11e1b04d72e47f9354bdc9d5.

* updatedocs

* rename

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 6fe592c678
2022-12-14 01:57:17 -08:00
Jason Wen
f1c3967491 Hyundai: Add FW Versions for 2017 i30 PD (Elantra GT) (#26760)
* Hyundai: Add FW Versions for 2017 i30 PD

* Update docs

* Update docs

* Update selfdrive/car/hyundai/values.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: bac56f78c9
2022-12-13 00:42:50 -08:00
Jason Wen
eaecbb8995 HKG: Car Port for Genesis GV60 2022 (#26777)
* HKG: Car Port for Genesis GV60 2022

* Ugh, keeps forgetting torque params

* Update docs

* Test route

* more interesting segment

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 1f774e4ec3
2022-12-13 00:21:58 -08:00
Shane Smiskol
ecf87de6da Car docs: update CAN-FD footnote (#26718)
* Update footnote

* link to obd-c

* update
old-commit-hash: cf3ced9d17
2022-12-06 23:32:58 -08:00
alancyau
510ad3a1c3 Mazda: Add support for 2023 CX9 in CARS.md (#26717)
* Mazda: Add support for 2023 CX9

See https://github.com/commaai/openpilot/pull/26704 for the 2023 CX9 firmware.

* update values

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 47977b2c0e
2022-12-06 16:37:18 -08:00
Shane Smiskol
bc903ca4d9 Car docs: move shop footnotes into openpilot (#26715)
move shop footnotes into openpilot
old-commit-hash: 5661738372
2022-12-06 15:00:11 -08:00
Shane Smiskol
3082c04e53 Revert "Toyota: Don't Set Standstill Bit on TSS-P Prius" (#26709)
Revert "Toyota: Don't Set Standstill Bit on TSS-P Prius (#26671)"

This reverts commit cc17fdee738ef497f4c437ef495d50aa5fb9f995.
old-commit-hash: f36e8bc3c7
2022-12-05 17:35:19 -08:00
Shane Smiskol
740670be1c Hyundai: Tucson 2023 support (#26427)
* Hardcode fingerprint

* no skipping

* rev

* the SE does not have SCC https://cdn.dealereprocess.org/cdn/brochures/hyundai/2022-tucson.pdf

* revert

* adjust weight

* add versions for 2023

* update docs

* fingerprint properly

* add package for 2022 but comment out

* updatedocs

* update route

* bump

* bump!

* 2022

* Update selfdrive/car/tests/routes.py
old-commit-hash: 973ecdc0c9
2022-12-05 15:24:54 -08:00