From cb207db76bb2923b6540d64331349017150fa5d8 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Tue, 17 Nov 2026 11:29:37 -0600 Subject: [PATCH] Simplify developer steering controls and delay copy --- openpilot/starpilot/galaxy/web/js/settings.js | 2 +- .../starpilot/lateral/tests/test_delay_preferences.py | 1 + .../lateral/tests/test_gm_geometry_runtime.py | 10 ++++++---- openpilot/starpilot/ui/delay_feature.py | 4 ++-- openpilot/starpilot/ui/torque_feature.py | 6 ------ prebuilt.json | 2 +- 6 files changed, 11 insertions(+), 14 deletions(-) diff --git a/openpilot/starpilot/galaxy/web/js/settings.js b/openpilot/starpilot/galaxy/web/js/settings.js index c3235e0831..861008faa3 100644 --- a/openpilot/starpilot/galaxy/web/js/settings.js +++ b/openpilot/starpilot/galaxy/web/js/settings.js @@ -476,7 +476,7 @@ export const SettingsPage = {
Tune low-speed following and jerk, blending toward Relaxed at higher speeds.
Keep steering assistance active independently of cruise control.
Tune how StarPilot applies steering torque.
-Adjust supported steering parameters. Actuator delay includes the 0.2-second allowance.
+Adjust supported steering parameters.
Choose lane-centering behavior and alerts.
Set how the vehicle slows for curves ahead.
Control how speed limits change your set speed.
diff --git a/openpilot/starpilot/lateral/tests/test_delay_preferences.py b/openpilot/starpilot/lateral/tests/test_delay_preferences.py index b2432174e9..da9b072170 100644 --- a/openpilot/starpilot/lateral/tests/test_delay_preferences.py +++ b/openpilot/starpilot/lateral/tests/test_delay_preferences.py @@ -56,6 +56,7 @@ class TestSteeringDelay(unittest.TestCase): self.assertEqual(index, max(scalar) + 1) self.assertAlmostEqual(float(rows[index].value), self.cp.steerActuatorDelay + .2, places=2) self.assertEqual(rows[index].unit, 's') + self.assertNotIn('0.2', rows[index].reason) self.assertTrue(rows[index].available) self.assertEqual(self.owner.snapshot('torque/developer', parked=True, system_long=False, lateral_context=True, metric=False).title, 'Developer Parameters') diff --git a/openpilot/starpilot/lateral/tests/test_gm_geometry_runtime.py b/openpilot/starpilot/lateral/tests/test_gm_geometry_runtime.py index a169be92ef..91a6aea90d 100644 --- a/openpilot/starpilot/lateral/tests/test_gm_geometry_runtime.py +++ b/openpilot/starpilot/lateral/tests/test_gm_geometry_runtime.py @@ -196,10 +196,12 @@ class TestGmGeometryRuntime(unittest.TestCase): owner=FeatureSettingsOwner(saved,lambda _:True,vehicle_fingerprint=lambda:cp.carFingerprint,vehicle_params=lambda:cp) def rows(): return {row.key:row for row in owner.snapshot('torque/developer',parked=True,system_long=True,lateral_context=True,metric=False).rows} - row=rows()['torque:learning:value'] - request=FeatureSettingsRequest(row.key,row.source,'Force auto',vehicle_fingerprint=cp.carFingerprint, - capability=row.capability,dependencies=row.dependencies,related_source=row.related_source) - self.assertTrue(owner.apply(request)) + for learning in ('source', 'force_auto', 'force_off'): + stored(saved, profile(cp, learning)) + before = Path(saved.get_param_path(DOCUMENT_KEY)).read_bytes() + self.assertNotIn('torque:learning:value', rows()) + self.assertEqual(Path(saved.get_param_path(DOCUMENT_KEY)).read_bytes(), before) + stored(saved, profile(cp, 'force_auto')) self.assertTrue(read_geometry(saved,cp).force_auto) ratio=rows()['torque:ratio:value'] self.assertIn('temporarily ignored',ratio.reason) diff --git a/openpilot/starpilot/ui/delay_feature.py b/openpilot/starpilot/ui/delay_feature.py index 6b62d59184..5c60581d0f 100644 --- a/openpilot/starpilot/ui/delay_feature.py +++ b/openpilot/starpilot/ui/delay_feature.py @@ -24,8 +24,8 @@ class DelayFeature: default_key='steering_delay_reset', default_value='Automatic', reason=('Vehicle/controller changed; saved delay is paused. Reset uses automatic delay.' if selected.source == 'changed' else 'Saved delay is unreadable; no override applied.' if not selected.valid else - 'Manual total delay, including 0.2 s. Reset restores automatic delay.' if selected.value is not None else - 'Automatic delay. Shown value is the vehicle default, including 0.2 s.')) + 'Manual actuator delay. Reset restores automatic delay.' if selected.value is not None else + 'Automatic delay. Shown value is the vehicle default.')) def apply(self, request): row = self.row() diff --git a/openpilot/starpilot/ui/torque_feature.py b/openpilot/starpilot/ui/torque_feature.py index 8f406b0f4d..4cfd6f32f6 100644 --- a/openpilot/starpilot/ui/torque_feature.py +++ b/openpilot/starpilot/ui/torque_feature.py @@ -259,12 +259,6 @@ class TorqueFeature: dependencies = self._dependents("ForceAutoTuneOff", SELECTION_KEY) selected = read_geometry(self.params, cp) rows = [] - learning_labels = {"source": "Selected controller", "force_auto": "Force auto", "force_off": "Force off"} - rows.append(FeatureRow("torque:learning:value", "Automatic torque learning", learning_labels[geometry.learning], raw, - choices=tuple(learning_labels.values()), available=allowed, capability=capability, - related_source=token, dependencies=dependencies, - reason="Chooses vehicle learning or a manual override. Force off takes priority; " + - "Force auto temporarily ignores saved factor, friction and ratio.")) rows.append(FeatureRow("torque:automatic_delay:value", "Steering delay source", "Learned" if geometry.automatic_delay else "Vehicle/custom", raw, choices=("Learned", "Vehicle/custom"), available=allowed, capability=capability, related_source=token, dependencies=dependencies, diff --git a/prebuilt.json b/prebuilt.json index 5de46393ba..cebe3bf42e 100644 --- a/prebuilt.json +++ b/prebuilt.json @@ -1 +1 @@ -{"protected_inventory_sha256": "9b1066a202fd0b431c7c6d15d601546fb8bca549e7dca2409c5fd4876419d51d", "schema_version": 1} +{"protected_inventory_sha256": "e80b455770749ce2f2bc062e412a31d7b516761564bc9528ded76fdab632a720", "schema_version": 1}