mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-25 16:33:57 +08:00
* remove comma two support
* cleanup release files
* little more
* more libs
* no more gralloc
* add snpe back
old-commit-hash: 5c48e7bc86
21 lines
506 B
C++
21 lines
506 B
C++
#include "selfdrive/camerad/cameras/camera_common.h"
|
|
|
|
#include <cassert>
|
|
|
|
#include "selfdrive/common/params.h"
|
|
#include "selfdrive/common/util.h"
|
|
#include "selfdrive/hardware/hw.h"
|
|
|
|
int main(int argc, char *argv[]) {
|
|
if (Hardware::TICI()) {
|
|
int ret;
|
|
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();
|
|
return 0;
|
|
}
|