mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-06 16:55:51 +08:00
Remove Taco Tune Hacks
No longer needed toggle. Values.py do the same now
This commit is contained in:
@@ -555,7 +555,6 @@ inline static std::unordered_map<std::string, ParamKeyAttributes> keys = {
|
||||
{"SwitchbackModeEnabled", {CLEAR_ON_OFFROAD_TRANSITION, BOOL, "0", "0"}},
|
||||
{"SubaruSNG", {PERSISTENT, BOOL, "1", "0", 2}},
|
||||
{"TacoTune", {PERSISTENT, BOOL, "0", "0", 2}},
|
||||
{"TacoTuneHacks", {PERSISTENT, BOOL, "0", "0", 2}},
|
||||
{"TestAlert", {CLEAR_ON_MANAGER_START, STRING, "", ""}},
|
||||
{"TetheringEnabled", {PERSISTENT, INT, "0", "0", 0}},
|
||||
{"ThemeDownloadProgress", {CLEAR_ON_MANAGER_START, STRING, "", ""}},
|
||||
|
||||
@@ -441,9 +441,6 @@ class VehicleSettingsManagerView(Widget):
|
||||
if cs.isGM and cs.isVolt and not cs.hasSNG:
|
||||
rows.append({"target_id": "toggle:VoltSNG", "type": "toggle",
|
||||
"title": tr("Volt SNG Hack"), "get_state": lambda: self._controller._params.get_bool("VoltSNG")})
|
||||
if cs.isHKG and cs.isHKGCanFd:
|
||||
rows.append({"target_id": "toggle:TacoTuneHacks", "type": "toggle",
|
||||
"title": tr("Taco Bell Torque Hack"), "get_state": lambda: self._controller._params.get_bool("TacoTuneHacks")})
|
||||
if cs.isSubaru:
|
||||
rows.append({"target_id": "toggle:SubaruSNG", "type": "toggle",
|
||||
"title": tr("Stop and Go"), "get_state": lambda: self._controller._params.get_bool("SubaruSNG")})
|
||||
|
||||
@@ -173,7 +173,6 @@ SAFE_MODE_MANAGED_KEYS = (
|
||||
"GMPedalLongitudinal",
|
||||
"GMDashSpoofOffsets",
|
||||
"LongPitch",
|
||||
"TacoTuneHacks",
|
||||
)
|
||||
|
||||
SAFE_MODE_FIXED_VALUES = {
|
||||
|
||||
@@ -2287,13 +2287,6 @@
|
||||
"data_type": "bool",
|
||||
"ui_type": "toggle"
|
||||
},
|
||||
{
|
||||
"key": "TacoTuneHacks",
|
||||
"label": "\\\"Taco Bell Run\\\" Torque Hack",
|
||||
"description": "The steering torque hack from comma's 2022 \"Taco Bell Run\". Designed to increase steering torque at low speeds for left and right turns.",
|
||||
"data_type": "bool",
|
||||
"ui_type": "toggle"
|
||||
},
|
||||
{
|
||||
"key": "SubaruSNG",
|
||||
"label": "Stop and Go",
|
||||
|
||||
@@ -155,19 +155,16 @@ StarPilotVehiclesPanel::StarPilotVehiclesPanel(StarPilotSettingsWindow *parent,
|
||||
settingsList->addItem(disableOpenpilotLong);
|
||||
|
||||
StarPilotListWidget *gmList = new StarPilotListWidget(this);
|
||||
StarPilotListWidget *hkgList = new StarPilotListWidget(this);
|
||||
StarPilotListWidget *subaruList = new StarPilotListWidget(this);
|
||||
StarPilotListWidget *toyotaList = new StarPilotListWidget(this);
|
||||
StarPilotListWidget *vehicleInfoList = new StarPilotListWidget(this);
|
||||
|
||||
ScrollView *gmPanel = new ScrollView(gmList, this);
|
||||
ScrollView *hkgPanel = new ScrollView(hkgList, this);
|
||||
ScrollView *subaruPanel = new ScrollView(subaruList, this);
|
||||
ScrollView *toyotaPanel = new ScrollView(toyotaList, this);
|
||||
ScrollView *vehicleInfoPanel = new ScrollView(vehicleInfoList, this);
|
||||
|
||||
vehiclesLayout->addWidget(gmPanel);
|
||||
vehiclesLayout->addWidget(hkgPanel);
|
||||
vehiclesLayout->addWidget(subaruPanel);
|
||||
vehiclesLayout->addWidget(toyotaPanel);
|
||||
vehiclesLayout->addWidget(vehicleInfoPanel);
|
||||
@@ -181,8 +178,6 @@ StarPilotVehiclesPanel::StarPilotVehiclesPanel(StarPilotSettingsWindow *parent,
|
||||
{"RemapCancelToDistance", tr("Remap Cancel Button"), tr("<b>On pedal-interceptor Bolts, treat the steering-wheel CANCEL button as an extra mappable button.</b>"), ""},
|
||||
{"VoltSNG", tr("Stop-and-Go Hack"), tr("<b>Force stop-and-go</b> on the 2017 Chevy Volt."), ""},
|
||||
|
||||
{"HKGToggles", tr("Hyundai/Kia/Genesis Settings"), tr("<b>StarPilot features for Genesis, Hyundai, and Kia vehicles.</b>"), ""},
|
||||
{"TacoTuneHacks", tr("\"Taco Bell Run\" Torque Hack"), tr("<b>The steering torque hack from comma's 2022 \"Taco Bell Run\".</b> Designed to increase steering torque at low speeds for left and right turns."), ""},
|
||||
|
||||
{"SubaruToggles", tr("Subaru Settings"), tr("<b>StarPilot features for Subaru vehicles.</b>"), ""},
|
||||
{"SubaruSNG", tr("Stop and Go"), tr("Stop and go for supported Subaru vehicles."), ""},
|
||||
@@ -215,14 +210,6 @@ StarPilotVehiclesPanel::StarPilotVehiclesPanel(StarPilotSettingsWindow *parent,
|
||||
});
|
||||
vehicleToggle = gmButton;
|
||||
|
||||
} else if (param == "HKGToggles") {
|
||||
ButtonControl *hkgButton = new ButtonControl(title, tr("MANAGE"), desc);
|
||||
QObject::connect(hkgButton, &ButtonControl::clicked, [vehiclesLayout, hkgPanel, this]() {
|
||||
openDescriptions(forceOpenDescriptions, toggles);
|
||||
vehiclesLayout->setCurrentWidget(hkgPanel);
|
||||
});
|
||||
vehicleToggle = hkgButton;
|
||||
|
||||
} else if (param == "SubaruToggles") {
|
||||
ButtonControl *subaruButton = new ButtonControl(title, tr("MANAGE"), desc);
|
||||
QObject::connect(subaruButton, &ButtonControl::clicked, [vehiclesLayout, subaruPanel, this]() {
|
||||
@@ -275,8 +262,6 @@ StarPilotVehiclesPanel::StarPilotVehiclesPanel(StarPilotSettingsWindow *parent,
|
||||
|
||||
if (gmKeys.contains(param)) {
|
||||
gmList->addItem(vehicleToggle);
|
||||
} else if (hkgKeys.contains(param)) {
|
||||
hkgList->addItem(vehicleToggle);
|
||||
} else if (subaruKeys.contains(param)) {
|
||||
subaruList->addItem(vehicleToggle);
|
||||
} else if (toyotaKeys.contains(param)) {
|
||||
@@ -303,18 +288,12 @@ StarPilotVehiclesPanel::StarPilotVehiclesPanel(StarPilotSettingsWindow *parent,
|
||||
|
||||
static_cast<StarPilotParamValueControl*>(toggles["LockDoorsTimer"])->setWarning("<b>Warning:</b> openpilot can't detect if keys are still inside the car, so ensure you have a spare key to prevent accidental lockouts!");
|
||||
|
||||
QSet<QString> rebootKeys = {"RemapCancelToDistance", "TacoTuneHacks"};
|
||||
QSet<QString> rebootKeys = {"RemapCancelToDistance"};
|
||||
for (const QString &key : rebootKeys) {
|
||||
QObject::connect(static_cast<ToggleControl*>(toggles[key]), &ToggleControl::toggleFlipped, [key, this](bool state) {
|
||||
if (started) {
|
||||
if (key == "TacoTuneHacks" && state) {
|
||||
if (StarPilotConfirmationDialog::toggleReboot(this)) {
|
||||
Hardware::reboot();
|
||||
}
|
||||
} else if (key != "TacoTuneHacks") {
|
||||
if (StarPilotConfirmationDialog::toggleReboot(this)) {
|
||||
Hardware::reboot();
|
||||
}
|
||||
if (StarPilotConfirmationDialog::toggleReboot(this)) {
|
||||
Hardware::reboot();
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -408,8 +387,6 @@ void StarPilotVehiclesPanel::updateToggles() {
|
||||
if (!showAllToggles) {
|
||||
if (gmKeys.contains(key)) {
|
||||
setVisible &= parent->isGM;
|
||||
} else if (hkgKeys.contains(key)) {
|
||||
setVisible &= parent->isHKG;
|
||||
} else if (subaruKeys.contains(key)) {
|
||||
setVisible &= parent->isSubaru;
|
||||
} else if (toyotaKeys.contains(key)) {
|
||||
@@ -442,10 +419,6 @@ void StarPilotVehiclesPanel::updateToggles() {
|
||||
setVisible &= parent->hasSNG;
|
||||
}
|
||||
|
||||
else if (key == "TacoTuneHacks") {
|
||||
setVisible &= parent->isHKGCanFd;
|
||||
}
|
||||
|
||||
else if (key == "VoltSNG") {
|
||||
setVisible &= parent->isVolt && !parent->hasSNG;
|
||||
}
|
||||
@@ -456,8 +429,6 @@ void StarPilotVehiclesPanel::updateToggles() {
|
||||
if (setVisible) {
|
||||
if (gmKeys.contains(key)) {
|
||||
toggles["GMToggles"]->setVisible(true);
|
||||
} else if (hkgKeys.contains(key)) {
|
||||
toggles["HKGToggles"]->setVisible(true);
|
||||
} else if (subaruKeys.contains(key)) {
|
||||
toggles["SubaruToggles"]->setVisible(true);
|
||||
} else if (toyotaKeys.contains(key)) {
|
||||
|
||||
@@ -24,7 +24,6 @@ private:
|
||||
std::map<QString, AbstractControl*> toggles;
|
||||
|
||||
QSet<QString> gmKeys = {"GMPedalLongitudinal", "GMDashSpoofOffsets", "LongPitch", "RemoteStartBootsComma", "RemapCancelToDistance", "VoltSNG"};
|
||||
QSet<QString> hkgKeys = {"TacoTuneHacks"};
|
||||
QSet<QString> longitudinalKeys = {"FrogsGoMoosTweak", "GMDashSpoofOffsets", "LongPitch", "RemapCancelToDistance", "SNGHack", "VoltSNG"};
|
||||
QSet<QString> subaruKeys = {"SubaruSNG"};
|
||||
QSet<QString> toyotaKeys = {"ClusterOffset", "FrogsGoMoosTweak", "LockDoorsTimer", "SNGHack", "ToyotaDoors"};
|
||||
|
||||
@@ -310,7 +310,6 @@ StoppedTimer
|
||||
StoppingDecelRate
|
||||
StoppingDecelRateStock
|
||||
TacoTune
|
||||
TacoTuneHacks
|
||||
TetheringEnabled
|
||||
ToyotaDoors
|
||||
TrafficFollow
|
||||
|
||||
Reference in New Issue
Block a user