mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-06 20:43:46 +08:00
11 lines
472 B
Python
11 lines
472 B
Python
"""Availability of the optional camera speed-limit source."""
|
|
|
|
from collections.abc import Mapping
|
|
from openpilot.starpilot.feature_capabilities import display_supported
|
|
|
|
|
|
def diagnostic_choice_enabled(environment: Mapping[str, str], cp=None) -> bool:
|
|
# A saved source choice does not itself authorize Vision speed control.
|
|
return ((environment.get("SLC_REPLAY_RUNTIME") == "1" and environment.get("SLC_VISION_DEVELOPMENT") == "1") or
|
|
display_supported(cp))
|