Commit 09373ac6 authored by Nícolas F. R. A. Prado's avatar Nícolas F. R. A. Prado
Browse files

Hardcode exposure on rkisp1 IPA to have visible images

parent 6084217c
......@@ -118,7 +118,7 @@ int IPARkISP1::configure([[maybe_unused]] const CameraSensorInfo &info,
minExposure_ = std::max<uint32_t>(itExp->second.min().get<int32_t>(), 1);
maxExposure_ = itExp->second.max().get<int32_t>();
exposure_ = minExposure_;
exposure_ = 1600;
minGain_ = std::max<uint32_t>(itGain->second.min().get<int32_t>(), 1);
maxGain_ = itGain->second.max().get<int32_t>();
......@@ -272,8 +272,8 @@ void IPARkISP1::setControls(unsigned int frame)
op.op = ipa::rkisp1::ActionV4L2Set;
ControlList ctrls(ctrls_);
ctrls.set(V4L2_CID_EXPOSURE, static_cast<int32_t>(exposure_));
ctrls.set(V4L2_CID_ANALOGUE_GAIN, static_cast<int32_t>(gain_));
/* ctrls.set(V4L2_CID_EXPOSURE, static_cast<int32_t>(exposure_)); */
/* ctrls.set(V4L2_CID_ANALOGUE_GAIN, static_cast<int32_t>(gain_)); */
op.controls = ctrls;
queueFrameAction.emit(frame, op);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment