mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 00:03:45 +08:00
Bribe Mayhem
This commit is contained in:
@@ -170,6 +170,7 @@ SAFE_MODE_MANAGED_KEYS = (
|
||||
"SNGHack",
|
||||
"SubaruSNG",
|
||||
"VoltSNG",
|
||||
"GMAutoHold",
|
||||
"GMPedalLongitudinal",
|
||||
"GMDashSpoofOffsets",
|
||||
"LongPitch",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user