Compare commits

...

18 Commits

Author SHA1 Message Date
royjr
f35a53795e Merge branch 'master' into ui-better-confidence-ball 2026-03-15 15:13:58 -04:00
royjr
6945e24b26 Merge branch 'master' into ui-better-confidence-ball 2026-03-02 02:40:43 -05:00
royjr
85cf82391f Merge branch 'master' into ui-better-confidence-ball 2026-02-13 22:20:33 -05:00
royjr
e01f23741c Merge branch 'master' into ui-better-confidence-ball 2026-02-11 00:32:28 -05:00
royjr
1e3d06dd3e Rename FlatUIState to FlatConfidenceBall
Rename the parameter key FlatUIState to FlatConfidenceBall and update all references. Changes update common/params_keys.h, the UI state property (self.flat_confidence_ball in selfdrive/ui/sunnypilot/ui_state.py), the confidence ball rendering check (selfdrive/ui/mici/onroad/confidence_ball.py), and the params metadata (sunnypilot/sunnylink/params_metadata.json) with a clearer title/description
2026-02-11 00:20:12 -05:00
royjr
5faf262074 Merge branch 'master' into ui-better-confidence-ball 2026-02-11 00:15:15 -05:00
Jason Wen
3af5e3ee1b Merge branch 'master' into ui-better-confidence-ball 2026-02-08 17:01:00 -05:00
royjr
af291d6260 Merge branch 'master' into ui-better-confidence-ball 2026-02-05 00:54:25 -05:00
DevTekVE
ded7691667 Merge branch 'master' into ui-better-confidence-ball 2026-01-03 16:37:59 +01:00
royjr
a14f42b403 bool 2025-12-31 14:16:09 -05:00
royjr
6ca04f27c9 Merge branch 'master' into ui-better-confidence-ball 2025-12-31 14:10:37 -05:00
royjr
0e7f1cce4c optional 2025-12-31 14:10:30 -05:00
royjr
8d27d1fff7 Merge branch 'master' into ui-better-confidence-ball 2025-12-29 22:37:20 -05:00
royjr
e1be982705 remove gradient 2025-12-29 19:25:29 -05:00
royjr
f153dcac58 Revert "use default colors"
This reverts commit 6f020a2f66.
2025-12-29 19:23:35 -05:00
royjr
db432b8675 Revert "use default bottom_dot_color"
This reverts commit 3300db1235.
2025-12-29 19:23:18 -05:00
royjr
3300db1235 use default bottom_dot_color 2025-12-29 19:18:48 -05:00
royjr
6f020a2f66 use default colors 2025-12-29 19:15:27 -05:00
4 changed files with 9 additions and 0 deletions

View File

@@ -155,6 +155,7 @@ inline static std::unordered_map<std::string, ParamKeyAttributes> keys = {
{"DevUIInfo", {PERSISTENT | BACKUP, INT, "0"}},
{"EnableCopyparty", {PERSISTENT | BACKUP, BOOL}},
{"EnableGithubRunner", {PERSISTENT | BACKUP, BOOL}},
{"FlatConfidenceBall", {PERSISTENT | BACKUP, BOOL, "0"}},
{"GreenLightAlert", {PERSISTENT | BACKUP, BOOL, "0"}},
{"GithubRunnerSufficientVoltage", {CLEAR_ON_MANAGER_START , BOOL}},
{"HasAcceptedTermsSP", {PERSISTENT, STRING, "0"}},

View File

@@ -81,6 +81,9 @@ class ConfidenceBall(Widget, ConfidenceBallSP):
top_dot_color = rl.Color(50, 50, 50, 255)
bottom_dot_color = rl.Color(13, 13, 13, 255)
if ui_state.flat_confidence_ball:
top_dot_color = bottom_dot_color
draw_circle_gradient(content_rect.x + content_rect.width - status_dot_radius,
dot_height, status_dot_radius,
top_dot_color, bottom_dot_color)

View File

@@ -146,6 +146,7 @@ class UIStateSP:
self.true_v_ego_ui = self.params.get_bool("TrueVEgoUI")
self.turn_signals = self.params.get_bool("ShowTurnSignals")
self.boot_offroad_mode = self.params.get("DeviceBootMode", return_default=True)
self.flat_confidence_ball = self.params.get_bool("FlatConfidenceBall")
class DeviceSP:

View File

@@ -306,6 +306,10 @@
"title": "Firmware Query Done",
"description": ""
},
"FlatConfidenceBall": {
"title": "Flat Confidence Ball",
"description": "Removes the gradient from the confidence ball and uses solid state colors for improved visibility"
},
"ForcePowerDown": {
"title": "Force Power Down",
"description": ""