diff options
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -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 |