mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 10:02:06 +08:00
8846b907d7
Disable Widecam Feature Disable Widecam Feature Disable Widecam Feature Disable Widecam Feature
23 lines
678 B
C++
23 lines
678 B
C++
#include "system/camerad/cameras/camera_common.h"
|
|
|
|
#include "common/params.h"
|
|
#include "common/swaglog.h"
|
|
#include "common/util.h"
|
|
|
|
int main(int argc, char *argv[]) {
|
|
// doesn't need RT priority since we're using isolcpus
|
|
int ret = util::set_core_affinity({6});
|
|
if (ret != 0 && !Params().getBool("IsOffroad")) {
|
|
// Keep camerad alive in forced/demo bring-up scenarios where affinity can fail.
|
|
LOGW("camerad: set_core_affinity failed (%d), continuing", ret);
|
|
}
|
|
|
|
if (Params().getBool("DisableWideRoad")) {
|
|
setenv("DISABLE_WIDE_ROAD", "1", 1);
|
|
LOGW("camerad: DisableWideRoad param set, disabling wide road camera");
|
|
}
|
|
|
|
camerad_thread();
|
|
return 0;
|
|
}
|