2023-09-27 15:45:31 -07:00
|
|
|
#include <cassert>
|
|
|
|
|
2024-06-11 01:36:40 +00:00
|
|
|
#include "selfdrive/pandad/pandad.h"
|
2023-09-27 15:45:31 -07:00
|
|
|
#include "common/swaglog.h"
|
|
|
|
#include "common/util.h"
|
|
|
|
#include "system/hardware/hw.h"
|
|
|
|
|
|
|
|
int main(int argc, char *argv[]) {
|
2024-06-11 01:36:40 +00:00
|
|
|
LOGW("starting pandad");
|
2023-09-27 15:45:31 -07:00
|
|
|
|
|
|
|
if (!Hardware::PC()) {
|
|
|
|
int err;
|
|
|
|
err = util::set_realtime_priority(54);
|
|
|
|
assert(err == 0);
|
2024-06-11 01:36:40 +00:00
|
|
|
err = util::set_core_affinity({3});
|
2023-09-27 15:45:31 -07:00
|
|
|
assert(err == 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
std::vector<std::string> serials(argv + 1, argv + argc);
|
2024-06-11 01:36:40 +00:00
|
|
|
pandad_main_thread(serials);
|
2023-09-27 15:45:31 -07:00
|
|
|
return 0;
|
|
|
|
}
|