summaryrefslogtreecommitdiff
path: root/lib.h
diff options
context:
space:
mode:
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