Bribe Mayhem

This commit is contained in:
firestar5683
2026-04-28 10:42:47 -05:00
parent 0889b3b0c2
commit be77164d8d
6 changed files with 120 additions and 6 deletions
+1
View File
@@ -170,6 +170,7 @@ SAFE_MODE_MANAGED_KEYS = (
"SNGHack",
"SubaruSNG",
"VoltSNG",
"GMAutoHold",
"GMPedalLongitudinal",
"GMDashSpoofOffsets",
"LongPitch",
+9
View File
@@ -1190,6 +1190,15 @@ class StarPilotVariables:
condition=toggle.car_make == "gm" and toggle.has_pedal and "BOLT" in toggle.car_model,
)
gm_auto_hold_supported = toggle.car_model in {
GM_CAR.CHEVROLET_VOLT,
GM_CAR.CHEVROLET_VOLT_2019,
GM_CAR.CHEVROLET_VOLT_ASCM,
GM_CAR.CHEVROLET_VOLT_CAMERA,
}
gm_auto_hold_supported &= toggle.openpilot_longitudinal
toggle.gm_auto_hold = self.get_value("GMAutoHold", condition=gm_auto_hold_supported)
toggle.volt_sng = self.get_value("VoltSNG", condition=toggle.car_model == "CHEVROLET_VOLT")
process_starpilot_toggles.cache_clear()
@@ -2186,6 +2186,13 @@
"data_type": "bool",
"ui_type": "toggle"
},
{
"key": "GMAutoHold",
"label": "Volt Auto Hold",
"description": "Hold the car at a stop on supported non-CC-only Chevy Volt alpha-longitudinal setups until the gas pedal is pressed.",
"data_type": "bool",
"ui_type": "toggle"
},
{
"key": "TacoTuneHacks",
"label": "\\\"Taco Bell Run\\\" Torque Hack",