From f20d22d62a0f0012b243b10b6a9a214284c435fa Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Thu, 23 Apr 2026 22:13:44 -0500 Subject: [PATCH] disable op long --- .../assets/components/tools/device_settings_layout.json | 7 +++++++ starpilot/system/the_pond/the_pond.py | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/starpilot/system/the_pond/assets/components/tools/device_settings_layout.json b/starpilot/system/the_pond/assets/components/tools/device_settings_layout.json index aa14f81c0..39698432e 100644 --- a/starpilot/system/the_pond/assets/components/tools/device_settings_layout.json +++ b/starpilot/system/the_pond/assets/components/tools/device_settings_layout.json @@ -2134,6 +2134,13 @@ "data_type": "bool", "ui_type": "toggle" }, + { + "key": "DisableOpenpilotLongitudinal", + "label": "Disable openpilot Longitudinal", + "description": "Use the vehicle's stock longitudinal control instead of openpilot longitudinal control. This can stop openpilot from sending cruise-control acceleration and braking commands on supported vehicles.", + "data_type": "bool", + "ui_type": "toggle" + }, { "key": "GMPedalLongitudinal", "label": "Use Pedal For Longitudinal", diff --git a/starpilot/system/the_pond/the_pond.py b/starpilot/system/the_pond/the_pond.py index 263f1485d..0b341b97f 100644 --- a/starpilot/system/the_pond/the_pond.py +++ b/starpilot/system/the_pond/the_pond.py @@ -3651,12 +3651,13 @@ def setup(app): return jsonify({"error": f"Parameter '{key}' is not editable."}), 403 # 1. Prevent changing the model or reboot-required toggles while the car is actively driving - reboot_keys = {"Model", "DrivingModel", "AlwaysOnLateral", "ForceTorqueController", "NNFF", "NNFFLite"} + reboot_keys = {"Model", "DrivingModel", "AlwaysOnLateral", "DisableOpenpilotLongitudinal", "ForceTorqueController", "NNFF", "NNFFLite"} if key in reboot_keys and params.get_bool("IsOnroad"): friendly_names = { "Model": "Driving Model", "DrivingModel": "Driving Model", "AlwaysOnLateral": "Always On Lateral", + "DisableOpenpilotLongitudinal": "Disable openpilot Longitudinal", "ForceTorqueController": "Force Torque Controller", "NNFF": "NNFF", "NNFFLite": "NNFF-Lite"