remove dashcam branch (#31081)

* remove dashcam branch

* fix

* more cleanup

* remove param

* one more
This commit is contained in:
Adeeb Shihadeh
2024-01-19 14:05:03 -08:00
committed by GitHub
parent 18467c8383
commit 7cd9568423
35 changed files with 28 additions and 108 deletions
+4 -10
View File
@@ -101,23 +101,17 @@ if GetOption('extras') and arch != "Darwin":
senv['LINKFLAGS'].append('-Wl,-strip-debug')
release = "release3"
dashcam = "dashcam3"
installers = [
("openpilot", release),
("openpilot_test", f"{release}-staging"),
("openpilot_nightly", "nightly"),
("openpilot_internal", "master"),
("dashcam", dashcam),
("dashcam_test", f"{dashcam}-staging"),
]
cont = {}
for brand in ("openpilot", "dashcam"):
cont[brand] = senv.Command(f"installer/continue_{brand}.o", f"installer/continue_{brand}.sh",
"ld -r -b binary -o $TARGET $SOURCE")
cont = senv.Command(f"installer/continue_openpilot.o", f"installer/continue_openpilot.sh",
"ld -r -b binary -o $TARGET $SOURCE")
for name, branch in installers:
brand = "dashcam" if "dashcam" in branch else "openpilot"
d = {'BRANCH': f"'\"{branch}\"'", 'BRAND': f"'\"{brand}\"'"}
d = {'BRANCH': f"'\"{branch}\"'"}
if "internal" in name:
d['INTERNAL'] = "1"
@@ -126,7 +120,7 @@ if GetOption('extras') and arch != "Darwin":
r.raise_for_status()
d['SSH_KEYS'] = f'\\"{r.text.strip()}\\"'
obj = senv.Object(f"installer/installers/installer_{name}.o", ["installer/installer.cc"], CPPDEFINES=d)
f = senv.Program(f"installer/installers/installer_{name}", [obj, cont[brand]], LIBS=qt_libs)
f = senv.Program(f"installer/installers/installer_{name}", [obj, cont], LIBS=qt_libs)
# keep installers small
assert f[0].get_size() < 350*1e3
@@ -1,4 +0,0 @@
#!/usr/bin/bash
cd /data/openpilot
exec ./launch_chffrplus.sh
+2 -2
View File
@@ -33,8 +33,8 @@ const QString CACHE_PATH = "/data/openpilot.cache";
#define INSTALL_PATH "/data/openpilot"
#define TMP_INSTALL_PATH "/data/tmppilot"
extern const uint8_t str_continue[] asm("_binary_selfdrive_ui_installer_continue_" BRAND "_sh_start");
extern const uint8_t str_continue_end[] asm("_binary_selfdrive_ui_installer_continue_" BRAND "_sh_end");
extern const uint8_t str_continue[] asm("_binary_selfdrive_ui_installer_continue_openpilot_sh_start");
extern const uint8_t str_continue_end[] asm("_binary_selfdrive_ui_installer_continue_openpilot_sh_end");
bool time_valid() {
time_t rawtime;
+1 -1
View File
@@ -183,7 +183,7 @@ void DeclinePage::showEvent(QShowEvent *event) {
void OnboardingWindow::updateActiveScreen() {
if (!accepted_terms) {
setCurrentIndex(0);
} else if (!training_done && !params.getBool("Passive")) {
} else if (!training_done) {
setCurrentIndex(1);
} else {
emit onboardingDone();
+7 -9
View File
@@ -215,15 +215,13 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) {
});
addItem(resetCalibBtn);
if (!params.getBool("Passive")) {
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)) {
emit reviewTrainingGuide();
}
});
addItem(retrainingBtn);
}
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)) {
emit reviewTrainingGuide();
}
});
addItem(retrainingBtn);
if (Hardware::TICI()) {
auto regulatoryBtn = new ButtonControl(tr("Regulatory"), tr("VIEW"), "");
+3 -3
View File
@@ -20,7 +20,7 @@
#include "selfdrive/ui/qt/widgets/input.h"
const std::string USER_AGENT = "AGNOSSetup-";
const QString DASHCAM_URL = "https://dashcam.comma.ai";
const QString TEST_URL = "https://openpilot.comma.ai";
bool is_elf(char *fname) {
FILE *fp = fopen(fname, "rb");
@@ -229,11 +229,11 @@ QWidget * Setup::network_setup() {
}
repaint();
});
request->sendRequest(DASHCAM_URL);
request->sendRequest(TEST_URL);
QTimer *timer = new QTimer(this);
QObject::connect(timer, &QTimer::timeout, [=]() {
if (!request->active() && cont->isVisible()) {
request->sendRequest(DASHCAM_URL);
request->sendRequest(TEST_URL);
}
});
timer->start(1000);
+1 -1
View File
@@ -25,7 +25,7 @@ QString getVersion() {
}
QString getBrand() {
return Params().getBool("Passive") ? QObject::tr("dashcam") : QObject::tr("openpilot");
return QObject::tr("openpilot");
}
QString getUserAgent() {
-4
View File
@@ -562,10 +562,6 @@
<source>Exit</source>
<translation>إغلاق</translation>
</message>
<message>
<source>dashcam</source>
<translation>dashcam</translation>
</message>
<message>
<source>openpilot</source>
<translation>openpilot</translation>
-4
View File
@@ -557,10 +557,6 @@
<source>Exit</source>
<translation>Verlassen</translation>
</message>
<message>
<source>dashcam</source>
<translation>dashcam</translation>
</message>
<message>
<source>openpilot</source>
<translation>openpilot</translation>
-4
View File
@@ -558,10 +558,6 @@
<source>Exit</source>
<translation>Quitter</translation>
</message>
<message>
<source>dashcam</source>
<translation>dashcam</translation>
</message>
<message>
<source>openpilot</source>
<translation>openpilot</translation>
-4
View File
@@ -556,10 +556,6 @@
<source>Exit</source>
<translation></translation>
</message>
<message>
<source>dashcam</source>
<translation></translation>
</message>
<message>
<source>openpilot</source>
<translation>openpilot</translation>
-4
View File
@@ -557,10 +557,6 @@
<source>Exit</source>
<translation></translation>
</message>
<message>
<source>dashcam</source>
<translation></translation>
</message>
<message>
<source>openpilot</source>
<translation>openpilot</translation>
-4
View File
@@ -558,10 +558,6 @@
<source>Exit</source>
<translation>Sair</translation>
</message>
<message>
<source>dashcam</source>
<translation>dashcam</translation>
</message>
<message>
<source>openpilot</source>
<translation>openpilot</translation>
-4
View File
@@ -557,10 +557,6 @@
<source>Exit</source>
<translation></translation>
</message>
<message>
<source>dashcam</source>
<translation></translation>
</message>
<message>
<source>openpilot</source>
<translation>openpilot</translation>
-4
View File
@@ -556,10 +556,6 @@
<source>Exit</source>
<translation>Çık</translation>
</message>
<message>
<source>dashcam</source>
<translation>araç yol kamerası</translation>
</message>
<message>
<source>openpilot</source>
<translation>openpilot</translation>
-4
View File
@@ -557,10 +557,6 @@
<source>Exit</source>
<translation>退</translation>
</message>
<message>
<source>dashcam</source>
<translation></translation>
</message>
<message>
<source>openpilot</source>
<translation>openpilot</translation>
-4
View File
@@ -557,10 +557,6 @@
<source>Exit</source>
<translation></translation>
</message>
<message>
<source>dashcam</source>
<translation></translation>
</message>
<message>
<source>openpilot</source>
<translation>openpilot</translation>