mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 16:23:46 +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()
|
||||
|
||||
Reference in New Issue
Block a user