mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-03 06:33:50 +08:00
81da8ac9f4
date: 2024-06-11T01:36:39 master commit: f8cb04e4a8b032b72a909f68b808a50936184bee
30 lines
711 B
C++
30 lines
711 B
C++
#include <csignal>
|
|
#include <sys/resource.h>
|
|
|
|
#include <QApplication>
|
|
#include <QDebug>
|
|
|
|
#include "common/util.h"
|
|
#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"
|
|
|
|
int main(int argc, char *argv[]) {
|
|
Hardware::config_cpu_rendering(true);
|
|
|
|
qInstallMessageHandler(swagLogMessageHandler);
|
|
setpriority(PRIO_PROCESS, 0, -20);
|
|
int ret = util::set_core_affinity({0, 1, 2, 3});
|
|
assert(ret == 0);
|
|
|
|
QApplication app(argc, argv);
|
|
std::signal(SIGINT, sigTermHandler);
|
|
std::signal(SIGTERM, sigTermHandler);
|
|
|
|
MapRenderer * m = new MapRenderer(get_mapbox_settings());
|
|
assert(m);
|
|
|
|
return app.exec();
|
|
}
|