DJI Payload SDK  1.4.0
psdk_precise_survey.h
Go to the documentation of this file.
1 /**
2  ******************************************************************************
3  * @file psdk_precise_survey.h
4  * @version V1.4.0
5  * @date 2018/10/25
6  * @brief This is the header file for "psdk_precise_survey.c", defining the
7  * structures and (exported) function prototypes.
8  *
9  * @copyright (c) 2017-2018 DJI. All rights reserved.
10  *
11  * All information contained herein is, and remains, the property of DJI.
12  * The intellectual and technical concepts contained herein are proprietary
13  * to DJI and may be covered by U.S. and foreign patents, patents in process,
14  * and protected by trade secret or copyright law. Dissemination of this
15  * information, including but not limited to data and other proprietary
16  * material(s) incorporated within the information, in any form, is strictly
17  * prohibited without the express written consent of DJI.
18  *
19  * If you receive this source code without DJI’s authorization, you may not
20  * further disseminate the information, and you must immediately remove the
21  * source code and notify DJI of its removal. DJI reserves the right to pursue
22  * legal actions against you for any loss(es) or damage(s) caused by your
23  * failure to do so.
24  *
25  ******************************************************************************
26  */
27 
28 /* Define to prevent recursive inclusion -------------------------------------*/
29 #ifndef PSDK_PRECISE_SURVEY_H
30 #define PSDK_PRECISE_SURVEY_H
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 /* Includes ------------------------------------------------------------------*/
37 #include "psdk_upper.h"
38 #include "psdk_cmdset.h"
39 
40 /** @addtogroup PSDK
41  * @{
42  */
43 
44 /** @addtogroup PSDK_Precise_Survey
45  * @{
46  */
47 
48 /* Exported constants --------------------------------------------------------*/
49 /* Exported macros -----------------------------------------------------------*/
50 /* Exported types ------------------------------------------------------------*/
51 
52 /** @addgroup P_Survey_Exported_Types
53  * @{
54  */
55 
56 /**
57  * @brief Function list for handling precise survey commands.
58  * @details This structure type is used to define a list that
59  * includes all the callback functions and related configure parameters.
60  */
61 typedef struct {
62  ///Get precise survey parameter callback function
63  void (*getPceSurveyParaCallback) (T_PceSurveyGetOptParaAck *ack);
64  ///Get payload parameter callback function
65  void (*getLoadParaCallback) (T_PceSurveyGetLoadParaAck *ack);
66  ///UTC time push callback function
67  void (*utcTimeMsgCallback) (const T_PceSurveyUtcTimeMsg *msg);
68  ///PPK offset push callback function
69  void (*ppkOffsetMsgCallback) (const T_PceSurveyPpkOffsetMsg *msg);
71 
72 /**
73  * @}
74  */
75 
76 /* Exported variables --------------------------------------------------------*/
77 /* Exported functions --------------------------------------------------------*/
78 
79 /** @addtogroup P_Survey_Exported_Functions
80  * @{
81  */
82 E_PsdkStat PsdkPceSurvey_Init(T_PsdkUpper *psdkUpper, const T_PsdkPceSurveyHandler *pceSurveyHandler);
83 E_PsdkStat PsdkPceSurvey_PositionAcquisition(T_PsdkUpper *psdkUpper, T_PceSurveyPosAcqReq *posAcqReq, T_PceSurveyPosAcqAck *posAcqAck);
84 
85 /**
86  * @}
87  */
88 
89 /* Private constants ---------------------------------------------------------*/
90 /* Private macros ------------------------------------------------------------*/
91 /* Private types -------------------------------------------------------------*/
92 /* Private variables ---------------------------------------------------------*/
93 /* Private functions ---------------------------------------------------------*/
94 
95 /**
96  * @}
97  */
98 
99 /**
100  * @}
101  */
102 
103 #ifdef __cplusplus
104 }
105 #endif
106 
107 #endif //PSDK_PRECISE_SURVEY_H
108 
109 /****************** (C) COPYRIGHT DJI Innovations *****END OF FILE****/
This is a structure type for defining a top-level structure for the integration of your application w...
Definition: psdk_upper.h:113
PPK offset data package structure.
Definition: psdk_cmdset_precise_survey.h:254
Function list for handling precise survey commands.
Definition: psdk_precise_survey.h:61
Precise position acquisition command req data structure.
Definition: psdk_cmdset_precise_survey.h:215
This is the header file for "psdk_upper.c", defining the structures and (exported) function prototype...
Get precise survey parameters command ack data structure.
Definition: psdk_cmdset_precise_survey.h:145
UTC time data package structure.
Definition: psdk_cmdset_precise_survey.h:202
E_PsdkStat PsdkPceSurvey_Init(T_PsdkUpper *psdkUpper, const T_PsdkPceSurveyHandler *pceSurveyHandler)
Initialize PSDK precise survey commands handling.
Definition: psdk_precise_survey.c:194
E_PsdkStat PsdkPceSurvey_PositionAcquisition(T_PsdkUpper *psdkUpper, T_PceSurveyPosAcqReq *posAcqReq, T_PceSurveyPosAcqAck *posAcqAck)
The function is used to request precise position of any point in payload.
Definition: psdk_precise_survey.c:213
Get payload parameters command ack data structure.
Definition: psdk_cmdset_precise_survey.h:165
Precise position acquisition command ack data structure.
Definition: psdk_cmdset_precise_survey.h:228
This file defines the PSDK command set.