Commit Graph

6640 Commits

Author SHA1 Message Date
Shane Smiskol
fbe4588771 Car ports: update PR template (#23996)
* update text for docs generator

* use docs.py

* Update .github/pull_request_template.md

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 99c02bdd29a7f9946b9ce3da69fa8f9daa6ad914
2022-03-18 17:47:43 -07:00
Adeeb Shihadeh
fe6209bd8c plotjuggle: add blockedCnt to controls mismatch debug layout
old-commit-hash: 7eb9416f6b856c1379fe98e1f1a0bb12dfdc56db
2022-03-18 15:48:07 -07:00
Adeeb Shihadeh
b74dac6080 cars: cleanup CS usage (#23957)
old-commit-hash: 2219cb44782550f05d58640d18e67a4f288bfc73
2022-03-18 15:39:22 -07:00
Adeeb Shihadeh
568e465098 Nissan + Tesla: fix controls mismatch on blocked msg (#23994)
* Nissan + Tesla: fix controls mismatch on blocked msg

* bump panda
old-commit-hash: 1af3c52049bf7f868acd1f610f0fa6c2d98f9525
2022-03-18 15:26:06 -07:00
George Hotz
41c71e87dd camerad: imx390 support (#23966)
* something is output

* min stuff

* visible picture

* pics look good

* maybe

* whole sensor

* fix all cameras

* support both cameras

* autoexposure for imx390

* fix imx390 blacklevel

* touchups

* put gain in db scale

* inline and fix max exposure

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 5a11101bcf38d34b5e2c50f79d458d2b913aa0b5
2022-03-18 15:21:51 -07:00
Shane Smiskol
cc8df9c441 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
old-commit-hash: 6c7d178d96327b2f2cf8571ab877071af6fcc9d8
2022-03-18 14:54:20 -07:00
Gijs Koning
772cbb7753 Update carla script to easier install docker and nvidia-docker (#23986)
* Easier docker and nvidia-docker install in carla script

* Small cleanup

* cleanuo

* cleanup

* More comments

* Remove adding usergroup step
old-commit-hash: 3d8537ab23197a383fd1dd7082329ddee1acfdb7
2022-03-18 14:07:39 -07:00
Adeeb Shihadeh
5fe40091bf update references to CARS.md and routes.py (#23993)
old-commit-hash: b9c48f12ad70ee4f5b4a8679ef674c2876fa318f
2022-03-18 13:30:06 -07:00
Shane Smiskol
c3693695e5 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
old-commit-hash: 628eecff06595395f9d5166e82680dc1a2c58af7
2022-03-17 16:11:03 -07:00
Igor Biletskyy
8db72d15f0 onroad UI: show negative speed (#23987)
* show negative speed

* remove ()
old-commit-hash: 62087a6368efb5fee555aa0b3b2458e721b87b68
2022-03-17 13:17:33 -07:00
Jonathan Frey
52992ada7f test onroad: better mpc timing prints (#23896)
* initialize solverExecutionTime longitudinal_planner

* test_onroad: improve timing evaluation
old-commit-hash: 5bc47a294f6d96fadf77a477542f266dc062b449
2022-03-17 12:02:51 -07:00
Adeeb Shihadeh
c72a274f04 re-run car docs generator
old-commit-hash: f7d0ddb9a45387424232380600c21b4156f83c96
2022-03-17 11:56:18 -07:00
Harald Schafer
4763f638b6 Bump cereal
old-commit-hash: db7b49c71cfc420259d99d3a4a6f0972b4f887e8
2022-03-16 21:38:00 -07:00
Shane Smiskol
bf8262394f 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 04d9817e9d5d6ab5c027754018fc445f2cd3067a.

* 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 93c3fce1d3ab406f80cbfb9c00c2237d109c7846.

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>
old-commit-hash: 31a6b141d6c37d7241146a9dc7b3a10313abdc40
2022-03-16 21:27:05 -07:00
HaraldSchafer
45b028e39a Add angular rates carcontroller packet (#23980)
* Controlsd: give carcontroller angular rates

* Update cereal

* Needs to be list

* Update refs
old-commit-hash: dcece099fff5def6c6d8feea6883ab0e0ee5b661
2022-03-16 21:12:11 -07:00
Shane Smiskol
e426e2ba2b Hyundai: set radarOffCan by radar DBC (#23981)
old-commit-hash: 3a7edeea32cc3afa31c3ae227d5729b8ab6fb365
2022-03-16 20:27:21 -07:00
Shane Smiskol
2f0f77a4f7 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
old-commit-hash: facf6c109d00be7fb15aa5ba35cc3df4b8046ce8
2022-03-16 20:06:17 -07:00
Jason Young
b6a4467821 VW MQB: Add FW for 2021 Volkswagen Jetta (#23979)
old-commit-hash: 62bb43b7e279d81d03d1023ea24dc1f845fc3608
2022-03-16 17:06:42 -07:00
Adeeb Shihadeh
3327348aeb don't read params in car interfaces (#23978)
old-commit-hash: bae78dd46b817bea26c6de05322eed5cab0bfba8
2022-03-16 15:17:47 -07:00
Adeeb Shihadeh
d0b419796f Fix controls mismatch on button enable cars + test against panda safety (#23975)
* test models: check button enable cars against panda safety

* gm too

* cleanup
old-commit-hash: 20db4525a21de0d29adb8938f2a26fc38971451b
2022-03-16 14:54:22 -07:00
Shane Smiskol
ca394949cc 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 10bb51a0f0ee0d8e2a27c746a0638280a5eaea8a.

* Update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 5fe00fb7738358c19b7db907047353d8785b5f20
2022-03-15 20:51:07 -07:00
ZwX1616
e484b16f17 checkout cereal master
old-commit-hash: 7482a6fc4bd59435b4e4003f05ed5928459cb699
2022-03-15 19:09:17 -07:00
ZwX1616
e8a8e37185 DM: more precision running on DSP + e2e outputs (#23900)
* update cereal

* run but not use

* log distraction type

* regression scaling

* clean up naming

* add calib buf

* add to header

* fake model

* no calib model

* adjust threshs

* 018a305f

* fix bn

* tweak1

* tweak2

* 0ff2/666

* tweak3

* t4

* t5

* fix out of bound

* skip when replaying old segments

* update ref

* fix onnxmodel

* get calib

* update model replay refs

* up ref
old-commit-hash: de4031c98eac2d7151bb99b787e5d68193eee1b3
2022-03-15 19:02:21 -07:00
Adeeb Shihadeh
6ac01e59cf Honda: fix possible controls mismatch on Nidecs (#23973)
* Honda: fix possible controls mismatch on Nidecs

* bump panda
old-commit-hash: 7deba690e253dbe1191f3227e8240e6842dd9580
2022-03-15 17:55:15 -07:00
Vivek Aithal
069fe1a749 locationd: Commissue fix (#23951)
* check allAliveAndValid only at filter init

* revert cereal and bugfix test

* rename filterValid to filterInitialized

* bump cereal

* correct err

* update refs
old-commit-hash: dfc12926144df063fb6bd20a97bb4390a4f5a4ef
2022-03-15 14:40:29 -07:00
cydia2020
22c009e021 Toyota: parking brake state (#23970)
old-commit-hash: d7c758d4bfa9ac6fc70971f8f9a2b5626d971e0a
2022-03-14 19:19:31 -07:00
Adeeb Shihadeh
94e02bcb3f add parkingBrake to carState (#23968)
* add parkingBrake to carState

* fix gm
old-commit-hash: ae19308e83991c4809a785bb698d300cf7afe7e1
2022-03-14 16:32:20 -07:00
Adeeb Shihadeh
805a00b5f3 cleanup selfdrive/test (#23967)
* move test routes and test_models

* move fingerprints

* little more

* remove that
old-commit-hash: 8718a5933049d5934cc53ef31af9b5ded3223a7c
2022-03-14 15:46:16 -07:00
George Hotz
e6748f0d9d camerastream: update receive.py with some options
old-commit-hash: fa4b434e432f68dfc8944592c63f3594a9fad0b3
2022-03-14 15:02:42 -07:00
George Hotz
2621c00ec1 thermald: use named thermal zones (#23936)
* thermald: use named thermal zones

* remove print

* and for c2

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 814741dafe6a591b87d23d3b0aa9662a01f61634
2022-03-14 14:45:50 -07:00
Gijs Koning
cedd8abc05 Rename RGB vision streams to match YUV streams (#23961)
* Renaming VISION_STREAM_RGB_.. to match yuv names like VISION_STREAM_ROAD
VISION_STREAM_RGB_BACK -> VISION_STREAM_RGB_ROAD
VISION_STREAM_RGB_FRONT -> VISION_STREAM_RGB_DRIVER

* little more

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 57b6fdc17a1f84ec922647c044da5df3cafc0ddc
2022-03-14 14:03:54 -07:00
Gregor Kikelj
f0ece255b4 Improve style in drive_helpers (#23962)
old-commit-hash: 08c2d066cf076134d2ec8528dd2cb245c627a7cf
2022-03-14 14:03:28 -07:00
Adeeb Shihadeh
479ac5753c longitudinal MPC: add MAX_T in T_IDXS_LST (#23960)
* longitudinal MPC: add MAX_T in T_IDXS_LST

* update refs

Co-authored-by: KexianShen <shenkexian@gmail.com>
old-commit-hash: f1aab78d085c416f9dc56f4fdfd2e1f5eb9d4b4b
2022-03-13 21:45:23 -07:00
George Hotz
37bec7bf11 12bit only (#23953)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: a9b7f3bdd8a1a3137c8a04570b6ec5cc03dc6476
2022-03-13 21:43:38 -07:00
Adeeb Shihadeh
ec47e0fef0 break up selfdrive.config (#23959)
* break up selfdrive.config

* add to release files

* fix import order
old-commit-hash: 5c3f3e44bc7b25c9ce502419bcd0261c12ec2b0d
2022-03-13 21:42:39 -07:00
Adeeb Shihadeh
b5b23a3d06 bump panda
old-commit-hash: 8f99e59c926e172bc2528af03aeca8d1a30eb0db
2022-03-13 21:26:24 -07:00
Adeeb Shihadeh
ec7f17d288 move pandad to boardd/ (#23958)
old-commit-hash: 8ac30fea24e3816622d854615b55a24440c4e53f
2022-03-13 21:21:30 -07:00
Shane Smiskol
3e61c7e6ae 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>
old-commit-hash: 629399a44925080b2c35b6dde35c093cc2e32035
2022-03-13 20:58:44 -07:00
Adeeb Shihadeh
eabc0b5289 cars: remove duplicated cancel logic (#23956)
old-commit-hash: b9484a6a99b4abe3a0c60d83a0ad1b43926cba45
2022-03-13 20:22:49 -07:00
Adeeb Shihadeh
66e4826dac fix pre-commit install when subdirectories don't have a config
old-commit-hash: a958213ec75bf7f4020ea786e903156a678abd43
2022-03-13 20:00:23 -07:00
Adeeb Shihadeh
5af4ebb7ce no git in CI
old-commit-hash: d6f6e024b3fca004dd93b07892a31470ce2c8cf3
2022-03-13 16:37:53 -07:00
Adeeb Shihadeh
d6b95f3d2c install pre-commit hooks for all submodules
old-commit-hash: 8252134e62440ae2d19e6dce20ff9475389cdd06
2022-03-13 16:18:01 -07:00
George Hotz
f13d8a6fce add script to receive camerastream supported by camerad
old-commit-hash: 69736877d6cfe7f2a13112e08ea0dc6d0943a469
2022-03-11 20:05:59 -08:00
Shane Smiskol
b823d94018 2019+ Avalon: allow stop and go (#23952)
* Avalon actually has SNG

* update readme

* Revert "update readme"

This reverts commit 076561a0578bcc626fd6710bc411330ef13334d4.

* update readme

* fix

* variants as it includes hybrids
old-commit-hash: 156337475e51156739dc443ff6d15c9f9960c4bb
2022-03-11 19:45:30 -08:00
George Hotz
c0145ae709 camera_qcom2 refactor (#23946)
* convert camerastate to a class

* more refactor

* do the refactor in file

* put that one back

* those changes can wait

* very minor

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 0adfef0b3423291101520424b3bb2c3a1b39dc6c
2022-03-11 13:37:29 -08:00
Jonathan Frey
3bd71500bd Upstreamed and update acados (#23927)
* change acados version to finalized PR https://github.com/acados/acados/pull/791

* acados: update include and x86_64 build

* acados: update pyextra

* adapt mpc files to updated acados

* acados buid: clear acados_template and include dir before updating

* update acados again

* acados MPC: only generate solver, building is done via scons

* update acados to latest acados/master

* c3 libs

* c2 libs

* acados scons files: add acados build script as a dependency

* acados scons files: add libacados.so and ocp_nlp_interface.h, build script not in files_common

* update acados

* adapts long & lat MPC file

* update acados reference commit to acados/master

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: d653dd843adbd994fce6cf4088d9cf10fdbe0c52
2022-03-11 11:49:27 +01:00
George Hotz
7f819d7c39 bump submodules, fix swaglog (#23943)
old-commit-hash: 107156cd580e2f8a31b8a8e61f407511c8f570fa
2022-03-10 18:30:25 -08:00
Adeeb Shihadeh
daf951f143 add table support
old-commit-hash: 4f8ff154f322d249ef8e235abac27fb5d1500a1b
2022-03-10 17:54:13 -08:00
Adeeb Shihadeh
df812ad6a7 this is pretty nice now
old-commit-hash: bcf66c127155b9106449ae890a5b288290ff0035
2022-03-10 17:06:13 -08:00
George Hotz
7efe157848 thneed: a more sane way of doing record/debug (#23938)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 5c5a56c5e616e0d2e76934662b73ce95bb6a0582
2022-03-10 16:33:35 -08:00