You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
763 B
32 lines
763 B
#pragma once |
|
#include <AP_HAL/AP_HAL.h> |
|
#include <AP_SerialManager/AP_SerialManager.h> |
|
#include <AP_Common/AP_Common.h> |
|
|
|
#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; |
|
|
|
};
|
|
|