int ToFCameraPMDController::SetModulationFrequency(unsigned int modulationFrequency)
 {
   unsigned int result;
   this->m_PMDRes = pmdGetValidModulationFrequency(m_PMDHandle, &result, 0, AtLeast, (modulationFrequency*1000000));
   ErrorText(this->m_PMDRes);
   if (this->m_PMDRes != 0)
   {
     return 0;
   }
   this->m_PMDRes = pmdSetModulationFrequency(m_PMDHandle, 0, result);
   ErrorText(this->m_PMDRes);
   return (result/1000000);;
 }
Exemplo n.º 2
0
 int ToFCameraPMDController::SetModulationFrequency(unsigned int modulationFrequency)
 {
   if(!m_ConnectionCheck)
   {
     return modulationFrequency;
   }
   unsigned int result;
   this->m_PMDRes = pmdGetValidModulationFrequency(m_PMDHandle, &result, 0, AtLeast, (modulationFrequency*1000000));
   MITK_INFO << "Valid Modulation Frequency = " << result;
   ErrorText(this->m_PMDRes);
   if (this->m_PMDRes != 0)
   {
     return 0;
   }
   this->m_PMDRes = pmdSetModulationFrequency(m_PMDHandle, 0, result);
   ErrorText(this->m_PMDRes);
   return (result/1000000);;
 }