diff --git a/opendbc_repo b/opendbc_repo index 07f503c6ee..1588c86919 160000 --- a/opendbc_repo +++ b/opendbc_repo @@ -1 +1 @@ -Subproject commit 07f503c6eef557dcdb56e89732a0b51505110aa3 +Subproject commit 1588c86919a398fc9f08859a39aacbcf6994d5f9 diff --git a/openpilot/common/params_keys.h b/openpilot/common/params_keys.h index 1a6383fdc9..2693cd8037 100644 --- a/openpilot/common/params_keys.h +++ b/openpilot/common/params_keys.h @@ -189,6 +189,7 @@ inline static std::unordered_map keys = { // toyota specific params {"ToyotaTSS2Long", {PERSISTENT | BACKUP, BOOL, "0"}}, + {"ToyotaDriveMode", {PERSISTENT | BACKUP, BOOL, "0"}}, // MADS params {"Mads", {PERSISTENT | BACKUP, BOOL, "1"}}, diff --git a/openpilot/sunnypilot/sunnylink/settings_ui.json b/openpilot/sunnypilot/sunnylink/settings_ui.json index b541dea21d..a5b69a99e4 100644 --- a/openpilot/sunnypilot/sunnylink/settings_ui.json +++ b/openpilot/sunnypilot/sunnylink/settings_ui.json @@ -2381,6 +2381,17 @@ } ] }, + { + "key": "ToyotaDriveMode", + "widget": "toggle", + "needs_onroad_cycle": true, + "title": "Enable drive mode btn link", + "enablement": [ + { + "type": "not_engaged" + } + ] + }, { "key": "ToyotaEnforceStockLongitudinal", "widget": "toggle", diff --git a/openpilot/sunnypilot/sunnylink/settings_ui_src/pages/vehicle.yaml b/openpilot/sunnypilot/sunnylink/settings_ui_src/pages/vehicle.yaml index 079efb0c0b..19a38c9e6e 100644 --- a/openpilot/sunnypilot/sunnylink/settings_ui_src/pages/vehicle.yaml +++ b/openpilot/sunnypilot/sunnylink/settings_ui_src/pages/vehicle.yaml @@ -88,6 +88,12 @@ sections: title: 'Toyota: custom longitudinal for TSS2' enablement: - $ref: '#/macros/not_engaged' + - key: ToyotaDriveMode + widget: toggle + needs_onroad_cycle: true + title: Enable drive mode btn link + enablement: + - $ref: '#/macros/not_engaged' - key: ToyotaEnforceStockLongitudinal widget: toggle needs_onroad_cycle: true