diff options
author | Florian Jung <flo@windfisch.org> | 2015-01-07 14:00:04 +0100 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2015-01-07 14:00:04 +0100 |
commit | e2fc7e5f9701777652fc6a18d0e42cf23e84ecae (patch) | |
tree | 34a383470dfefe0fda6d4a25880c6d554b340358 /lib.h | |
parent | 7a51b8103dc6b6a5ee4689dc93cad40b6e866d06 (diff) |
client lib
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 |