Gimbal2.h
2.0 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
/**
********************************************************************
* @file GIMBAL.h
* GIMBAL.h 的头文件
*
*********************************************************************
*/
/* Define to prevent recursive inclusion 避免重定义 -------------------------------------*/
#ifndef GIMBAL_H
#define GIMBAL_H
/* Includes ------------------------------------------------------------------*/
#include "JZsdk_Base/JZsdk_Code/JZsdk_Code.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Exported constants --------------------------------------------------------*/
/* 常亮定义*/
/* Exported types ------------------------------------------------------------*/
/* Exported functions --------------------------------------------------------*/
/*************************************************
*
* 云台 独立控制模式的 handler
* 请按内部内容,以此初始化数据
*
* *************************************************/
typedef struct s_Gimbal_PitchHandler
{
int Max_Pitch; //最大pitch角度
int Min_Pitch; //最小pitch角度
int Max_FinePitch; //最大精细pitch角度(通常取pitch值的 1/3)
int Min_FinePitch; //最小精细pitch角度(通常取pitch值的 1/3)
/*************************************************
*
* 用于给云台模块一个真实pitch的输出函数
* 云台通过 云台微调pitch,飞机pitch 设置值pitch 计算得到真实pitch
* * 云台模块通过调用此函数,将真实pitch输出给对应的函数
*
* **********************************************/
T_JZsdkReturnCode (*Out_SetRealPitchAngle)(int);
//
}s_Gimbal_PitchHandler;
typedef struct s_Gimbal_IndependentHandler
{
//yaw轴控制
s_Gimbal_PitchHandler Pitch;
//计算得到的真实yaw角度
T_JZsdkReturnCode (*_Gimbal_Set_RealYawAngle)(int);
//计算得到的真实roll角度
T_JZsdkReturnCode (*_Gimbal_Set_RealRollAngle)(int);
} s_Gimbal_IndependentHandler;
#ifdef __cplusplus
}
#endif
#endif