From 25aa59b26cc5d4a0ad9bd9511bea4bbaf570c8b4 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Sat, 11 Jan 2025 11:50:28 -0500 Subject: [PATCH] old calibration design for now --- selfdrive/ui/qt/offroad/settings.cc | 2 ++ .../sunnypilot/qt/offroad/settings/device_panel.cc | 9 --------- selfdrive/ui/translations/main_ar.ts | 12 ------------ selfdrive/ui/translations/main_de.ts | 12 ------------ selfdrive/ui/translations/main_es.ts | 12 ------------ selfdrive/ui/translations/main_fr.ts | 12 ------------ selfdrive/ui/translations/main_ja.ts | 12 ------------ selfdrive/ui/translations/main_ko.ts | 12 ------------ selfdrive/ui/translations/main_pt-BR.ts | 12 ------------ selfdrive/ui/translations/main_th.ts | 12 ------------ selfdrive/ui/translations/main_tr.ts | 12 ------------ selfdrive/ui/translations/main_zh-CHS.ts | 12 ------------ selfdrive/ui/translations/main_zh-CHT.ts | 12 ------------ 13 files changed, 2 insertions(+), 141 deletions(-) diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index 041b7635bb..76f7672ca9 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -218,6 +218,7 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) { dcamBtn->setEnabled(true); }); addItem(dcamBtn); +#endif auto resetCalibBtn = new ButtonControl(tr("Reset Calibration"), tr("RESET"), ""); connect(resetCalibBtn, &ButtonControl::showDescriptionEvent, this, &DevicePanel::updateCalibDescription); @@ -229,6 +230,7 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) { }); addItem(resetCalibBtn); +#ifndef SUNNYPILOT auto retrainingBtn = new ButtonControl(tr("Review Training Guide"), tr("REVIEW"), tr("Review the rules, features, and limitations of openpilot")); connect(retrainingBtn, &ButtonControl::clicked, [=]() { if (ConfirmationDialog::confirm(tr("Are you sure you want to review the training guide?"), tr("Review"), this)) { diff --git a/selfdrive/ui/sunnypilot/qt/offroad/settings/device_panel.cc b/selfdrive/ui/sunnypilot/qt/offroad/settings/device_panel.cc index b5a494e55a..9f718fdf71 100644 --- a/selfdrive/ui/sunnypilot/qt/offroad/settings/device_panel.cc +++ b/selfdrive/ui/sunnypilot/qt/offroad/settings/device_panel.cc @@ -19,7 +19,6 @@ DevicePanelSP::DevicePanelSP(SettingsWindowSP *parent) : DevicePanel(parent) { std::vector> device_btns = { {"dcamBtn", tr("Driver Camera Preview")}, - {"resetCalibBtn", tr("Calibration Status")}, {"retrainingBtn", tr("Training Guide")}, {"regulatoryBtn", tr("Regulatory")}, {"translateBtn", tr("Language")}, @@ -38,14 +37,6 @@ DevicePanelSP::DevicePanelSP(SettingsWindowSP *parent) : DevicePanel(parent) { buttons["dcamBtn"]->setEnabled(true); }); - connect(buttons["resetCalibBtn"], &PushButtonSP::clicked, this, &DevicePanelSP::updateCalibDescription); - connect(buttons["resetCalibBtn"], &PushButtonSP::clicked, [&]() { - if (ConfirmationDialog::confirm(tr("Are you sure you want to reset calibration?"), tr("Reset"), this)) { - params.remove("CalibrationParams"); - params.remove("LiveTorqueParameters"); - } - }); - connect(buttons["retrainingBtn"], &PushButtonSP::clicked, [=]() { if (ConfirmationDialog::confirm(tr("Are you sure you want to review the training guide?"), tr("Review"), this)) { emit reviewTrainingGuide(); diff --git a/selfdrive/ui/translations/main_ar.ts b/selfdrive/ui/translations/main_ar.ts index 3d38e5cdfd..34b27c6139 100644 --- a/selfdrive/ui/translations/main_ar.ts +++ b/selfdrive/ui/translations/main_ar.ts @@ -297,14 +297,6 @@ Regulatory التنظيمية - - Are you sure you want to reset calibration? - هل أنت متأكد أنك تريد إعادة ضبط المعايرة؟ - - - Reset - إعادة الضبط - Are you sure you want to review the training guide? هل أنت متأكد أنك تريد مراجعة دليل التدريب؟ @@ -317,10 +309,6 @@ Select a language اختر لغة - - Calibration Status - - Power Off إيقاف التشغيل diff --git a/selfdrive/ui/translations/main_de.ts b/selfdrive/ui/translations/main_de.ts index 3d5e2788f6..e8d8cf03e9 100644 --- a/selfdrive/ui/translations/main_de.ts +++ b/selfdrive/ui/translations/main_de.ts @@ -297,14 +297,6 @@ Regulatory Rechtliche Hinweise - - Are you sure you want to reset calibration? - Bist du sicher, dass du die Kalibrierung zurücksetzen möchtest? - - - Reset - Zurücksetzen - Are you sure you want to review the training guide? Bist du sicher, dass du die Trainingsanleitung wiederholen möchtest? @@ -317,10 +309,6 @@ Select a language Sprache wählen - - Calibration Status - - Power Off Ausschalten diff --git a/selfdrive/ui/translations/main_es.ts b/selfdrive/ui/translations/main_es.ts index 54b6c21cdf..647776fb58 100644 --- a/selfdrive/ui/translations/main_es.ts +++ b/selfdrive/ui/translations/main_es.ts @@ -297,14 +297,6 @@ Regulatory Regulador - - Are you sure you want to reset calibration? - ¿Seguro que quiere formatear la calibración? - - - Reset - Formatear - Are you sure you want to review the training guide? ¿Seguro que quiere revisar la guía de entrenamiento? @@ -317,10 +309,6 @@ Select a language - - Calibration Status - - Power Off Apagar diff --git a/selfdrive/ui/translations/main_fr.ts b/selfdrive/ui/translations/main_fr.ts index a7c04bead5..adc62f1a2d 100644 --- a/selfdrive/ui/translations/main_fr.ts +++ b/selfdrive/ui/translations/main_fr.ts @@ -297,14 +297,6 @@ Regulatory Réglementaire - - Are you sure you want to reset calibration? - Êtes-vous sûr de vouloir réinitialiser la calibration ? - - - Reset - Réinitialiser - Are you sure you want to review the training guide? Êtes-vous sûr de vouloir revoir le guide de formation ? @@ -317,10 +309,6 @@ Select a language Choisir une langue - - Calibration Status - - Power Off Éteindre diff --git a/selfdrive/ui/translations/main_ja.ts b/selfdrive/ui/translations/main_ja.ts index b5ffa50cc3..5af164387d 100644 --- a/selfdrive/ui/translations/main_ja.ts +++ b/selfdrive/ui/translations/main_ja.ts @@ -297,14 +297,6 @@ Regulatory 認証情報 - - Are you sure you want to reset calibration? - キャリブレーションをリセットしてもよろしいですか? - - - Reset - リセット - Are you sure you want to review the training guide? 使い方の確認をしますか? @@ -317,10 +309,6 @@ Select a language 言語を選択 - - Calibration Status - - Power Off 電源を切る diff --git a/selfdrive/ui/translations/main_ko.ts b/selfdrive/ui/translations/main_ko.ts index c308231a89..345c6692f1 100644 --- a/selfdrive/ui/translations/main_ko.ts +++ b/selfdrive/ui/translations/main_ko.ts @@ -297,14 +297,6 @@ Regulatory 규제 - - Are you sure you want to reset calibration? - 캘리브레이션을 초기화하시겠습니까? - - - Reset - 초기화 - Are you sure you want to review the training guide? 트레이닝 가이드를 다시 확인하시겠습니까? @@ -317,10 +309,6 @@ Select a language 언어를 선택하세요 - - Calibration Status - - Power Off 전원 끄기 diff --git a/selfdrive/ui/translations/main_pt-BR.ts b/selfdrive/ui/translations/main_pt-BR.ts index b29816623e..523bc835ae 100644 --- a/selfdrive/ui/translations/main_pt-BR.ts +++ b/selfdrive/ui/translations/main_pt-BR.ts @@ -297,14 +297,6 @@ Regulatory Regulatório - - Are you sure you want to reset calibration? - Tem certeza que quer resetar a calibragem? - - - Reset - Resetar - Are you sure you want to review the training guide? Tem certeza que quer rever o treinamento? @@ -317,10 +309,6 @@ Select a language Selecione o Idioma - - Calibration Status - - Power Off Desligar diff --git a/selfdrive/ui/translations/main_th.ts b/selfdrive/ui/translations/main_th.ts index 01c80667f0..edb90d6bce 100644 --- a/selfdrive/ui/translations/main_th.ts +++ b/selfdrive/ui/translations/main_th.ts @@ -297,14 +297,6 @@ Regulatory ระเบียบข้อบังคับ - - Are you sure you want to reset calibration? - คุณแน่ใจหรือไม่ว่าต้องการรีเซ็ตการคาลิเบรท? - - - Reset - รีเซ็ต - Are you sure you want to review the training guide? คุณแน่ใจหรือไม่ว่าต้องการทบทวนคู่มือการใช้งาน? @@ -317,10 +309,6 @@ Select a language เลือกภาษา - - Calibration Status - - Power Off ปิดเครื่อง diff --git a/selfdrive/ui/translations/main_tr.ts b/selfdrive/ui/translations/main_tr.ts index 18e97813f7..9da58e872c 100644 --- a/selfdrive/ui/translations/main_tr.ts +++ b/selfdrive/ui/translations/main_tr.ts @@ -297,14 +297,6 @@ Regulatory Mevzuat - - Are you sure you want to reset calibration? - Kalibrasyon ayarını sıfırlamak istediğinizden emin misiniz? - - - Reset - - Are you sure you want to review the training guide? Eğitim kılavuzunu incelemek istediğinizden emin misiniz? @@ -317,10 +309,6 @@ Select a language Dil seçin - - Calibration Status - - Power Off Sistemi kapat diff --git a/selfdrive/ui/translations/main_zh-CHS.ts b/selfdrive/ui/translations/main_zh-CHS.ts index 9759791235..20558a6831 100644 --- a/selfdrive/ui/translations/main_zh-CHS.ts +++ b/selfdrive/ui/translations/main_zh-CHS.ts @@ -297,14 +297,6 @@ Regulatory 监管信息 - - Are you sure you want to reset calibration? - 您确定要重置设备校准吗? - - - Reset - 重置 - Are you sure you want to review the training guide? 您确定要查看新手指南吗? @@ -317,10 +309,6 @@ Select a language 选择语言 - - Calibration Status - - Power Off 关机 diff --git a/selfdrive/ui/translations/main_zh-CHT.ts b/selfdrive/ui/translations/main_zh-CHT.ts index 2c317311ef..abaffbb6bb 100644 --- a/selfdrive/ui/translations/main_zh-CHT.ts +++ b/selfdrive/ui/translations/main_zh-CHT.ts @@ -297,14 +297,6 @@ Regulatory 法規/監管 - - Are you sure you want to reset calibration? - 您確定要重設校準嗎? - - - Reset - 重設 - Are you sure you want to review the training guide? 您確定要觀看使用教學嗎? @@ -317,10 +309,6 @@ Select a language 選擇語言 - - Calibration Status - - Power Off 關機