summaryrefslogtreecommitdiff
path: root/lib.h
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-01-07 14:00:04 +0100
committerFlorian Jung <flo@windfisch.org>2015-01-07 14:00:04 +0100
commite2fc7e5f9701777652fc6a18d0e42cf23e84ecae (patch)
tree34a383470dfefe0fda6d4a25880c6d554b340358 /lib.h
parent7a51b8103dc6b6a5ee4689dc93cad40b6e866d06 (diff)
client lib
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/lib.h b/lib.h
new file mode 100644
index 0000000..da622ed
--- /dev/null
+++ b/lib.h
@@ -0,0 +1,28 @@
+#ifndef __LIB_H__
+#define __LIB_H__
+
+#include <opencv2/opencv.hpp>
+
+struct navdata_t
+{
+ double phi;
+ double theta;
+ double psi;
+ double batt;
+};
+
+
+class DroneConnection
+{
+ public:
+ DroneConnection(const char* sockpath);
+ ~DroneConnection();
+ void get(cv::Mat& frame, navdata_t* navdata);
+
+ private:
+ unsigned char* buffer;
+ int sockfd = -1;
+
+};
+
+#endif