Files
dragonpilot/system/camerad/main.cc

23 lines
536 B
C++
Raw Normal View History

#include "system/camerad/cameras/camera_common.h"
#include <cassert>
#include "common/params.h"
#include "common/util.h"
#include "system/hardware/hw.h"
2020-01-17 10:52:42 -08:00
int main(int argc, char *argv[]) {
if (Hardware::PC()) {
printf("exiting, camerad is not meant to run on PC\n");
return 0;
2021-10-26 21:51:46 -07:00
}
2020-01-17 10:52:42 -08:00
int ret = util::set_realtime_priority(53);
assert(ret == 0);
ret = util::set_core_affinity({6});
assert(ret == 0 || Params().getBool("IsOffroad")); // failure ok while offroad due to offlining cores
camerad_thread();
2022-01-18 21:21:30 +08:00
return 0;
2020-01-17 10:52:42 -08:00
}