summaryrefslogtreecommitdiffstats
path: root/plugins/ufo
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-02-20 16:23:32 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-02-20 16:23:32 +0100
commit1f58dac536f4344908efce496b1606afcb6be608 (patch)
tree8a90cd637979c0f25cbf032f1fa4bb7507ec9316 /plugins/ufo
parent3f68356bb6fb57f18eb64d946d1698905a1dd663 (diff)
downloadlibuca-1f58dac536f4344908efce496b1606afcb6be608.tar.gz
libuca-1f58dac536f4344908efce496b1606afcb6be608.tar.bz2
libuca-1f58dac536f4344908efce496b1606afcb6be608.tar.xz
libuca-1f58dac536f4344908efce496b1606afcb6be608.zip
Fix ufo compilation
Diffstat (limited to 'plugins/ufo')
-rw-r--r--plugins/ufo/uca-ufo-camera.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/ufo/uca-ufo-camera.c b/plugins/ufo/uca-ufo-camera.c
index f353356..273d3dd 100644
--- a/plugins/ufo/uca-ufo-camera.c
+++ b/plugins/ufo/uca-ufo-camera.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <pcilib.h>
#include <errno.h>
+#include <math.h>
#include "uca-camera.h"
#include "uca-ufo-camera.h"
@@ -512,6 +513,7 @@ uca_ufo_camera_get_property(GObject *object, guint property_id, GValue *value, G
readout_time = exposure_time + overhead_time + image_readout_time;
delay_time = trigger_period * 8.0 * 1e-9;
framerate = 1.0 / (readout_time + delay_time);
+ framerate *= 1000 * 1000; /* clock_period is in MHz */
g_value_set_double(value, framerate);
}
break;