Files
sunnypilot/selfdrive/pandad/main.cc
Adeeb Shihadeh 389daf4018 pandad: move to core 3 (#32402)
* move to core 3

* core is fully offlined now

* move to init

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7b09285817
2024-06-05 14:50:25 -07:00

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;
}