summaryrefslogtreecommitdiff
path: root/lib.h
blob: da622ed5ba0664f9ee5bf3fd576f365e20906897 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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