54e6124925
version: sunnypilot v2026.001.000 (dev) date: 2026-05-07T23:07:19 master commit: c28eb958740187620f2282023b8f1997cf90f583
23 lines
470 B
C++
23 lines
470 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::string serial = (argc > 1) ? argv[1] : "";
|
|
pandad_main_thread(serial);
|
|
return 0;
|
|
}
|