mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-28 15:53:53 +08:00
* navd: start python rewrite * use enum * send empty instruction packet * parse banner * cleanup * switch to coordinate class * add segment transition logic * add recompute logic * cleanup old navd code * split out helpers * cleanup release files * fix typo * fix docs * add typing to helpers * small fixes * move outside of ui * get last pos from param * add ui restart detection * check running * send route * set navInstruction to invalid with no active route * whitespace * do not overwrite response and use ratekeeper * reuse params object * remove navd exception
34 lines
841 B
C++
34 lines
841 B
C++
#include <QApplication>
|
|
#include <QtWidgets>
|
|
|
|
#include "selfdrive/ui/qt/qt_window.h"
|
|
#include "selfdrive/ui/qt/util.h"
|
|
#include "selfdrive/ui/qt/widgets/cameraview.h"
|
|
|
|
int main(int argc, char *argv[]) {
|
|
initApp(argc, argv);
|
|
|
|
QApplication a(argc, argv);
|
|
QWidget w;
|
|
setMainWindow(&w);
|
|
|
|
QVBoxLayout *layout = new QVBoxLayout(&w);
|
|
layout->setMargin(0);
|
|
layout->setSpacing(0);
|
|
|
|
{
|
|
QHBoxLayout *hlayout = new QHBoxLayout();
|
|
layout->addLayout(hlayout);
|
|
hlayout->addWidget(new CameraViewWidget("camerad", VISION_STREAM_ROAD, false));
|
|
}
|
|
|
|
{
|
|
QHBoxLayout *hlayout = new QHBoxLayout();
|
|
layout->addLayout(hlayout);
|
|
hlayout->addWidget(new CameraViewWidget("camerad", VISION_STREAM_DRIVER, false));
|
|
hlayout->addWidget(new CameraViewWidget("camerad", VISION_STREAM_WIDE_ROAD, false));
|
|
}
|
|
|
|
return a.exec();
|
|
}
|