PlaneInfo.h
3.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/**
********************************************************************
* @file PlaneInfo.h
* PlaneInfo.h的头文件
*
*********************************************************************
*/
/* Define to prevent recursive inclusion 避免重定义 -------------------------------------*/
#ifndef PLANE_INFO_H
#define PLANE_INFO_H
/* Includes ------------------------------------------------------------------*/
#include "JZsdk_Base/JZsdk_Code/JZsdk_Code.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Exported constants --------------------------------------------------------*/
/* 常亮定义*/
typedef enum E_JZ_SPECIAL_PLANE_INFO
{
E_JZ_SPECIAL_PLANE_INFO_NONE = 0, //无特殊信息
E_JZ_SPECIAL_PLANE_INFO_DJI_M200_V2 = 44, /*!< Aircraft type is Matrice 200 V2. */
E_JZ_SPECIAL_PLANE_INFO_DJI_M210_V2 = 45, /*!< Aircraft type is Matrice 220 V2. */
E_JZ_SPECIAL_PLANE_INFO_DJI_M210RTK_V2 = 46, /*!< Aircraft type is Matrice 210 RTK V2. */
E_JZ_SPECIAL_PLANE_INFO_DJI_M300_RTK = 60, /*!< Aircraft type is Matrice 300 RTK. */
E_JZ_SPECIAL_PLANE_INFO_DJI_M30 = 67, /*!< Aircraft type is Matrice 30. */
E_JZ_SPECIAL_PLANE_INFO_DJI_M30T = 68, /*!< Aircraft type is Matrice 30T. */
E_JZ_SPECIAL_PLANE_INFO_DJI_M3E = 77, /*!< Aircraft type is Mavic 3E. */
E_JZ_SPECIAL_PLANE_INFO_DJI_FC30 = 78, /* !<Aircraft type is FlyCart 30> */
E_JZ_SPECIAL_PLANE_INFO_DJI_M3T = 79, /*!< Aircraft type is Mavic 3T. */
E_JZ_SPECIAL_PLANE_INFO_DJI_M350_RTK = 89, /*!< Aircraft type is Matrice 350 RTK. */
E_JZ_SPECIAL_PLANE_INFO_DJI_M3D = 91, /*!< Aircraft type is Matrice 3D. */
E_JZ_SPECIAL_PLANE_INFO_DJI_M3TD = 93, /*!< Aircraft type is Matrice 3TD. */
E_JZ_SPECIAL_PLANE_INFO_DJI_M4T = 99, /*!< Aircraft type is Matrice 4T. */
E_JZ_SPECIAL_PLANE_INFO_DJI_M4E = 990, /*!< Aircraft type is Matrice 4E. */
E_JZ_SPECIAL_PLANE_INFO_DJI_M4TD = 100, /*!< Aircraft type is Matrice 4TD. */
E_JZ_SPECIAL_PLANE_INFO_DJI_M4D = 1000, /*!< Aircraft type is Matrice 4D. */
E_JZ_SPECIAL_PLANE_INFO_DJI_M400 = 103, /*!< Aircraft type is Matrice 400. */
}E_JZ_SPECIAL_PLANE_INFO;
typedef enum E_JZ_PLANE_FLIGHT_STATUS{
E_JZ_PLANE_FLIGHT_STATUS_ON_LAND = 0, //在地面
E_JZ_PLANE_FLIGHT_STATUS_LANDING = 1, //降落中
E_JZ_PLANE_FLIGHT_STATUS_FLYING = 2, //飞行中
}E_JZ_PLANE_FLIGHT_STATUS;
typedef struct JZsdk_PlaneInfo {
int LandingStatus; // jz off on 用于判断有没有进行下落中
int LandingStatusLock; //不开启的情况下,langding status 不使用
E_JZ_PLANE_FLIGHT_STATUS PlaneFlightStutus; //比上面单独降落状态更完整的状态
E_JZ_SPECIAL_PLANE_INFO PlaneType;
int Flag; //是否开启飞机信息
}JZsdk_PlaneInfo;
/* Exported types ------------------------------------------------------------*/
/* Exported functions --------------------------------------------------------*/
T_JZsdkReturnCode JZsdk_PlaneInfo_SetPlaneType(E_JZ_SPECIAL_PLANE_INFO ePlaneInfo);
T_JZsdkReturnCode JZsdk_PlaneInfo_Get(JZsdk_PlaneInfo *pePlaneInfo);
T_JZsdkReturnCode JZsdk_PlaneInfo_SetLandingStatus(int status);
T_JZsdkReturnCode JZsdk_PlaneInfo_SetFlightStatus(E_JZ_PLANE_FLIGHT_STATUS status);
#ifdef __cplusplus
}
#endif
#endif