Parameter not updated
Posted: 13 July 2011 05:28 AM   [ Ignore ]
New Member
Rank
Total Posts:  2
Joined  2011-07-12

Hi,

  I am modifying CLEyeMulticamTest.cpp to use three cameras and set the rotaion to
zero intitally.

  I have this method in CLEyeCameraCapture

void SetCameraParameter_zero(int param)
    
{
        
if(!_cam)    return;
        
CLEyeSetCameraParameter(_cam, (CLEyeCameraParameter)param,  CLEyeGetCameraParameter(_cam, (CLEyeCameraParameter)param)-CLEyeGetCameraParameter(_cam, (CLEyeCameraParameter)param));
    

If I do the following only camera one is set to rotation 0

 

//Make camera orient in the right way
    
for(int j=0;j<3;j++)
    
{
       cam[j]
->SetCameraParameter_zero(CLEYE_ROTATION);
    
printf("j=%d\n",j);
    

but if I use the same method in the switch and one by one set each
camera to 0 by keyboard input it works.

Any clues?
  thanks, joby

Profile
 
 
Posted: 14 July 2011 12:05 AM   [ Ignore ]   [ # 1 ]
New Member
Rank
Total Posts:  2
Joined  2011-07-12

Solved

the camera was not ready when the SetCameraParameter_zero was being called.
So we have to include a wait for camera function before such initializations are done.

void WaitForCamera()
    
{
        
while (!_cam)
            
printf("no camera \n");
    
Profile
 
 
 
 


RSS 2.0     Atom Feed