add sunnypilot_ui param

This commit is contained in:
nayan
2025-07-21 14:43:01 -04:00
parent 9b5228ec08
commit b9c3ef57d1
4 changed files with 8 additions and 4 deletions
+2
View File
@@ -123,6 +123,8 @@ inline static std::unordered_map<std::string, uint32_t> keys = {
{"Version", PERSISTENT},
// --- sunnypilot params --- //
{"sunnypilot_ui", PERSISTENT},
{"ApiCache_DriveStats", PERSISTENT},
{"AutoLaneChangeBsmDelay", PERSISTENT | BACKUP},
{"AutoLaneChangeTimer", PERSISTENT | BACKUP},
+2 -2
View File
@@ -4,8 +4,8 @@ from openpilot.system.ui.lib.widget import Widget
from openpilot.common.params import Params
from openpilot.selfdrive.ui.widgets.ssh_key import ssh_key_item
# TODO: Add sunnypilot check to allow stock ui like we did with Qt?
from openpilot.system.ui.sunnypilot.lib.list_view import toggle_item
if Params().get_bool("sunnypilot_ui"):
from openpilot.system.ui.sunnypilot.lib.list_view import toggle_item
# Description constants
DESCRIPTIONS = {
+2 -2
View File
@@ -3,8 +3,8 @@ from openpilot.system.ui.lib.scroller import Scroller
from openpilot.system.ui.lib.widget import Widget
from openpilot.common.params import Params
# TODO: Add sunnypilot check to allow stock ui like we did with Qt?
from openpilot.system.ui.sunnypilot.lib.list_view import toggle_item
if Params().get_bool("sunnypilot_ui"):
from openpilot.system.ui.sunnypilot.lib.list_view import toggle_item
# Description constants
DESCRIPTIONS = {
+2
View File
@@ -45,6 +45,8 @@ def manager_init() -> None:
]
sunnypilot_default_params: list[tuple[str, str | bytes]] = [
("sunnypilot_ui", "1"), # Use sunnypilot UI for raylib. Disable to use stock.
("AutoLaneChangeTimer", "0"),
("AutoLaneChangeBsmDelay", "0"),
("BlindSpot", "0"),