#pragma once #include #include #include #define X30T_MSG_TYPE_POS 1 class AP_Camera_Serial_X30T { public: AP_Camera_Serial_X30T(); /* Do not allow copies */ AP_Camera_Serial_X30T(const AP_Camera_Serial_X30T &other) = delete; AP_Camera_Serial_X30T &operator=(const AP_Camera_Serial_X30T&) = delete; // singleton support static AP_SerialManager *get_singleton(void) { return &singleton; } void sendPos(uint8_t *data,uint8_t type) ; bool init(void); //bool detect(void); private: AP_HAL::UARTDriver *uart= nullptr; AP_SerialManager::SerialProtocol _protocol; static AP_SerialManager singleton; };