Commit Graph

1221 Commits (master)

Author SHA1 Message Date
Jason Wen 3a6039e0ff
HKG: Add FW for 2020 Genesis G70 (#24045) 2022-03-25 19:04:33 -07:00
HaraldSchafer adf34c3414
CarParams: remove max steer (#24044)
* Remove max steer

* Update ref
2022-03-25 17:33:11 -07:00
Adeeb Shihadeh 8af20af66d
pylint: enforce indentation (W0311) (#24039)
* pylint: enforce indentation (W0311)

* few more
2022-03-24 23:23:29 -07:00
Shane Smiskol c88ced1f10
Honda Nidec: don't actuate while longitudinal is inactive (#24028)
* don't command any pcm_speed when long is not active

* update refs
2022-03-23 18:30:05 -07:00
Adeeb Shihadeh a55e25d9d2 test models: skip with flag 2022-03-23 16:42:04 -07:00
Shane Smiskol 85d8997a8a
docs: support for automatically generating website vehicles page (#24020)
* add vehicles.vue template

* add original vue file

* stash

* stash

* clean up a bit

* add template for now

* implement footnotes and tier copy

* no more generator

* convert to 2 spaces

* should work, now onto vue

* does GH handle this html well?

* fix

* auto-generate descriptions and make tiers' maps non-str

* remove old files

* move template specific variable into templates, should be a bit simpler

* js template is simplier too now

js template is simplier too now

js template is simplier too now

* add video links from the nice car_info

* make rows attributes

* clean up

* fix

* remove template

* experiment with video links in GH

add image

how does this look?

fix

* Revert "experiment with video links in GH"

This reverts commit 8375e717b5.

* sort tier_car_info in place

* unused Tuple

* no type check

* fix script
2022-03-23 13:42:53 -07:00
Robbe Derks 1035b910f0
Tesla: disable temp fault on hands on error (#24014) 2022-03-22 21:02:28 +01:00
Robbe Derks 25219442d1
update tesla ap2 fingerprint after OTA update (#24013) 2022-03-22 11:07:12 +01:00
Adeeb Shihadeh c76434ca9f skip test models in unittest discovery 2022-03-21 13:42:07 -07:00
Shane Smiskol 20085620db
Mazda: no steer unavailable alert for cars with full range steering (#23998)
* allow steer if minSteerSpeed is <= 0

* need to understand lkas_blocked, can we just use that?

need to understand lkas_blocked, can we just use that?

* Revert "need to understand lkas_blocked, can we just use that?"

This reverts commit 8793fb562d.

* better

* fix

* little more clear

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-03-20 16:41:18 -07:00
Shane Smiskol 15368ec3d1
Support Toyota Alphard Hybrid 2021 (#24003)
* add 2021 Alphard Hybrid

revert

* fix fp name

* run docs generator

* Add to releases

* test route

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-03-20 16:40:25 -07:00
Shane Smiskol 247b66f4a8
Toyota: Support Avalon Hybrid 2022 (TSS2.5) (#23892)
* Add Avalon Hybrid 2022

* update docs

* set a tune

* add test route

* uploaded route
2022-03-19 13:14:04 -07:00
Shane Smiskol 7a2f3c023e
Hyundai: clean up CarInterface apply function (#24000)
* clean up Hyundai CarController

* remove
2022-03-18 21:08:15 -07:00
Shane Smiskol 70286766da
Honda: clean up CarInterface.apply and CarController (#23876)
* clean up honda/carcontroller

* indentation

* fixes

* clean up apply function

clean up apply function
2022-03-18 19:10:59 -07:00
Adeeb Shihadeh 2219cb4478
cars: cleanup CS usage (#23957) 2022-03-18 15:39:22 -07:00
Shane Smiskol 6c7d178d96
Hyundai: send driver override state when gas is pressed (#23745)
* send pre-enable state when gas is pressed

formatting and it's out

forgot one

allow gas press

show toggle

revert changes

revert changes

* revert change
2022-03-18 14:54:20 -07:00
Shane Smiskol 628eecff06
CARS.md tweaks (#23983)
* CARS.md fixups

* wrong one

* sort footnotes

* Mazda CX-9 has good torque

* Try this

* generate

* yup, os uses native filesystem order
2022-03-17 16:11:03 -07:00
Shane Smiskol 31a6b141d6
Docs: auto-generate supported cars documentation (#23762)
* make CAR class enum, and values.py formatting

* Revert "make CAR class enum, and values.py formatting"

This reverts commit 04d9817e9d.

* stash

* add supported packages and model years

* don't change model years in fps

* move Lexus to info dict and make int enum

* remove sometimes wrong model years from name string

* use enum names

* convert Honda's values

* nice names

* use name

* GM

* Mazda, Ford

* Hyundai: WIP

* finish Hyundai

* fix

* Nissan

* Subaru

* Tesla

* formatting is for another PR

* Chrysler: todo: unify the Pacificas?

* do volkswagen

* this isn't a zoo

* skip enums for now

* Update selfdrive/car/volkswagen/values.py

Co-authored-by: Jason Young <46612682+jyoung8607@users.noreply.github.com>

* set All

* temp cars

* auto-generate CARS.md

* update type hinting

* add generated file

* add longitudinal star to cars that support disabling radar

* add TODO

* add notes

* add min_steer_speed exception for hatchback

* add minimum steering speeds

* Add exceptions and run generator

* Missing Telluride

* fix Prius v

* missing Prius Prime

generate

* start to convert years to strings

* Fixup Hyundai

* convert year sets to strings

* handle this

* missing S3

* Fix and add all missing cars (verified with script

* Supported Package fixes

* add get_tiered_cars

* Check radarOffCan for removing most Honda from op long

* Update for Avalon stop and go update on master

* Fix missing car params

* add my temporary script i'm using to verify new generated DBC

add my temporary script i'm using to verify new generated DBC

* generate with jinja template

* add header and footer

* clean up

* rename

rename

* add exceptions. jinja is nice, but why are its loop indexes starting at 1?

* add list of known car videos

* See how these look

* Add nice table formatting for column description

Add nice table formatting for column description

* generate

* consisten br tag

* small clean up

* temp

* Move car videos into CarInfo

* add new copy and rename to footnotes

* Revert "temp"

This reverts commit 93c3fce1d3.

clean up

* generate

* replace with svg

* simplify a bit

* add footnotes to CarInfo

* move some variables to docs.py

* Add video link for Acadia

* Make Footnote an enum so we don't use random ints

* static analysis fixes

* move to CARS.md

* fix last missing footnote

* add to release files

* rm test file

* use svg

generate

* fix sorting

* not needed

* not sure how this got here

* remove Sedan/Couple and add Diesel footnote

* finish todos

* move make specific footnotes to selfdrive/car/*/values.py

rename

* change to zeros

* align bottom to center

* Apply some suggestions

* Update selfdrive/car/mock/values.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update copy

* Try headers + bullet points

* somehow better

somehow better

* finish updating copy

* move template and add links to sups

* stars shouldn't be clickable

that didn't work

try this

try this

this is better

* add type hints to CarInfo

add more type hinting

* optional needs a type and any covers all (?)

* move good steering torque to */values.py

* dataclasses are much nicer than attr

* use tuple

* Update docs/cars.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* suggestions

* suggestions

* suggestions

remove

* clean up a bit

* add more type hints

* center stars and remove hardcoding from template

* update copy

* Add test

* Fix types

Fix types

* add supported cars documentation test

* clean up

* replace with docs_definitions

* Add back Footnote enums

* Ah so these are like fstrings!

* Update selfdrive/car/CARS_template.md

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update selfdrive/car/docs.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update year from master merge

* Fix longitudinal star from merge

* sort properly stars by Column enum

* clean up

* HKG: Sorry guys

* Prius V gets FSR star, like others

* Update selfdrive/car/docs.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* update comment

* No Prius docs change for now

Co-authored-by: Jason Young <46612682+jyoung8607@users.noreply.github.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-03-16 21:27:05 -07:00
Shane Smiskol 3a7edeea32
Hyundai: set radarOffCan by radar DBC (#23981) 2022-03-16 20:27:21 -07:00
Shane Smiskol facf6c109d
Toyota: clean up CarInterface apply function (#23714)
* clean up CarController with intermediate variables only accessed once or twice

* format

* fixes and move frame to CarController
2022-03-16 20:06:17 -07:00
Jason Young 62bb43b7e2
VW MQB: Add FW for 2021 Volkswagen Jetta (#23979) 2022-03-16 17:06:42 -07:00
Adeeb Shihadeh bae78dd46b
don't read params in car interfaces (#23978) 2022-03-16 15:17:47 -07:00
Adeeb Shihadeh 20db4525a2
Fix controls mismatch on button enable cars + test against panda safety (#23975)
* test models: check button enable cars against panda safety

* gm too

* cleanup
2022-03-16 14:54:22 -07:00
Shane Smiskol 5fe00fb773
Move gas/brake pedal event logic to controlsd (#23850)
* move some state machine logic to controlsd

move some state machine logic to controlsd

* same order

same order

* move unsafeMode up

* disable at standstill

* save last CS

save last CS

* do we need to copy at all?

* don't copy

* rename

* Update selfdrive/controls/controlsd.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Revert "Update selfdrive/controls/controlsd.py"

This reverts commit 10bb51a0f0.

* Update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-03-15 20:51:07 -07:00
Adeeb Shihadeh 7deba690e2
Honda: fix possible controls mismatch on Nidecs (#23973)
* Honda: fix possible controls mismatch on Nidecs

* bump panda
2022-03-15 17:55:15 -07:00
cydia2020 d7c758d4bf
Toyota: parking brake state (#23970) 2022-03-14 19:19:31 -07:00
Adeeb Shihadeh ae19308e83
add parkingBrake to carState (#23968)
* add parkingBrake to carState

* fix gm
2022-03-14 16:32:20 -07:00
Adeeb Shihadeh 8718a59330
cleanup selfdrive/test (#23967)
* move test routes and test_models

* move fingerprints

* little more

* remove that
2022-03-14 15:46:16 -07:00
Adeeb Shihadeh 5c3f3e44bc
break up selfdrive.config (#23959)
* break up selfdrive.config

* add to release files

* fix import order
2022-03-13 21:42:39 -07:00
Shane Smiskol 629399a449
carControl: add long and lat active fields (#23859)
* proof of concept

* actuators packet describes which actuators are active

* bump cereal

* fixes

* not needed for this PR

* Do Toyota

* add back controlsState.active

* bump cereal

* rest of cars

* in actuators

* add active back

* which

* use controlsState.active for now

* will make an issue

* Update selfdrive/controls/controlsd.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* move local lat_active checks into CC.latActive

* remove redundant checks

* move comment

move comment

* fix joystick mode

* get enabled from carcontrol

* do standstill check in controlsd

* make sure we consider the gas press case for GM

* use CC.actuators

* fix

* capitalization

* Bump cereal

Bump cereal

* make intermediate actuators

* similar convention to before

* clean that up

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-03-13 20:58:44 -07:00
Adeeb Shihadeh b9484a6a99
cars: remove duplicated cancel logic (#23956) 2022-03-13 20:22:49 -07:00
Shane Smiskol 156337475e
2019+ Avalon: allow stop and go (#23952)
* Avalon actually has SNG

* update readme

* Revert "update readme"

This reverts commit 076561a057.

* update readme

* fix

* variants as it includes hybrids
2022-03-11 19:45:30 -08:00
martinl 30ae47de05
Subaru: add FW for 2019 Subaru Impreza Sport (#23945) 2022-03-10 13:01:04 -08:00
Shane Smiskol 4f4f18a648
Ford: add minEnableSpeed (#23940) 2022-03-09 12:40:20 -08:00
Adeeb Shihadeh 6ff643c478
Honda: remove redundant steer fault check (#23920) 2022-03-07 10:37:23 -08:00
Chris Frank b9541d66c0
HKG: Add FW for 2022 Hyundai Santa Fe (#23889)
* 2022 Hyundai Santa Fe fingerprint

* Update selfdrive/car/hyundai/values.py

Co-authored-by: Chris Frank <chrsfr@users.noreply.github.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-03-07 13:13:00 +01:00
Jason Young 7fc1b7dc0a
VW MQB: Add FW for 2022 Volkswagen Tiguan (#23913) 2022-03-06 10:51:26 -08:00
Jason Young ab8f3c4c12
VW MQB: Add FW for 2020 Volkswagen Jetta (#23908) 2022-03-05 15:40:48 -08:00
Jason Young 3d36c1c702
VW MQB: Add FW for 2018 Škoda Octavia (#23909) 2022-03-05 15:40:37 -08:00
Jason Wen 2928507f44
Remove KIA_NIRO_HEV_2021 from STEER_MAX = 255 blacklist (#23906) 2022-03-03 21:10:03 -08:00
Shane Smiskol 7254db3906
LongControl: fix control state oscillation (#23333)
* check if plan is to accelerate or not

* remove comment

* needed to see it

needed to see it

* test logic with Toyota TSS2

* hackily log conditions

* Revert "hackily log conditions"

This reverts commit 7a6b5691e2b982c7a1e3911d980fb7530647affd.

Revert "test logic with Toyota TSS2"

This reverts commit e583d6e3caaa5f5b896165cd7949dfc1caabfd9a.

order

* revert

* fix
2022-03-03 03:27:24 -08:00
Shane Smiskol 77fd64ee30
Move 2020 Lexus NX 300 fw fingerprints to TSS2 (#23893)
* Revert "Toyota: add Leuxs NX fingerprint (#23808)"

This reverts commit 4f999b44c6.

* Add engine and fwRadar fw
2022-03-02 13:31:51 -08:00
Adeeb Shihadeh 87849f93b1
better steer fault names (#23890)
* better steer fault names

* bump cereal
2022-03-01 22:53:55 -08:00
Jason Wen 47aa3f60ba
Hyundai: Add FW for 2022 Ioniq Plug-in Hybrid (#23862)
* Add car port: Hyundai Ioniq Plug-in Hybrid 2022

* minSteerSpeed is 0

* Remove from crc8 checksum

* Add test route

* Revert "Add test route"

This reverts commit a76ddca888.

* Revert "Remove from crc8 checksum"

This reverts commit eb2be0a20c.

* Revert "minSteerSpeed is 0"

This reverts commit 3f40eba611.

* Revert "Add car port: Hyundai Ioniq Plug-in Hybrid 2022"

This reverts commit f4084989d0.

* Hyundai: Add FW for 2022 Ioniq Plug-in Hybrid

* Remove IONIQ_PHEV from STEER_MAX = 255

* Add additional FW version
2022-02-28 18:39:36 -08:00
Jason Young 0502486c16
VW MQB: Add FW for 2017 Audi S3 (#23881) 2022-02-28 14:27:22 -08:00
Jason Wen 6a072886e9
HKG: Add FW for 2022 Kia Niro HEV (#23863)
* HKG: Add FW for 2022 Kia Niro HEV

* Expand model year
2022-02-28 11:48:01 +01:00
sintman 4f999b44c6
Toyota: add Leuxs NX fingerprint (#23808) 2022-02-27 22:01:55 -08:00
teknonut bfa854f31c
HKG: Add FW for 2021 Hyundai Santa Fe (#23858) 2022-02-27 22:01:01 -08:00
seven121-ym 9a663214b9
Subaru: add FW for 2019 Subaru Impreza (#23873)
* Update values.py

* Update selfdrive/car/subaru/values.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-02-27 21:57:42 -08:00
Adeeb Shihadeh 45a5297e77 Hyundai: add FW versions for 2022 Elantra 2022-02-27 11:06:23 -08:00