|
|
@ -4,14 +4,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
#include "common/params.h" |
|
|
|
#include "common/params.h" |
|
|
|
#include "common/util.h" |
|
|
|
#include "common/util.h" |
|
|
|
#include "system/hardware/hw.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[]) { |
|
|
|
int main(int argc, char *argv[]) { |
|
|
|
if (Hardware::PC()) { |
|
|
|
|
|
|
|
printf("exiting, camerad is not meant to run on PC\n"); |
|
|
|
|
|
|
|
return 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int ret = util::set_realtime_priority(53); |
|
|
|
int ret = util::set_realtime_priority(53); |
|
|
|
assert(ret == 0); |
|
|
|
assert(ret == 0); |
|
|
|
ret = util::set_core_affinity({6}); |
|
|
|
ret = util::set_core_affinity({6}); |
|
|
|