Hi All,
I am trying to set the integration duty circle for the TOF device loaded with MetrilusShortRange profile.
The parameter is set as
void TOFApp::Init(int w, int h)
{
_isRunning = false;
_dimen.width = w;
_dimen.height = h;
_loopDelay = 20;
_illum_power = 100U;
_intg = 31U;
}
bool TOFApp::connect()
{
FrameRate fr;
fr.numerator = 15;
fr.denominator = 1;
_depthCamera->setFrameSize(_dimen);
_depthCamera->set("intg_duty_cycle", _intg);
_depthCamera->set("illum_power_percentage", _illum_power);
_depthCamera->setFrameRate(fr);
}
But when I check the parameter, illumination and frame rate are set correctly.
But the integration duty circle is 5.
So it didn't set correctly.
What could be wrong?
How I check is
FrameRate F;
_depthCamera->getFrameRate(F);
std::cout << "Frame rate " << F.getFrameRate() << endl;
uint v;
bool refresh = false;
_depthCamera->get("illum_power_percentage", v, refresh);
std::cout << "illum_power " << v << endl;
uint v1;
_depthCamera->get("intg_duty_cycle", v1, refresh);
std::cout << "intg_duty_cycle " << v1 << endl;
Integration duty circle is printed out as 5.
What is wrong?
Thanks