From eccc48ad086a3f6c750df2b647f8465efbc67d84 Mon Sep 17 00:00:00 2001 From: Jacob Neulight Date: Mon, 20 Jul 2026 08:52:29 -0600 Subject: [PATCH] sunnylink: regenerate settings_ui.json (restores the Ford pinion toggle) The bp-dev merge in #145 resolved the settings_ui.json conflict by hand and fused two adjacent toggle objects into one: FordPrefSteerAngleCurvature kept its opening brace, then BPUseCustomSounds' keys were appended into the same object instead of starting a new one. JSON allows duplicate keys and the last wins, so the file still parsed and still grepped as containing both toggle names -- but once parsed, the pinion toggle was gone from the sunnylink settings UI along with its offroad_only enablement. The feature itself merged fine; only its remote settings entry disappeared. settings_ui.json is generated from settings_ui_src/ by tools/compile_settings_ui.py. The YAML source is correct and was never affected, so this simply regenerates the committed artifact from it. Verified: tools/compile_settings_ui.py --check now matches (it did not before), and sunnypilot/sunnylink/tests/ goes from 2 failed / 75 passed to 77 passed / 1 skipped. --- sunnypilot/sunnylink/settings_ui.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sunnypilot/sunnylink/settings_ui.json b/sunnypilot/sunnylink/settings_ui.json index 501833e3d1..70189f7755 100644 --- a/sunnypilot/sunnylink/settings_ui.json +++ b/sunnypilot/sunnylink/settings_ui.json @@ -2123,6 +2123,13 @@ "needs_onroad_cycle": true, "title": "[Vehicle] Use Pinion Yaw Sensor", "description": "Measures how the car is turning from the steering pinion angle sensor instead of the RCM yaw sensor, in both the control software and the panda safety firmware. Use this if your Ford has a faulty yaw sensor: frequent \"Turn Exceeds Steering Limit\" warnings and weak curve tracking with healthy steering, often alongside \"Service AdvanceTrac\" messages. Run tools/ford_yaw_health_check.py on a few drives to check. Takes effect the next time the car starts. Not available on the Edge (its pinion sensor only reports a relative angle).", + "enablement": [ + { + "type": "offroad_only" + } + ] + }, + { "key": "BPUseCustomSounds", "widget": "toggle", "needs_onroad_cycle": true,