forked from commaai/opendbc
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/commaai/opendbc into toyo…
…ta-rav4-more-fp
- Loading branch information
Showing
9 changed files
with
666 additions
and
26 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<!--- AUTOGENERATED FROM selfdrive/car/CARS_template.md, DO NOT EDIT. ---> | ||
|
||
# Support Information for {{car_docs_with_extras | length}} Known Cars | ||
|
||
|{{ExtraCarsColumn | map(attribute='value') | join('|') | replace(hardware_col_name, wide_hardware_col_name)}}| | ||
|---|---|---|{% for _ in range((ExtraCarsColumn | length) - 3) %}{{':---:|'}}{% endfor +%} | ||
{% for car_docs in car_docs_with_extras %} | ||
|{% for column in ExtraCarsColumn %}{{car_docs.get_extra_cars_column(column)}}|{% endfor %} | ||
|
||
{% endfor %} | ||
|
||
# Types of Support | ||
|
||
**opendbc can support many more cars than it currently does.** There are a few reasons your car may not be supported. | ||
If your car doesn't fit into any of the incompatibility criteria here, then there's a good chance it can be supported! | ||
We're adding support for new cars all the time. **We don't have a roadmap for car support**, and in fact, most car | ||
support comes from users like you! | ||
|
||
## Upstream | ||
|
||
A supported vehicle is one that just works when you install a comma device. All supported cars provide a better | ||
experience than any stock system. Supported vehicles reference the US market unless otherwise specified. | ||
|
||
## Under Review | ||
|
||
A vehicle under review is one for which software support has been merged into upstream openpilot, but hasn't yet been | ||
tested for drive quality and conformance with [comma safety guidelines](https://github.com/commaai/openpilot/blob/master/docs/SAFETY.md). | ||
This is a normal part of the development and quality assurance process. This vehicle will not work when upstream | ||
openpilot is installed, but custom forks may allow their use. | ||
|
||
## Custom | ||
|
||
Vehicles in this category are not considered plug-and-play. Software support is included in upstream openpilot, but | ||
these vehicles might not have a harness in the comma store, or the physical install might be at an unusual or cumbersome | ||
location, or they might need unusual configuration after install. | ||
|
||
## Dashcam | ||
|
||
Dashcam vehicles have software support in upstream openpilot, but will go into "dashcam mode" at startup and will not | ||
engage. This may be due to known issues with driving safety or quality, or it may be a work in progress that isn't yet | ||
ready for safety and quality review. | ||
|
||
## Community | ||
|
||
Although they're not upstream, the community has openpilot running on other makes and models. See the 'Community | ||
Supported Models' section of each make [on our wiki](https://wiki.comma.ai/). | ||
|
||
## Incompatible | ||
|
||
### CAN Bus Security | ||
|
||
Vehicles with CAN security measures, such as AUTOSAR Secure Onboard Communication (SecOC) are not usable with openpilot | ||
unless the owner can recover the message signing key and implement CAN message signing. Examples include certain newer | ||
Toyota, and the GM Global B platform. | ||
|
||
### FlexRay | ||
|
||
All the cars that openpilot supports use a [CAN bus](https://en.wikipedia.org/wiki/CAN_bus) for communication between all the car's computers, however a | ||
CAN bus isn't the only way that the computers in your car can communicate. Most, if not all, vehicles from the following | ||
manufacturers use [FlexRay](https://en.wikipedia.org/wiki/FlexRay) instead of a CAN bus: **BMW, Mercedes, Audi, Land Rover, and some Volvo**. These cars | ||
may one day be supported, but we have no immediate plans to support FlexRay. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
from dataclasses import dataclass | ||
|
||
from opendbc.car import structs, Platforms, ExtraPlatformConfig | ||
from opendbc.car.docs_definitions import ExtraCarDocs, SupportType | ||
|
||
|
||
@dataclass | ||
class CommunityCarDocs(ExtraCarDocs): | ||
def init_make(self, CP: structs.CarParams): | ||
self.support_type = SupportType.COMMUNITY | ||
self.support_link = "#community" | ||
|
||
|
||
@dataclass | ||
class ToyotaSecurityCarDocs(ExtraCarDocs): | ||
def init_make(self, CP: structs.CarParams): | ||
self.support_type = SupportType.INCOMPATIBLE | ||
self.support_link = "#can-bus-security" | ||
|
||
|
||
@dataclass | ||
class FlexRayCarDocs(ExtraCarDocs): | ||
def init_make(self, CP: structs.CarParams): | ||
self.support_type = SupportType.INCOMPATIBLE | ||
self.support_link = "#flexray" | ||
|
||
|
||
class CAR(Platforms): | ||
config: ExtraPlatformConfig | ||
|
||
HYUNDAI_PALISADE_FACELIFT = ExtraPlatformConfig( | ||
[ | ||
CommunityCarDocs("Hyundai Palisade 2023-24", package="HDA2"), | ||
CommunityCarDocs("Kia Telluride 2023-24", package="HDA2"), | ||
], | ||
) | ||
|
||
TOYOTA_SECURITY_CARS = ExtraPlatformConfig( | ||
[ | ||
ToyotaSecurityCarDocs("Subaru Solterra 2023-25"), | ||
ToyotaSecurityCarDocs("Lexus NS 2022-25"), | ||
ToyotaSecurityCarDocs("Toyota bZ4x 2023-25"), | ||
ToyotaSecurityCarDocs("Toyota Camry 2025"), | ||
ToyotaSecurityCarDocs("Toyota Corolla Cross 2022-25"), | ||
ToyotaSecurityCarDocs("Toyota Highlander 2025"), | ||
CommunityCarDocs("Toyota RAV4 Prime 2021-23"), | ||
ToyotaSecurityCarDocs("Toyota RAV4 Prime 2024-25"), | ||
ToyotaSecurityCarDocs("Toyota Sequoia 2023-25"), | ||
CommunityCarDocs("Toyota Sienna 2021-23"), | ||
ToyotaSecurityCarDocs("Toyota Sienna 2024-25"), | ||
ToyotaSecurityCarDocs("Toyota Tundra 2022-25"), | ||
ToyotaSecurityCarDocs("Toyota Venza 2021-25"), | ||
], | ||
) | ||
|
||
AUDI_FLEXRAY = ExtraPlatformConfig( | ||
[ | ||
FlexRayCarDocs("Audi A4 2016-24", package="All"), | ||
FlexRayCarDocs("Audi A5 2016-24", package="All"), | ||
FlexRayCarDocs("Audi Q5 2017-24", package="All"), | ||
], | ||
) |
Oops, something went wrong.