sl params

This commit is contained in:
rav4kumar
2026-06-10 11:27:32 -07:00
parent a45487f829
commit 634ba8f6b2
4 changed files with 61 additions and 10 deletions
+10
View File
@@ -36,6 +36,10 @@ DESCRIPTIONS = {
"Eco accelerates gently and brakes early and soft; Sport accelerates briskly. " +
"Hard-braking authority is always preserved."
),
"RadarDistance": tr_noop(
"Hold a lead through brief radar flicker/dropout so sunnypilot does not lose and re-grab it, " +
"smoothing the hard/late brakes that radar drop-outs cause. Braking is never reduced below stock."
),
"AlwaysOnDM": tr_noop("Enable driver monitoring even when sunnypilot is not engaged."),
'RecordFront': tr_noop("Upload data from the driver facing camera and help improve the driver monitoring algorithm."),
"IsMetric": tr_noop("Display speed in km/h instead of mph."),
@@ -69,6 +73,12 @@ class TogglesLayout(Widget):
"disengage_on_accelerator.png",
False,
),
"RadarDistance": (
lambda: tr("Radar Distance"),
DESCRIPTIONS["RadarDistance"],
"speed_limit.png",
False,
),
"IsLdwEnabled": (
lambda: tr("Enable Lane Departure Warnings"),
DESCRIPTIONS["IsLdwEnabled"],
+22 -10
View File
@@ -1,4 +1,12 @@
{
"AccelPersonality": {
"title": "Acceleration Profile",
"description": "Eco accelerates gently and brakes early and soft; Sport accelerates briskly. Hard-braking authority is always preserved."
},
"AccelPersonalityEnabled": {
"title": "Enable Acceleration Profiles",
"description": "Enable Eco/Normal/Sport acceleration profiles, including early soft braking."
},
"AccessToken": {
"title": "AccessTokenIsNice",
"description": ""
@@ -1098,6 +1106,10 @@
"title": "Quiet Mode",
"description": ""
},
"RadarDistance": {
"title": "Radar Distance",
"description": "Holds a lead through brief radar flicker/dropout so sunnypilot does not lose and re-grab it, smoothing the hard/late brakes that radar drop-outs cause. Braking is never reduced below stock."
},
"RainbowMode": {
"title": "Rainbow Mode",
"description": ""
@@ -1328,19 +1340,11 @@
"step": 0.1,
"unit": "m/s\u00b2"
},
"ToyotaAutoHold": {
"ToyotaAutoHold": {
"title": "Toyota: Auto Brake Hold FOR TSS2 HYBRID CARS",
"description": ""
},
"ToyotaEnhancedBsm": {
"title": "Toyota: Prius TSS2 BSM and some tssp",
"description": ""
},
"ToyotaTSS2Long": {
"title": "Toyota: custom longitudinal for TSS2",
"description": ""
},
"ToyotaDriveMode": {
"ToyotaDriveMode": {
"title": "Enable drive mode btn link",
"description": ""
},
@@ -1348,10 +1352,18 @@
"title": "Toyota: Enforce Factory Longitudinal Control",
"description": "When enabled, sunnypilot will not take over control of gas and brakes. Factory Toyota longitudinal control will be used."
},
"ToyotaEnhancedBsm": {
"title": "Toyota: Prius TSS2 BSM and some tssp",
"description": ""
},
"ToyotaStopAndGoHack": {
"title": "Toyota: Stop and Go Hack (Alpha)",
"description": "sunnypilot will allow some Toyota/Lexus cars to auto resume during stop and go traffic. This feature is only applicable to certain models that are able to use longitudinal control. This is an alpha feature. Use at your own risk."
},
"ToyotaTSS2Long": {
"title": "Toyota: custom longitudinal for TSS2",
"description": ""
},
"TrainingVersion": {
"title": "Training Version",
"description": ""
+20
View File
@@ -587,6 +587,26 @@
}
]
},
{
"key": "RadarDistance",
"widget": "toggle",
"title": "Radar Distance",
"description": "Holds a lead through brief radar flicker/dropout so sunnypilot does not lose and re-grab it, smoothing the hard/late brakes that radar drop-outs cause. Braking is never reduced below stock.",
"visibility": [
{
"type": "capability",
"field": "has_longitudinal_control",
"equals": true
}
],
"enablement": [
{
"type": "capability",
"field": "has_longitudinal_control",
"equals": true
}
]
},
{
"key": "DisengageOnAccelerator",
"widget": "toggle",
@@ -24,6 +24,15 @@ sections:
- $ref: '#/macros/longitudinal'
enablement:
- $ref: '#/macros/longitudinal'
- key: RadarDistance
widget: toggle
title: Radar Distance
description: Holds a lead through brief radar flicker/dropout so sunnypilot does not lose and re-grab
it, smoothing the hard/late brakes that radar drop-outs cause. Braking is never reduced below stock.
visibility:
- $ref: '#/macros/longitudinal'
enablement:
- $ref: '#/macros/longitudinal'
- key: DisengageOnAccelerator
widget: toggle
title: Disengage Cruise on Accelerator Pedal