disable op long

This commit is contained in:
firestar5683
2026-04-23 22:13:44 -05:00
parent 7ede28e8fe
commit f20d22d62a
2 changed files with 9 additions and 1 deletions
@@ -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",
+2 -1
View File
@@ -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"