camerad: remove unused macros and global (#21970)

pull/21982/head
Dean Lee 4 years ago committed by GitHub
parent 5f1ec6339f
commit e646febaae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      selfdrive/camerad/cameras/camera_common.h
  2. 3
      selfdrive/camerad/cameras/camera_qcom2.cc

@ -34,10 +34,6 @@
#define LOG_CAMERA_ID_QCAMERA 3 #define LOG_CAMERA_ID_QCAMERA 3
#define LOG_CAMERA_ID_MAX 4 #define LOG_CAMERA_ID_MAX 4
#define HLC_THRESH 222
#define HLC_A 80
#define HISTO_CEIL_K 5
const bool env_send_driver = getenv("SEND_DRIVER") != NULL; const bool env_send_driver = getenv("SEND_DRIVER") != NULL;
const bool env_send_road = getenv("SEND_ROAD") != NULL; const bool env_send_road = getenv("SEND_ROAD") != NULL;
const bool env_send_wide_road = getenv("SEND_WIDE_ROAD") != NULL; const bool env_send_wide_road = getenv("SEND_WIDE_ROAD") != NULL;

@ -55,9 +55,6 @@ const int ANALOG_GAIN_MAX_IDX = 0xD; // 4.0x
const int EXPOSURE_TIME_MIN = 2; // with HDR, fastest ss const int EXPOSURE_TIME_MIN = 2; // with HDR, fastest ss
const int EXPOSURE_TIME_MAX = 1904; // with HDR, slowest ss const int EXPOSURE_TIME_MAX = 1904; // with HDR, slowest ss
// global var for AE ops
std::atomic<CameraExpInfo> cam_exp[3] = {{{0}}};
// ************** low level camera helpers **************** // ************** low level camera helpers ****************
int cam_control(int fd, int op_code, void *handle, int size) { int cam_control(int fd, int op_code, void *handle, int size) {
struct cam_control camcontrol = {0}; struct cam_control camcontrol = {0};

Loading…
Cancel
Save