Commit Graph

6672 Commits

Author SHA1 Message Date
Shane Smiskol 769c76a773 ui: repaint toggles after offroadTransition (#24038)
* repaint after offroadTransition

* Update selfdrive/ui/qt/widgets/controls.h

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

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 4802c864d5ccfc606c7392a73ead858a5a2a2bcf
2022-03-25 13:52:22 -07:00
Adeeb Shihadeh c00256ca1d bunch of gpu config (#23932)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: aeb98b39373135e224255f5869748cf0bb6dc336
2022-03-25 13:46:36 -07:00
Jack Huang d44266bed4 CARLA: fix setting camera EOF (#24034)
* Fix Openpilot in Carla isn't accelerating

The scalars of the timestamp are different in real-world and simulation,
which will cause an infinite loop in selfdrive/modeld/modeld.cc.

* Set eof based on the frame ID

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

* remove global

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: db93275d870990979acda75d8c8f9d1d502aabfa
2022-03-25 13:45:08 -07:00
Adeeb Shihadeh bd71c594a2 pylint: enforce indentation (W0311) (#24039)
* pylint: enforce indentation (W0311)

* few more
old-commit-hash: 8af20af66ddaa6bc06d7f72f9134aa9afeed3ed8
2022-03-24 23:23:29 -07:00
George Hotz e929e32bc7 sensord: add support for Quectel raw gps (#24027)
* connecting to rawgps

* dumping rawfps packets

* this works, but it might be useless

* fix parsing

* parsing 0x1476

* compare

* compare better

* refactoring

* parsing and broadcasting GPS packet

* glonass support

* compare using submaster

* fix compare for glonass

* update cereal

* make linter happy

* other linter issue

* last mypy complaints

* add support for publishing gpsLocationExternal

* set flags to 1 to match ubloxd

* ready to ship

* qcomdiag

* use unused variables

* last one

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 1df3c869994f733579be4ff6df7e8bddf8c46c56
2022-03-24 23:07:26 -07:00
Adeeb Shihadeh e818667aad test onroad: CPU usage test improvements (#24035)
* test onroad: CPU usage test improvements

* remove those
old-commit-hash: ea74a90ca046ea6cf4ac11a30f7ed6ce8e804489
2022-03-24 19:52:46 -07:00
Shane Smiskol 4bbc197433 update unsafeMode to alternativeExperience (#23995)
* update unsafeMode to alternativeExperience

* fix

* fix

* bump submodules

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e91613bc625dfac43e9d3c4135dec8a1757ade37
2022-03-24 14:59:16 -07:00
Harald Schafer ba8322d4d0 Bump panda
old-commit-hash: d08b52caef295bd32318dbcdfc90960939e85636
2022-03-24 10:33:56 -07:00
Shane Smiskol 2f05c9381d Honda Nidec: don't actuate while longitudinal is inactive (#24028)
* don't command any pcm_speed when long is not active

* update refs
old-commit-hash: c88ced1f10b939bf67fa63ca37adaf9adc39ee58
2022-03-23 18:30:05 -07:00
Adeeb Shihadeh 3679d88b80 test models: skip with flag
old-commit-hash: a55e25d9d2ab7f6f42b8c2c61aa73c841deaac09
2022-03-23 16:42:04 -07:00
Shane Smiskol 426a300c21 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 8375e717b563f7b4ecf009ffae00174de1a0b8e9.

* sort tier_car_info in place

* unused Tuple

* no type check

* fix script
old-commit-hash: 85d8997a8a66ef7652b1b186a72d9551292a24ad
2022-03-23 13:42:53 -07:00
Adeeb Shihadeh 1559456d6f set MANAGER_DAEMON for boardd
old-commit-hash: fc2f84759d91925fc1f0ad6773dcbec15a587069
2022-03-23 11:52:41 -07:00
Adeeb Shihadeh e195b7de1e deleter: handle files (#24023)
old-commit-hash: 53909c175756fb0ea8e374ca01a41ecfb3d23466
2022-03-23 11:31:29 -07:00
Dylan Herman c6f626d116 calibrationd: add function typing (#24018)
old-commit-hash: 9f1c663ae222a8e2f9e0c7c83d04a59ae4b46918
2022-03-23 00:28:36 -07:00
HaraldSchafer b24d669861 Apply EU guideline lateral limits (#23974)
* Apply EU limits

* Lower bound v_ego

* Add curvature limit comment

* Remove comment

* Update ref
old-commit-hash: 4a8fffd0f45305cd1f1fd09e37bfb3cff508880b
2022-03-22 19:46:04 -07:00
Adeeb Shihadeh fd37ab2d97 plotjuggler: add lag debugging layout
old-commit-hash: b57c2f4a14248153e6a8bfa6044b05a8fb853a8f
2022-03-22 15:34:49 -07:00
Robbe Derks 9ac0011bc2 Tesla: disable temp fault on hands on error (#24014)
old-commit-hash: 1035b910f090f83ed26746ddc0dfdcfc07405ad7
2022-03-22 21:02:28 +01:00
mitchellgoffpc b7e99b3f45 Ignore BrokenPipeError
old-commit-hash: 5c8c6faa9a6a3041bf2d85b8397656d61b1603ce
2022-03-22 12:52:25 -07:00
Adeeb Shihadeh b20ee9c4aa Revert "camerad: set QCOM CL perf hint (#23791)"
This reverts commit 18cb65b8ef34dfecbd1ac6da1155886188307479.

old-commit-hash: 7cd8575c745d9f28213a73f75b99b2245a592362
2022-03-22 11:11:15 -07:00
Robbe Derks bf575da274 update tesla ap2 fingerprint after OTA update (#24013)
old-commit-hash: 25219442d15438af5c7557ebe988d016297e0a94
2022-03-22 11:07:12 +01:00
Adeeb Shihadeh 1e4a874da0 camerad: set QCOM CL perf hint (#23791)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b079475ad3045300b26db54924f0c3db3e2e06d8
2022-03-21 20:32:28 -07:00
Dylan Herman f8b18e134d calibrationd: remove unused arg in function (#24004)
old-commit-hash: 604fefa9b1c0f473d73a2608217c302df8c088d6
2022-03-21 20:03:32 -07:00
Comma Device 460dd3cc9d cleanup tici_init in launch script
old-commit-hash: 03ac5bb4e3fd23176d5a1f9cb32a3e8f5fc95a59
2022-03-21 16:45:24 -07:00
Adeeb Shihadeh a3b70f8891 skip test models in unittest discovery
old-commit-hash: c76434ca9fae432c2da307e6e51b78f56c5fe43c
2022-03-21 13:42:07 -07:00
whokilleddb e8d2ac0cdc Sanitize IP zookeeper/enable_and_wait.py (#24007)
* Sanitize IP zookeeper/enable_and_wait.py

* Fixed Identation

* Fixed Gaierror
old-commit-hash: 1bdf29dc5b24b982dbe0d7fdeaa9f8cb633a1cc3
2022-03-21 17:49:03 +01:00
Adeeb Shihadeh d8b0684434 Add warning for unsupported NVME (#23972)
* Add warning for unsupported NVME

* fix it up

* fix typo

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: a6d4bb5d01b5149e17f71654ef2c74c7198a1c13
2022-03-20 17:28:09 -07:00
Cameron Clough b4cc54b278 replay: fix wrong format code in print (#24006)
old-commit-hash: 602cbfcba0ff005e5847e846a4e1c9ae5881c84b
2022-03-20 16:53:42 -07:00
Shane Smiskol 378fc7d3b2 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 8793fb562d6ba41ce4fd8c8e8a974d639e98f79b.

* better

* fix

* little more clear

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 20085620db8fbb7ed6d7a4ae8b8d147031ad6fe2
2022-03-20 16:41:18 -07:00
Shane Smiskol 8a88db322e 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>
old-commit-hash: 15368ec3d1cb41a71856fb8e3f2b89320b087053
2022-03-20 16:40:25 -07:00
Shane Smiskol ce4fd26e58 Toyota: Support Avalon Hybrid 2022 (TSS2.5) (#23892)
* Add Avalon Hybrid 2022

* update docs

* set a tune

* add test route

* uploaded route
old-commit-hash: 247b66f4a801d3621575edf5a247c54e275d2826
2022-03-19 13:14:04 -07:00
Shane Smiskol f23e6da50f Hyundai: clean up CarInterface apply function (#24000)
* clean up Hyundai CarController

* remove
old-commit-hash: 7a2f3c023e0054d1a8fd64b004f8185611323de6
2022-03-18 21:08:15 -07:00
Shane Smiskol 4d624b6f81 Honda: clean up CarInterface.apply and CarController (#23876)
* clean up honda/carcontroller

* indentation

* fixes

* clean up apply function

clean up apply function
old-commit-hash: 70286766dabb129b9303bbf5099a13df72a83d15
2022-03-18 19:10:59 -07:00
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