mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-08 13:33:42 +08:00
c1aeddbfea
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>
24 lines
521 B
C++
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;
|
|
}
|