diff --git a/common/params.cc b/common/params.cc index fb42edcacc..c4ce1f7d6a 100644 --- a/common/params.cc +++ b/common/params.cc @@ -244,6 +244,7 @@ std::unordered_map keys = { {"ToyotaTSS2Long", PERSISTENT}, {"FastTakeOff", PERSISTENT}, {"AccelPersonality", PERSISTENT}, + {"ToyotaDriveMode", PERSISTENT}, }; } // namespace diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index 843a14c0f5..82461b4ae1 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -60,6 +60,12 @@ TogglesPanel::TogglesPanel(SettingsWindow *parent) : ListWidget(parent) { tr("idk something gas and brake"), "../assets/offroad/icon_blank.png", }, + { + "ToyotaDriveMode", + tr("Enable Toyota Drive Mode Button"), + tr("Sunnypilot will link the Acceleration Personality to the car's physical drive mode selector.\nReboot Required."), + "../assets/offroad/icon_blank.png", + }, { "DisengageOnAccelerator", tr("Disengage on Accelerator Pedal"), diff --git a/selfdrive/ui/translations/main_ar.ts b/selfdrive/ui/translations/main_ar.ts index 55b394b16e..9b8693f078 100644 --- a/selfdrive/ui/translations/main_ar.ts +++ b/selfdrive/ui/translations/main_ar.ts @@ -1589,6 +1589,15 @@ This may take up to a minute. Normal is recommended. In sport mode, sunnypilot will provide aggressive acceleration for a dynamic driving experience. In eco mode, sunnypilot will apply smoother and more relaxed acceleration. On supported cars, you can cycle through these acceleration personality within Onroad Settings on the driving screen. + + Enable Toyota Drive Mode Button + + + + Sunnypilot will link the Acceleration Personality to the car's physical drive mode selector. +Reboot Required. + + Updater diff --git a/selfdrive/ui/translations/main_de.ts b/selfdrive/ui/translations/main_de.ts index f6d53087ab..7f0a99ed90 100644 --- a/selfdrive/ui/translations/main_de.ts +++ b/selfdrive/ui/translations/main_de.ts @@ -1573,6 +1573,15 @@ This may take up to a minute. Normal is recommended. In sport mode, sunnypilot will provide aggressive acceleration for a dynamic driving experience. In eco mode, sunnypilot will apply smoother and more relaxed acceleration. On supported cars, you can cycle through these acceleration personality within Onroad Settings on the driving screen. + + Enable Toyota Drive Mode Button + + + + Sunnypilot will link the Acceleration Personality to the car's physical drive mode selector. +Reboot Required. + + Updater diff --git a/selfdrive/ui/translations/main_es.ts b/selfdrive/ui/translations/main_es.ts index 8b0a57e314..ee6d54a905 100644 --- a/selfdrive/ui/translations/main_es.ts +++ b/selfdrive/ui/translations/main_es.ts @@ -1569,6 +1569,15 @@ Esto puede tardar un minuto. Normal is recommended. In sport mode, sunnypilot will provide aggressive acceleration for a dynamic driving experience. In eco mode, sunnypilot will apply smoother and more relaxed acceleration. On supported cars, you can cycle through these acceleration personality within Onroad Settings on the driving screen. + + Enable Toyota Drive Mode Button + + + + Sunnypilot will link the Acceleration Personality to the car's physical drive mode selector. +Reboot Required. + + Updater diff --git a/selfdrive/ui/translations/main_fr.ts b/selfdrive/ui/translations/main_fr.ts index b2f0de3357..288fcaed86 100644 --- a/selfdrive/ui/translations/main_fr.ts +++ b/selfdrive/ui/translations/main_fr.ts @@ -1581,6 +1581,15 @@ Cela peut prendre jusqu'à une minute. Normal is recommended. In sport mode, sunnypilot will provide aggressive acceleration for a dynamic driving experience. In eco mode, sunnypilot will apply smoother and more relaxed acceleration. On supported cars, you can cycle through these acceleration personality within Onroad Settings on the driving screen. + + Enable Toyota Drive Mode Button + + + + Sunnypilot will link the Acceleration Personality to the car's physical drive mode selector. +Reboot Required. + + Updater diff --git a/selfdrive/ui/translations/main_ja.ts b/selfdrive/ui/translations/main_ja.ts index ebe4bd90c0..4adfaf1111 100644 --- a/selfdrive/ui/translations/main_ja.ts +++ b/selfdrive/ui/translations/main_ja.ts @@ -1577,6 +1577,15 @@ This may take up to a minute. Normal is recommended. In sport mode, sunnypilot will provide aggressive acceleration for a dynamic driving experience. In eco mode, sunnypilot will apply smoother and more relaxed acceleration. On supported cars, you can cycle through these acceleration personality within Onroad Settings on the driving screen. + + Enable Toyota Drive Mode Button + + + + Sunnypilot will link the Acceleration Personality to the car's physical drive mode selector. +Reboot Required. + + Updater diff --git a/selfdrive/ui/translations/main_ko.ts b/selfdrive/ui/translations/main_ko.ts index c6ac295d39..10b2fb3881 100644 --- a/selfdrive/ui/translations/main_ko.ts +++ b/selfdrive/ui/translations/main_ko.ts @@ -1569,6 +1569,15 @@ This may take up to a minute. Normal is recommended. In sport mode, sunnypilot will provide aggressive acceleration for a dynamic driving experience. In eco mode, sunnypilot will apply smoother and more relaxed acceleration. On supported cars, you can cycle through these acceleration personality within Onroad Settings on the driving screen. + + Enable Toyota Drive Mode Button + + + + Sunnypilot will link the Acceleration Personality to the car's physical drive mode selector. +Reboot Required. + + Updater diff --git a/selfdrive/ui/translations/main_pt-BR.ts b/selfdrive/ui/translations/main_pt-BR.ts index 2f4c499edd..d838918bae 100644 --- a/selfdrive/ui/translations/main_pt-BR.ts +++ b/selfdrive/ui/translations/main_pt-BR.ts @@ -1573,6 +1573,15 @@ Isso pode levar até um minuto. Normal is recommended. In sport mode, sunnypilot will provide aggressive acceleration for a dynamic driving experience. In eco mode, sunnypilot will apply smoother and more relaxed acceleration. On supported cars, you can cycle through these acceleration personality within Onroad Settings on the driving screen. + + Enable Toyota Drive Mode Button + + + + Sunnypilot will link the Acceleration Personality to the car's physical drive mode selector. +Reboot Required. + + Updater diff --git a/selfdrive/ui/translations/main_th.ts b/selfdrive/ui/translations/main_th.ts index c1a42f7a82..07f8ce26f0 100644 --- a/selfdrive/ui/translations/main_th.ts +++ b/selfdrive/ui/translations/main_th.ts @@ -1569,6 +1569,15 @@ This may take up to a minute. Normal is recommended. In sport mode, sunnypilot will provide aggressive acceleration for a dynamic driving experience. In eco mode, sunnypilot will apply smoother and more relaxed acceleration. On supported cars, you can cycle through these acceleration personality within Onroad Settings on the driving screen. + + Enable Toyota Drive Mode Button + + + + Sunnypilot will link the Acceleration Personality to the car's physical drive mode selector. +Reboot Required. + + Updater diff --git a/selfdrive/ui/translations/main_tr.ts b/selfdrive/ui/translations/main_tr.ts index e60a8c4150..2211095466 100644 --- a/selfdrive/ui/translations/main_tr.ts +++ b/selfdrive/ui/translations/main_tr.ts @@ -1567,6 +1567,15 @@ This may take up to a minute. Normal is recommended. In sport mode, sunnypilot will provide aggressive acceleration for a dynamic driving experience. In eco mode, sunnypilot will apply smoother and more relaxed acceleration. On supported cars, you can cycle through these acceleration personality within Onroad Settings on the driving screen. + + Enable Toyota Drive Mode Button + + + + Sunnypilot will link the Acceleration Personality to the car's physical drive mode selector. +Reboot Required. + + Updater diff --git a/selfdrive/ui/translations/main_zh-CHS.ts b/selfdrive/ui/translations/main_zh-CHS.ts index 9191cb19de..eab9007d90 100644 --- a/selfdrive/ui/translations/main_zh-CHS.ts +++ b/selfdrive/ui/translations/main_zh-CHS.ts @@ -1569,6 +1569,15 @@ This may take up to a minute. Normal is recommended. In sport mode, sunnypilot will provide aggressive acceleration for a dynamic driving experience. In eco mode, sunnypilot will apply smoother and more relaxed acceleration. On supported cars, you can cycle through these acceleration personality within Onroad Settings on the driving screen. + + Enable Toyota Drive Mode Button + + + + Sunnypilot will link the Acceleration Personality to the car's physical drive mode selector. +Reboot Required. + + Updater diff --git a/selfdrive/ui/translations/main_zh-CHT.ts b/selfdrive/ui/translations/main_zh-CHT.ts index 861ce4ae4d..699d921a02 100644 --- a/selfdrive/ui/translations/main_zh-CHT.ts +++ b/selfdrive/ui/translations/main_zh-CHT.ts @@ -1569,6 +1569,15 @@ This may take up to a minute. Normal is recommended. In sport mode, sunnypilot will provide aggressive acceleration for a dynamic driving experience. In eco mode, sunnypilot will apply smoother and more relaxed acceleration. On supported cars, you can cycle through these acceleration personality within Onroad Settings on the driving screen. + + Enable Toyota Drive Mode Button + + + + Sunnypilot will link the Acceleration Personality to the car's physical drive mode selector. +Reboot Required. + + Updater diff --git a/system/manager/manager.py b/system/manager/manager.py index ac36fa6627..abc61b786d 100755 --- a/system/manager/manager.py +++ b/system/manager/manager.py @@ -56,6 +56,7 @@ def manager_init() -> None: ("ToyotaTSS2Long", "0"), ("FastTakeOff", "0"), ("AccelPersonality", str(custom.LongitudinalPlanSP.AccelerationPersonality.stock)), + ("ToyotaDriveMode", "0"), ] if params.get_bool("RecordFrontLock"):