openpilot v0.9.6 release
date: 2024-01-12T10:13:37 master commit: ba792d576a49a0899b88a753fa1c52956bedf9e6
This commit is contained in:
22
selfdrive/boardd/main.cc
Normal file
22
selfdrive/boardd/main.cc
Normal file
@@ -0,0 +1,22 @@
|
||||
#include <cassert>
|
||||
|
||||
#include "selfdrive/boardd/boardd.h"
|
||||
#include "common/swaglog.h"
|
||||
#include "common/util.h"
|
||||
#include "system/hardware/hw.h"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
LOGW("starting boardd");
|
||||
|
||||
if (!Hardware::PC()) {
|
||||
int err;
|
||||
err = util::set_realtime_priority(54);
|
||||
assert(err == 0);
|
||||
err = util::set_core_affinity({4});
|
||||
assert(err == 0);
|
||||
}
|
||||
|
||||
std::vector<std::string> serials(argv + 1, argv + argc);
|
||||
boardd_main_thread(serials);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user