mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-28 02:13:45 +08:00
eefc084302
version: sunnypilot v2025.003.000 (dev) date: 2025-12-18T05:48:43 master commit: 16c052af0835f049a67b80251d8cc1114fc08bb4
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;
|
|
}
|