You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
480 B
23 lines
480 B
2 years ago
|
#include <cassert>
|
||
|
|
||
11 months ago
|
#include "selfdrive/pandad/pandad.h"
|
||
2 years ago
|
#include "common/swaglog.h"
|
||
|
#include "common/util.h"
|
||
|
#include "system/hardware/hw.h"
|
||
|
|
||
|
int main(int argc, char *argv[]) {
|
||
11 months ago
|
LOGW("starting pandad");
|
||
2 years ago
|
|
||
|
if (!Hardware::PC()) {
|
||
|
int err;
|
||
|
err = util::set_realtime_priority(54);
|
||
|
assert(err == 0);
|
||
11 months ago
|
err = util::set_core_affinity({3});
|
||
2 years ago
|
assert(err == 0);
|
||
|
}
|
||
|
|
||
|
std::vector<std::string> serials(argv + 1, argv + argc);
|
||
11 months ago
|
pandad_main_thread(serials);
|
||
2 years ago
|
return 0;
|
||
|
}
|