From a58db66a98b3afe723deaf5b723a412a8233e47c Mon Sep 17 00:00:00 2001 From: Nayan Date: Fri, 9 Jan 2026 18:40:09 -0500 Subject: [PATCH] sunnylink: add units to param metadata (#1643) add units --- sunnypilot/sunnylink/params_metadata.json | 68 ++++++++++++++++++++--- 1 file changed, 60 insertions(+), 8 deletions(-) diff --git a/sunnypilot/sunnylink/params_metadata.json b/sunnypilot/sunnylink/params_metadata.json index f0ddbc954..e484787b6 100644 --- a/sunnypilot/sunnylink/params_metadata.json +++ b/sunnypilot/sunnylink/params_metadata.json @@ -126,11 +126,13 @@ "description": "Virtually shift camera's perspective to move model's center to Left(+ values) or Right (- values)", "min": -0.35, "max": 0.35, - "step": 0.01 + "step": 0.01, + "unit": "meters" }, "CarBatteryCapacity": { "title": "Car Battery Capacity", - "description": "" + "description": "Battery Size", + "unit": "kWh" }, "CarList": { "title": "Supported Car List", @@ -396,7 +398,8 @@ }, "InteractivityTimeout": { "title": "Interactivity Timeout", - "description": "" + "description": "", + "unit": "seconds" }, "IsDevelopmentBranch": { "title": "Is Development Branch", @@ -630,7 +633,8 @@ }, "MaxTimeOffroad": { "title": "Max Time Offroad", - "description": "" + "description": "", + "unit": "seconds" }, "ModelManager_ActiveBundle": { "title": "Model Manager Active Bundle", @@ -784,9 +788,56 @@ "OnroadScreenOffTimer": { "title": "Onroad Brightness Delay", "description": "", - "min": 0, - "max": 60, - "step": 1 + "options": [ + { + "value": 15, + "label": "15s" + }, + { + "value": 30, + "label": "30s" + }, + { + "value": 60, + "label": "1m" + }, + { + "value": 120, + "label": "2m" + }, + { + "value": 180, + "label": "3m" + }, + { + "value": 240, + "label": "4m" + }, + { + "value": 300, + "label": "5m" + }, + { + "value": 360, + "label": "6m" + }, + { + "value": 420, + "label": "7m" + }, + { + "value": 480, + "label": "8m" + }, + { + "value": 540, + "label": "9m" + }, + { + "value": 600, + "label": "10m" + } + ] }, "OnroadUploads": { "title": "Onroad Uploads", @@ -1060,7 +1111,8 @@ "description": "", "min": 0.1, "max": 5.0, - "step": 0.1 + "step": 0.1, + "unit": "m/s²" }, "ToyotaEnforceStockLongitudinal": { "title": "Toyota: Enforce Factory Longitudinal Control",