mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 00:03:45 +08:00
RIP iPedal
This commit is contained in:
@@ -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" ||
|
||||
|
||||
Reference in New Issue
Block a user