mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-30 19:12:07 +08:00
33d5cfc393
date: 2025-12-18T23:23:16 master commit: 3cdee7b54718ee14bd85befd6c5bad3d699c5479
23 lines
480 B
C++
23 lines
480 B
C++
#include <cassert>
|
|
|
|
#include "selfdrive/pandad/pandad.h"
|
|
#include "common/swaglog.h"
|
|
#include "common/util.h"
|
|
#include "system/hardware/hw.h"
|
|
|
|
int main(int argc, char *argv[]) {
|
|
LOGW("starting pandad");
|
|
|
|
if (!Hardware::PC()) {
|
|
int err;
|
|
err = util::set_realtime_priority(54);
|
|
assert(err == 0);
|
|
err = util::set_core_affinity({3});
|
|
assert(err == 0);
|
|
}
|
|
|
|
std::vector<std::string> serials(argv + 1, argv + argc);
|
|
pandad_main_thread(serials);
|
|
return 0;
|
|
}
|