mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-09-30 03:13:53 +08:00
RIP iPedal
This commit is contained in:
@@ -800,7 +800,6 @@ class StarPilotVariables:
|
||||
toggle.no_uploads = self.get_value("NoUploads", condition=device_management and not self.vetting_branch)
|
||||
toggle.no_onroad_uploads = self.get_value("DisableOnroadUploads", condition=toggle.no_uploads)
|
||||
|
||||
toggle.always_ipedal = self.get_value("AlwaysIPedal", condition=toggle.car_model == HYUNDAI_CAR.HYUNDAI_IONIQ_6)
|
||||
toggle.nostalgia_mode = self.get_value("NostalgiaMode", condition=toggle.openpilot_longitudinal and toggle.car_model == HYUNDAI_CAR.HYUNDAI_IONIQ_6)
|
||||
toggle.remap_cancel_to_distance = self.get_value(
|
||||
"RemapCancelToDistance",
|
||||
|
||||
@@ -2323,13 +2323,6 @@
|
||||
"data_type": "bool",
|
||||
"ui_type": "toggle"
|
||||
},
|
||||
{
|
||||
"key": "AlwaysIPedal",
|
||||
"label": "Always I-Pedal",
|
||||
"description": "Automatically spoof the left paddle when shifting into Drive until i-Pedal latches on supported Hyundai CAN-FD cars.",
|
||||
"data_type": "bool",
|
||||
"ui_type": "toggle"
|
||||
},
|
||||
{
|
||||
"key": "NostalgiaMode",
|
||||
"label": "Nostalgia Mode",
|
||||
|
||||
@@ -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