Rename the toggle to Add Extra Boost

This commit is contained in:
firestar5683
2026-11-29 17:40:42 -06:00
parent 2785af8023
commit 26c2d5c5ae
4 changed files with 5 additions and 5 deletions
@@ -73,7 +73,7 @@ DESCRIPTIONS = {
'SET uses your current speed when you are above that floor.'),
'StandardPersonalityBoost': 'Scales the Standard End to End acceleration boost. 100% is stock and 0% is off.',
'AggressivePersonalityBoost': 'Scales the Aggressive End to End acceleration boost. 100% is stock and 0% is off.',
'RelaxedPersonalityBoost': 'Scales Relaxed assistance when Converge to Set Speed is on. 0% turns it off.',
'RelaxedPersonalityBoost': 'Scales Relaxed assistance when Add Extra Boost is on. 0% turns it off.',
'TrafficPersonalityBoost': 'Scales clear-road End to End assistance in Traffic Mode. 200% is the default and 0% is off.',
'ConvergeToSetSpeed': ('Helps End to End ease back toward set speed when there is room. Adjust the amount with each personality’s Boost Strength. ' +
'Lead spacing, stops, speed limits, curves and driver overrides still take priority.'),
@@ -17,7 +17,7 @@ from openpilot.starpilot.ui.feature_settings_owner import FeatureSettingsOwner
@pytest.fixture(params=[
("LeadApproachBuffer", "Approaching lead buffer", "Off"),
("FasterLeadTakeoff", "Faster Takeoffs", "Off"),
("ConvergeToSetSpeed", "Converge to Set Speed", "Off"),
("ConvergeToSetSpeed", "Add Extra Boost", "Off"),
("LowSpeedCruiseOnSet", "Low-Speed Cruise Start", "Off"),
("DisengageOnAccelerator", "Disengage on Accelerator Pedal", "Off"),
])
@@ -163,7 +163,7 @@ def test_galaxy_boost_slider_round_trip_and_planner_preference(tmp_path):
intent = gateway.preview(page["view"], index, 0, "session", b"generation", value=str(chosen))
assert gateway.confirm(intent["intent"], "session", b"generation")
assert params.get(BOOST_KEYS[name]) == chosen
_, _, nudge = page_row(gateway, "Converge to Set Speed")
_, _, nudge = page_row(gateway, "Add Extra Boost")
assert nudge["level"] == "simple" and nudge["value"] == nudge["defaultValue"] == "Off"
assert not viewer.sample(2_000_000_000)
assert viewer.boost_scales == {"relaxed": .65, "standard": 1.5, "aggressive": 2., "traffic": 1.}
@@ -1244,7 +1244,7 @@ class FeatureSettingsOwner:
rows.append(self._bool_row(LEAD_TAKEOFF_KEY, "Faster Takeoffs", self.authority("preferences"),
reason="Improves launches from a stop and responds sooner when a lead starts moving. " +
"Selected acceleration profiles, stop detection and vehicle limits still apply."))
rows.append(self._bool_row(NUDGE_KEY, "Converge to Set Speed", self.authority("preferences")))
rows.append(self._bool_row(NUDGE_KEY, "Add Extra Boost", self.authority("preferences")))
downhill_allowed = allowed and self.authority("long") and self._value(PLANNER_SELECTION_KEY)[0] == "1"
downhill = self._bool_row(DOWNHILL_KEY, "Coast Downhills", downhill_allowed,
"Lets gravity carry the car above set speed without targeting a higher speed. Changes apply while driving.")
@@ -16,7 +16,7 @@ def test_nudge_is_default_off_persistent_and_editable_without_a_vehicle():
owner = FeatureSettingsOwner(params, lambda group: group == 'preferences', vehicle_fingerprint=lambda: None)
state = owner.snapshot('profiles', parked=False, system_long=False, lateral_context=False, metric=False)
row = next(row for row in state.rows if row.key == 'ConvergeToSetSpeed')
assert row.label == 'Converge to Set Speed'
assert row.label == 'Add Extra Boost'
assert row.value == row.default_value == 'Off'
assert row.available and row.vehicle_fingerprint is None and state.row_level(row) == 'simple'
assert owner.apply(FeatureSettingsRequest(row.key, row.source, 'Off'))