Skip to content

Commit

Permalink
camerad: move debugging parameters from camera_common.h to camera_qco…
Browse files Browse the repository at this point in the history
…m2.cc (commaai#33589)

move debugging parameters

Co-authored-by: Adeeb Shihadeh <[email protected]>
  • Loading branch information
deanlee and adeebshihadeh authored Sep 19, 2024
1 parent 78db136 commit c95f0f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions system/camerad/cameras/camera_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@

const int YUV_BUFFER_COUNT = 20;

// for debugging
const bool env_debug_frames = getenv("DEBUG_FRAMES") != NULL;
const bool env_log_raw_frames = getenv("LOG_RAW_FRAMES") != NULL;
const bool env_ctrl_exp_from_params = getenv("CTRL_EXP_FROM_PARAMS") != NULL;

typedef struct FrameMetadata {
uint32_t frame_id;
uint32_t request_id;
Expand Down
5 changes: 5 additions & 0 deletions system/camerad/cameras/camera_qcom2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@

ExitHandler do_exit;

// for debugging
const bool env_debug_frames = getenv("DEBUG_FRAMES") != nullptr;
const bool env_log_raw_frames = getenv("LOG_RAW_FRAMES") != nullptr;
const bool env_ctrl_exp_from_params = getenv("CTRL_EXP_FROM_PARAMS") != nullptr;


// high level camera state
class CameraState : public SpectraCamera {
Expand Down

0 comments on commit c95f0f0

Please sign in to comment.