uav_platform.h
518 字节
#ifndef __UAV_PLATFORM_HPP__
#define __UAV_PLATFORM_HPP__
#include <string>
#include "uav_typedef.h"
#ifdef __cplusplus
extern "C" {
#endif
extern T_UAVReturnCode UAV_Uart_Init(const char *dev, int baudrate);
extern T_UAVReturnCode UAV_Usb_Init();
#define LOCALHOST_ETHERNET std::string("lo")
extern T_UAVReturnCode UAV_Network_Init(const std::string ether);
extern int get_payload_id(void);
extern void set_payload_type(int type);//设置payload类型
#ifdef __cplusplus
}
#endif
#endif // __UAV_PLATFORM_HPP__