Commit Graph

63 Commits

Author SHA1 Message Date
Joshua Mack
823e319159 Car docs: update alpha longitudinal name (#29670)
* Update Footnote 1

Updated Footnote 1 for new name for toggle "openpilot Longitudinal Control (Alpha)" as well as made it clearer on how to change to devel or master-ci branches, taken from comma.ai blog (https://blog.comma.ai/090release/#experimental-longitudinal-control).

* Add 3X

* Added to Docs_definitions

* just update name

* fix

* fix

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: eafdcb89e4
2023-08-28 10:30:15 -07:00
vanillagorillaa
646b4d55a6 Docs: Toyota B harness connector (#29669)
old-commit-hash: 4005b6adde
2023-08-27 15:21:06 -07:00
Jason Wen
dcc348a188 Docs: Hyundai R Harness (#29662)
old-commit-hash: 7f4b588495
2023-08-27 10:58:18 -07:00
Adeeb Shihadeh
16ec56398c add openpilot prefix to imports (#29498)
* add openpilot prefix to imports

* more

* more

* fix docs

* fix linter

* bump submodules

* fix patched tests

* update dynamic imports

* debug

* Revert "debug"

This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b.

* fix pm test
old-commit-hash: a9626f95b6
2023-08-20 20:49:55 -07:00
Justin Newberry
715f028a0e Ruff: enable flake8-builtins (#29315)
* enable flake8-builtins

* replace any with contains

* fix typo in pack

* fix type

* format is from the parent module, has to be enabled

* item_id

* fix item_id

* disable for id since that's what the remote server returns
old-commit-hash: 8793cbff40
2023-08-10 18:58:22 -07:00
Justin Newberry
3ee0786de3 CI: Pylint to ruff (#29294)
* pylint to riff

* pylint to riff

* pylint to riff

* revert more

* undo exclude removal

* exclude tinygrad

* set line length

* pylint exclusions to ruff

* same excludes as old linter

* fix tools QA

* remove unrequired check

* revert linting third_party

* ignore e402
old-commit-hash: 7fdd9fc37c
2023-08-09 13:26:54 -07:00
Justin Newberry
7b677910df Linter: Fix >160 line length test (#29287)
* test

* fix line length

* fix line length

* fix file size

* revert poetry

* cleanup for PR
old-commit-hash: cf64b27168
2023-08-08 17:13:35 -07:00
Shane Smiskol
22187ad0fe Toyota: rename Toyota A harness (#29269)
* add toyota b harness

* not used yet
old-commit-hash: 8d3e661f79
2023-08-07 15:31:50 -07:00
Maxime Desroches
fc3ec6ad35 docs: fix 3x shop link (#29212)
fix link
old-commit-hash: f18ff752d3
2023-08-02 10:50:07 -07:00
Shane Smiskol
d016d9fad7 Car docs: clean up docs_definitions (#29201)
* two spaces around class

* inch

* easier to read
old-commit-hash: 4474cb734f
2023-08-01 13:24:51 -07:00
Justin Newberry
7648f35b1c Car Docs: (optionally) Display a list of tools (#28782)
* display tools

* 5/16 also works

* cleanup

* static fix

* fix static analysis

* merge

* just use basepart

* use filter
old-commit-hash: 1e1cc638d8
2023-08-01 00:06:21 -07:00
Justin Newberry
cb45be4b6f Subaru: New LKAS Angle based cars in dashcam only (#29190)
* dashcam mode only

* fix name

* added those cars in dashcam mode only
old-commit-hash: 38954418f0
2023-07-31 13:58:33 -07:00
Cameron Clough
b07e2bdb4a docs: remove experimental mode comments from unsupported cars
old-commit-hash: 2fd6310352
2023-07-30 20:38:20 +01:00
Adeeb Shihadeh
b0c3778aae agnos 8 (#28843)
* agnos 8

* update to python 3.11.4 (#27452)

* rebase

* optional

* lower cython

* TEMP don't pull cl to use python3.11

* Revert "lower cython"

This reverts commit c5132f8a2727c212bdfc01e77aa53e50a17ead9d.

* fix cython

* remove tensorrt

* carla + opencv

* macos

* update timm and smp

* pynvc

* https

* downgrade numpy

* pin scipy

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
Co-authored-by: Yassine <yassine.y10@gmail.com>

* revert that

* fix linter

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
Co-authored-by: Yassine <yassine.y10@gmail.com>
old-commit-hash: 1945c356c2
2023-07-20 21:56:57 -07:00
Shane Smiskol
bb7fa0fbd8 car docs: use experimental long limits (#28709)
* Silverado: allow enable down to 0 without user brake

* update docs

* firmly

* better comments, fix docs

* revert GM stuff

* revert docs

* update docs

* comment

* uses

* better cmt
old-commit-hash: ca0ec1d62b
2023-06-27 20:19:41 -07:00
Maxime Desroches
585921ffad car: use default_factory for mutable fields in dataclasses (#28669)
* call me

* copy
old-commit-hash: e85acfa365
2023-06-27 16:48:43 -07:00
Maxime Desroches
5933fe402f rename angled mount (#28368)
rename mount
old-commit-hash: 342d0e7bd5
2023-06-01 19:49:42 -07:00
Shane Smiskol
31c1e66a01 car docs: document parts of parts (#28292)
* more stuff

* even more

* all parts func

* start to use it

* include self in parts

* use car_parts_new

* not used

* more usages

* remove get_parts

* remove more commented stuff

* remove iter

* clean up some more stuff

* more

more

* ford

* optional

optional

* nissan

* use new classes

* fix tests

* fix

* order

* no more required

* connector

* CARS.md

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
old-commit-hash: 024abe6455
2023-05-31 21:30:50 -07:00
Shane Smiskol
fcc06d092d car docs: sort parts by shown name (#28293)
* sort by shown name

* fix
old-commit-hash: f678ff0f22
2023-05-26 00:19:46 -07:00
Maxime Desroches
f9dacacc85 car docs: allow auto_resume override (#28264)
* specify auto_resume

* format

* car compat

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 3785e161f0
2023-05-23 01:40:23 -07:00
Shane Smiskol
9352b02943 car docs: fix diff bot (#28266)
* test bot

* fix docs bot

* revert

* use dataclass

* sad this doesn't work
old-commit-hash: eee8a7a4b4
2023-05-23 00:36:42 -07:00
Maxime Desroches
734b6481b7 car docs: list all needed hardware (#28212)
* generic car parts

* better carparts

* add part type

* more tests

* multiple enums

* unit tests

* just check isinstance

* better name

* remove _connector suffix

* remove those hyundai lines

* remove default arg

* Revert "remove default arg"

This reverts commit 139650a3b6b94358c3b9b12bb5fbe0a326d7abad.

* cleaner code structure

* use fingerprint

* review

* abstrac data class + common

* no more dataclass

* conflict

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 9f5f8b603c
2023-05-22 10:17:33 -07:00
Maxime Desroches
4626add29c add harness kit content to the doc (#28139)
* add harness kit content to the doc

* parts as enum

* nissan

* merge column

* rename column

* scaling

* scaling again

* 500px

* align text

* more px

* add style

* more width

* more

* more

* smaller text

* make all text smaller

* prev width

* default list

* remove hidden a ref

* try to remove again

* revert

* replace harness with harness_kit

* try fix

* cleaner

* center everything

* make pylint happy

* allow more than 1 of each parts

* use copy module

* review

* testing spacing

* revert

* bigger text

* formating

* split harness col lines

* remove print

* resolve

* rename to view

* keep formating in template

* simplify

* add unit test

* more generic way

* better

* harness connector only

* comment

* review

* put back harness parts

* missing dash

* too much space

* don't reload when clicking

* shorter comment

* only last line

* generate

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 70677fe5fc
2023-05-15 15:33:54 -07:00
Adeeb Shihadeh
9410a4f513 car docs: add field for min compatibility requirements (#27805)
old-commit-hash: 088cbfc9d5
2023-04-04 17:47:49 -07:00
Adeeb Shihadeh
8a57a11d3c docs: add experimental mode to compatibility description (#26954)
* docs: add experimental mode to compatibility description

* lower case
old-commit-hash: d064a32b00
2023-01-14 16:28:17 -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
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
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
ee961b62f8 Car docs: add a make-specific init function (#26565)
* add a hook function for makes to implement custom docs logic

* don't need this

* use the pre-defined list for honda's harnesses

* one line 😎

* Update selfdrive/car/docs_definitions.py

* i didn't know you didn't need a pass!

* don't change docs order
old-commit-hash: 1367f84425
2022-11-21 18:01:08 -08:00
Adeeb Shihadeh
ad2864ea70 docs: update Toyota DSU footnote (#26568)
old-commit-hash: 548888d634
2022-11-21 15:59:42 -08:00
Shane Smiskol
da68ac1b66 car docs: auto-generate footnote for DSU cars (#26321)
* note for dsu cars

* don't hardcode dsu footnote (1/2)

* test

* revert the experimental long toggle

* another day:(

* DSU doesn't have to be toyota specific, it's a generic carParam!

* this is safe, just make sure it's unknown

* these cars do not have OP long for some reason

* UNSUPPORTED_DSU_CAR

* forgot this

* fix autoResume

* fix autoResume 2
old-commit-hash: 3e69973819
2022-11-03 01:00:33 -07:00
Shane Smiskol
5f9bab5ae6 car docs: docs-only footnote flag (#26335)
docs-only footnotes
old-commit-hash: 735af656a0
2022-11-02 18:56:26 -07:00
Shane Smiskol
1f144eeaa8 docs: expose available openpilot longitudinal control (#26312)
* openpilot -> openpilot available

* note for dsu cars

* common footnotes

* Revert "note for dsu cars" - another PR

This reverts commit 7f18742fdaaf5f86a1f1caa041b8b027d4b767cf.

* space

* better?

* Update selfdrive/car/docs_definitions.py

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

* typo

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: b76829c725
2022-11-01 15:55:21 -07:00
Adeeb Shihadeh
e4f9781c17 single longitudinal toggle for e2e and disable radar (#25688)
* single longitudinal toggle for e2e and disable radar

* write disable radar param

* rename

* better param name

* clean that up

* update refs

* update translations

* not live for experimental

* write it out

* vanish
old-commit-hash: 655a64b603
2022-09-07 17:12:49 -07:00
Shane Smiskol
1fcc31aac6 Car docs: add auto-resume column (#25572)
* Move auto resume in sng to car interface

* Update docs

* shorter name, star

* order

* resumes?

* add hidden detail sentence

* good to know this works, but revert

* VW auto resume

* bump cereal to master

* Update ref_commit

* match cereal

* try this

* ?

?

* like this
old-commit-hash: 452d5e42ec
2022-08-30 17:54:40 -07:00
Shane Smiskol
850eb3af94 Car docs diff bot: remove tier (#25611)
* fix car docs diff bot

* rm line
old-commit-hash: ed8d676870
2022-08-30 11:23:42 -07:00
Shane Smiskol
2f2016fda6 Car docs: show more information about cars (#25415)
* back to actual information

* remove some star code

* round speeds

* Try out showing lateral acceleration

* remove that

* Fix speed units

* Add harness and try rounding to nearest half before scapping it

fix

^2

^2

* Add back steering torque star

* Fix static analysis

* auto-generate header

* fix static analysis. set to Harness.none by default

* rm
old-commit-hash: 747bcb013d
2022-08-18 15:12:18 -07:00
Adeeb Shihadeh
b02ca81c37 Ford: add Q3 and Q4 harnesses (#25474)
old-commit-hash: 7087a154f5
2022-08-17 20:29:56 -07:00
Shane Smiskol
d98977c6c8 Car docs: test for missing harnesses (#25444)
* All cars must have a harness

* except body

* skip test

* Q for IoniQ
old-commit-hash: 574021a0ac
2022-08-15 21:44:15 -07:00
Jason Shuler
3072fb4aec GM: Bolt EUV 2022-23 port (#24875)
* Switch to ECMPRDNL2 for GM gear

* Removing manumatic gear #

* values.py almost complete

* Silverado and Bolt EUV val and CP

* GM controller updated

* Cam hrns supp done (in theory)

* cleanup for new cars

* Remove extra constant

* WS, etc cleanup

* removing the unused

* Fix kpBP typo

* Updated docs

* Skip's PIF tune

* Dropped LKA CAN error patch

* Add silverado sigmoid ff

* CAN Err & LKA latch patch

* Remove EPS fault fix (another PR)

* Remove Silverado (another PR)

* clean up some common params

* Remove Escalade FP

Remove Escalade FP

* comment

* Premier is just a trim

Premier is just a trim

Premier is just a trim

* no footnote: new Bolt is like most other cars, older GM were outliers not at the camera

* clean up

clean up

* bump panda

* bump panda

* bump panda

* bump panda

* bump panda

* remove comments

* try spamming buttons on bus 2

* bump panda

* bumping opendbc w btn rc

* not needed for this port

This reverts commit 6af1f0ba799e075f877d7acc8ca0f117d97da361.

* add button safety

* Send next rc when spamming btns

* forward other signals in message

* missing DriveModeButton

* fill cruiseState.speed

* see if resume works without counter

* try the whole message

* send immediately and at 10Hz

* no resume, back to just button signal

* even holding random buttons it cancels

* Use torque controller with base tune

* stock long GM don't auto-resume yet

* Testing GM zero min steer speed

* Revert latcontrol

* revert opendbc

* latActive is basically lkas_enabled

* Update Bolt torque params

* comment

* clean up

* Add to releases

* Add test route

* Don't specify segment

* bump panda

* bump panda

* no harness for Bolt just yet

* Apply suggestions from code review

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

* We support all and 2023

* move safetyParam up to first cam check

* Bump panda and update docs

* Update RELEASES.md

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

Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 4ffe9e68db
2022-08-12 16:10:34 -07:00
Adeeb Shihadeh
e5130eeb29 Subaru: new harness is on the shop (#25406)
* Subaru: new harness is on the shop

* subaru a
old-commit-hash: 96e8d5c9fe
2022-08-11 17:23:51 -07:00
Shane Smiskol
c0cf3a0735 Ram 1500: add harness (#25376)
Add Ram harness!
old-commit-hash: e05cfd2100
2022-08-05 16:29:59 -07:00
Shane Smiskol
e801b06515 CarInfo: detail sentence exception for Toyota stock longitudinal (#25331)
* Exception for 2022 RAV4

* Exception for all stock long Toyota

Exception for all stock long Toyota

* fix exception

fix

fix

fix
old-commit-hash: 35338196ac
2022-08-01 17:44:22 -07:00
Shane Smiskol
537d42c234 Prepare for new supported vehicles webpage (#25021)
* add well maintained footnote

* stash

* some updates for the website

* one extensible sort function, pass sort function into template, continue to use "openpilot ACC"

* use items

same

* return a final dict

* Fix descriptions

* Required

* Add detail sentence

* Make string packages into namedtuple

* add temp year parsing

* revert this

* one unified class like harness

* fix static analysis

* Fix body

Fix body

* Make specifics strong

* remove years

* Make Camry footnote more clear

* Revert this too

* Add notCar text, fix steer speed > enable speed (remove comma, no speed mention)

* fix missing years

* group_by_make

* Use full package text

* Only use full package text

* Check car name if notCar, fix imports

* add_years no longer needed, remove 'with Stop and Go'

* fix that

fix that

fix that

* Exception for Nissan and Subaru

* Adjust DSU footnote text

* Fix speed overrides in sentence, CR-V package imp

* init() was being called multiple times, only need to run once to set row
old-commit-hash: c8a90ef586
2022-08-01 13:26:24 -07:00
Cameron Clough
09fe047e00 Fix for multiple footnotes in car docs (#25256)
* Fix for multiple footnotes in car docs

* Split footnotes with comma

* oops

* one link tag

* fix empty footnotes

* sort footnotes

* Fix footnotes on website

* Revert "Fix footnotes on website"

This reverts commit 187686b0d7b591cf81a8d59ea6d45f7ba94b5fae.

* fix sorting if > 9

* try both

* it pushes star a bit too much and float: center doesn't work

* try on gh

try on gh

* doesn't look too good

* revert

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: fd5819e9ec
2022-07-23 00:00:17 -07:00
Adeeb Shihadeh
4021bb06e8 better star descriptions (#25236)
* better star descriptions

* most
old-commit-hash: 289239710d
2022-07-21 11:02:59 -07:00
Shane Smiskol
e1ff4f9f5b CarInfo: parse out model years (#25208)
* add function

* split model and years

* typing and clean uop

* one function to split into make, model, years

* add test for bad years

* simpler re

* don't match only numbers

* clean up

* we can just use name

* clean up
old-commit-hash: b30871daad
2022-07-18 22:34:50 -07:00
Adeeb Shihadeh
89a11b1ca5 simplify compatibility docs (#25190)
* simplify tiers

* little more

* cleanup

* fix test
old-commit-hash: 500d16622c
2022-07-18 17:53:00 -07:00
Shane Smiskol
b5ca722f34 car docs: remove steering torque hard-coding (#25019)
remove good torque hardcoding
old-commit-hash: e11bb76a64
2022-07-01 19:11:28 -07:00
Shane Smiskol
43bb8dd087 Car Port: 2022 Honda Civic (#24535)
* master 2022 Civic

* bump panda

* bump

* bump cereal

* fix

* needed

* try for now

* maybe

* revert for now

* move to Cam parser

* fix

* move to cam

* need AEB_STATUS too

* bump for debug prints

* bump opendbc and add cruise_params

* bump opendbc and update cruise_params

* bump

* test route

* update ref

* Revert "update ref"

This reverts commit 28345dab63d1919865ccb510265222a4cd4252f4.

* cleanup

* just to test

* bump

* revert

* need to send val 12 too?

* change bus

* not needed

* update bus

* syntax

* move this to other bus too

* Revert "move this to other bus too"

This reverts commit 770bf4745ee244c8426ac108f44b67777198d0a7.

* test new lane line signal

* needed too

* maybe need both?

* Test new LKAS hud message

* bump

* missing comma

* missing

* maybe

* add frame and idx

* add in hud_lanes

* switch this too

* bump panda

* add this

* I guess need this too

* to match

* also

* wasnt correct

* bump opendbc

* bump panda

* move to cam parser

* missing

* add here too

* bump

* remove from cam parser

* bump

* back to cam parser

* its 5hz

* bump for new checksum function

* bump for correct frequency

* update frame and idx

* bump

* bump and update

* send set me bit

* bump

* pass these values through

* silly atom

* ret

* fix this

* use copy instead

* add these too

* to check keyerror

* switch

* bump submodules

* send too

* proper

* Replace HUD with BOH

* add dashed lanes

* small fix

* clean up

* not needed anymore

* remove and change

* this too

* dont always set

* remove additional LKAS message

* bump

* add

* to test

* add frame

* bump

* rebase

* remove default values

* rename

* clean up some carstate logic

* regenerate docs

* spacing

* simplify more logic

* bump opendbc

* bump opendbc

* only if radarless

* panda at least builds now

* add comment

* bump

* fixes

* bump opendbc

* bump opendbc

fix for new DBC

* bump opendbc

* bump opendbc

* carstate: fix bus, parser signals

* Set safety param

* pt bus is 0, not 1

* Fix SCM_BUTTONS and bump panda and opendbc

* fixes for ACC_CONTROL

* bump opendbc

* bump opendbc

* convert from MPH on HONDA_BOSCH_RADARLESS

move is_metric

* make sure we don't disable if radarless

* don't show incorrect harness on website

don't show incorrect harness on website

* bump panda

* remove/update comments

* bump panda

* Fix harnesses

* one line check

* bump opendbc

* remove this

* Some carstate cleanup

We removed STANDSTILL->WHEELS_MOVING

we don't use CRUISE_PARAMS

add back

add back

* more cleanup

* update docs

* marketing says it has TJA and ACC with low speed follow

* send buttons on bus 0

bump panda

* comment

* camera needs to see buttons on bus 2

comment

* bump panda

* add to releases

* remove comments

* comment

* we don't use stock hud yet

Co-authored-by: vanillagorillaa <ntmccoy@yahoo.com>
Co-authored-by: vanillagorillaa <31773928+vanillagorillaa@users.noreply.github.com>
Co-authored-by: kevinharbin <76784413+kevinharbin@users.noreply.github.com>
old-commit-hash: abcc7338d4
2022-06-19 00:06:23 -07:00