mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-29 00:03:57 +08:00
Show lead info above the Large UI lead marker
This commit is contained in:
@@ -18,7 +18,7 @@ from openpilot.starpilot.galaxy.setting_descriptions import description
|
||||
DISPLAY_GROUPS = {
|
||||
"DeveloperSidebar": "Big layout",
|
||||
"ShowBrakeStatus": "widget", "StockConfidenceBallWidget": "widget",
|
||||
"HideLeadMarker": "Lead car (Small layout)", "LeadInfo": "Lead car (Small layout)",
|
||||
"HideLeadMarker": "Lead car", "LeadInfo": "Lead car",
|
||||
"CameraView": "Camera (Small layout)", "DriverCamera": "Camera (Small layout)",
|
||||
"HidePersonalityAlerts": "Alerts and borders", "SignalMetrics": "Alerts and borders", "BlindSpotMetrics": "Alerts and borders",
|
||||
}
|
||||
|
||||
@@ -184,7 +184,9 @@ class StarShellSession:
|
||||
else:
|
||||
camera_owner.render_camera_model_layer(rect, camera_view=state.appearance.camera_view,
|
||||
reverse_driver=state.reverse_driver_camera,
|
||||
road_style=state.customization["roadColors"]["large"])
|
||||
road_style=state.customization["roadColors"]["large"],
|
||||
lead_display=(True, int(state.appearance.lead_info_mode), state.appearance.lead_info_metric)
|
||||
if state.appearance.lead_info_mode else None)
|
||||
self.view = ShellView(self.fonts, Path(__file__).parents[2] / "selfdrive/assets",
|
||||
camera_layer=camera_layer,
|
||||
pip_layer=self._render_pip)
|
||||
|
||||
Reference in New Issue
Block a user