mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-03-02 07:53:51 +08:00
32 lines
607 B
C++
32 lines
607 B
C++
#include <QApplication>
|
|
#include <QDebug>
|
|
#include <csignal>
|
|
|
|
#include "selfdrive/ui/qt/util.h"
|
|
#include "selfdrive/ui/qt/maps/map_helpers.h"
|
|
#include "selfdrive/navd/map_renderer.h"
|
|
#include "system/hardware/hw.h"
|
|
|
|
|
|
|
|
void sigHandler(int s) {
|
|
qInfo() << "Shutting down";
|
|
std::signal(s, SIG_DFL);
|
|
|
|
qApp->quit();
|
|
}
|
|
|
|
|
|
int main(int argc, char *argv[]) {
|
|
qInstallMessageHandler(swagLogMessageHandler);
|
|
|
|
QApplication app(argc, argv);
|
|
std::signal(SIGINT, sigHandler);
|
|
std::signal(SIGTERM, sigHandler);
|
|
|
|
MapRenderer * m = new MapRenderer(get_mapbox_settings());
|
|
assert(m);
|
|
|
|
return app.exec();
|
|
}
|