fripon / freeture

A Free software to capTure meteors
http://fripon.github.io/freeture
GNU General Public License v3.0
56 stars 23 forks source link

Aravis cam always use 30 fps #14

Open ArkadiuszRaj opened 8 years ago

ArkadiuszRaj commented 8 years ago

Inside AcqThread, while initializing camera there is such a code:

// SET FPS.
if(!mDevice->setCameraFPS())
    return false;

// INIT CAMERA.
if(!mDevice->initializeCamera())
    return false;

The problem is that for AravisGigeCamera, initializeCamera() enforces 30 fps thus using setCameraFPS() is ineffective.

A temporary solution is replace those two code blocks with each other. I could place a pull request however I have no idea now how such a change will influence all other input sources. Thus writing a ticket only.

ArkadiuszRaj commented 8 years ago
--- freeture/src/AcqThread.cpp  2016-06-28 17:19:59.585273406 +0200
+++ ../../freeture/src/AcqThread.cpp    2016-06-11 13:17:49.362190632 +0200
@@ -1161,14 +1161,15 @@

     }

-    // SET FPS.
-    if(!mDevice->setCameraFPS())
-        return false;

     // INIT CAMERA.
     if(!mDevice->initializeCamera())
         return false;

+    // SET FPS.
+    if(!mDevice->setCameraFPS())
+        return false;
+
     // START CAMERA.
     if(!mDevice->startCamera())
         return false;