RIP iPedal

This commit is contained in:
firestar5683
2026-05-11 19:09:47 -05:00
parent 21589861fd
commit a67c8f98b7
16 changed files with 7 additions and 883 deletions
-19
View File
@@ -55,21 +55,6 @@ StarPilotWheelPanel::StarPilotWheelPanel(StarPilotSettingsWindow *parent, bool f
update();
});
ParamControl *alwaysIPedalToggle = new ParamControl(
"AlwaysIPedal",
tr("Always I-Pedal"),
tr("<b>Automatically spoof the left paddle when shifting into Drive</b> until i-Pedal latches on supported Hyundai CAN-FD cars."),
"../../starpilot/assets/toggle_icons/icon_mute.png"
);
toggles["AlwaysIPedal"] = alwaysIPedalToggle;
addItem(alwaysIPedalToggle);
QObject::connect(alwaysIPedalToggle, &AbstractControl::hideDescriptionEvent, [this]() {
update();
});
QObject::connect(alwaysIPedalToggle, &AbstractControl::showDescriptionEvent, [this]() {
update();
});
const std::vector<std::tuple<QString, QString, QString, QString>> wheelToggles {
{"CancelButtonControl", tr("Cancel Button"), tr("<b>Action performed when the remapped \"Cancel\" button is pressed.</b>"), "../../starpilot/assets/toggle_icons/icon_mute.png"},
{"DistanceButtonControl", tr("Distance Button"), tr("<b>Action performed when the \"Distance\" button is pressed.</b>"), "../../starpilot/assets/toggle_icons/icon_mute.png"},
@@ -150,10 +135,6 @@ void StarPilotWheelPanel::updateToggles() {
setVisible &= parent->hasOpenpilotLongitudinal;
}
if (!showAllToggles && key == "AlwaysIPedal") {
setVisible &= parent->isHKGCanFd;
}
if (!showAllToggles && (
key == "ModeButtonControl" ||
key == "LongModeButtonControl" ||