From 8a57a11d3c5e5ba45eddb8041dc0d8ffa69f9a99 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sat, 14 Jan 2023 16:28:17 -0800 Subject: [PATCH] docs: add experimental mode to compatibility description (#26954) * docs: add experimental mode to compatibility description * lower case old-commit-hash: d064a32b00c375f21afbbe32171231122281c1ea --- selfdrive/car/docs_definitions.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/selfdrive/car/docs_definitions.py b/selfdrive/car/docs_definitions.py index e047b33e76..c0fb4420df 100644 --- a/selfdrive/car/docs_definitions.py +++ b/selfdrive/car/docs_definitions.py @@ -204,6 +204,13 @@ class CarInfo: if self.row[Column.STEERING_TORQUE] != Star.FULL: sentence_builder += " This car may not be able to take tight turns on its own." + # experimental mode + exp_link = "Experimental mode" + if CP.openpilotLongitudinalControl or CP.experimentalLongitudinalAvailable: + sentence_builder += f" Traffic light and stop sign handling is also available in {exp_link}." + else: + sentence_builder += f" {exp_link}, with traffic light and stop sign handling, is not currently available for this car, but may be added in a future software update." + return sentence_builder.format(car_model=f"{self.make} {self.model}", alc=alc, acc=acc) else: