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"