Files
StarPilot/openpilot/selfdrive/pandad/main.cc
T
firestar5683 c1aeddbfea Power
Manage device power, parked services and vehicle-specific Panda wake behavior.

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Daniel Koepping <elkoled@gmail.com>
Co-authored-by: firestarsdog <229254897+firestarsdog@users.noreply.github.com>
2026-10-14 19:56:17 -05:00

24 lines
521 B
C++

#include <cassert>
#include "selfdrive/pandad/pandad.h"
#include "common/swaglog.h"
#include "common/util.h"
#include "common/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;
for (int i = 1; i < argc; ++i) serials.emplace_back(argv[i]);
pandad_main_thread(serials);
return 0;
}