From d904487eedca0e98bc288144c3dd0a86d2c5d554 Mon Sep 17 00:00:00 2001 From: royjr Date: Thu, 22 Oct 2026 22:46:56 -0400 Subject: [PATCH] sqrt bar --- openpilot/selfdrive/ui/sunnypilot/mici/onroad/blendful.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openpilot/selfdrive/ui/sunnypilot/mici/onroad/blendful.py b/openpilot/selfdrive/ui/sunnypilot/mici/onroad/blendful.py index 8eab6da489..10d8c9c9b4 100644 --- a/openpilot/selfdrive/ui/sunnypilot/mici/onroad/blendful.py +++ b/openpilot/selfdrive/ui/sunnypilot/mici/onroad/blendful.py @@ -86,7 +86,7 @@ class BlendfulRenderer: bar = rl.Rectangle(x + 24, y + h - 16, w - 48, 6) rl.draw_rectangle_rounded(bar, 1.0, 6, self._color((255, 255, 255), 40)) rl.draw_rectangle(int(cx - 1), int(bar.y - 2), 2, int(bar.height + 4), self._color((255, 255, 255), 120)) - fill = bar.width / 2 * float(np.clip(abs(pull) / MAX_ERROR, 0.0, 1.0)) + fill = bar.width / 2 * float(np.sqrt(np.clip(abs(pull) / MAX_ERROR, 0.0, 1.0))) if fill > 1: fill_x = cx if pull > 0 else cx - fill rl.draw_rectangle_rounded(rl.Rectangle(fill_x, bar.y, fill, bar.height), 1.0, 6,