-
Notifications
You must be signed in to change notification settings - Fork 0
/
Debug.h
91 lines (74 loc) · 4.62 KB
/
Debug.h
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
//----------------------------------------------------------
//
// FileName: Debug.h
// Author: 周俊平;刘上;赵梓合;顾昊
// Version: 1.1.0_x64Linux
// Date: 2021.07.14
// Description: 各种Debug参数,用于调试
//
//----------------------------------------------------------
//==============================================================================================================//
// //
// 通用参数 //
// //
//==============================================================================================================//
//----------------------------------------------------------//
// //
// 赛前调试参数 //
// //
//----------------------------------------------------------//
// #define A_RED // 检测红方装甲板
#define A_BLUE // 检测蓝方装甲板
#ifdef A_RED
#define E_BLUE // 识别蓝色能量机关
#endif // A_RED
#ifdef A_BLUE
#define E_RED // 识别红色能量机关
#endif // A_BLUE
//----------------------------------------------------------//
// //
// 线程调试参数 //
// //
//----------------------------------------------------------//
#define MULTI_THREAD // 是否使用多线程
#define ENERGY_THREAD // 能量机关独立线程
// #define COMPILE_WITH_GPU // FIX ME:辅瞄是否使用GPU(不适用于妙算)
#define DEBUG_WITHOUT_COM //无串口调试
// #define SAVE_VIDEO_DAHENG //是否录制视频并保存到本地(大恒)
// #define SAVE_VIDEO_USB_CAMERA //是否录制视频并保存到本地(USB相机).
//----------------------------------------------------------//
// //
// 图像调试参数 //
// //
//----------------------------------------------------------//
//-----------------------------(辅瞄)-----------------------------------//
#define USE_DAHENG_CAMERA // 是否使用大恒139相机
// #define USE_USB_CAMERA // 是否使用USB相机
// #define USE_LOCAL_VIDEO // 是否使用本地测试视频
// #define REOPEN //是否在丢帧后重启摄像头
// #define SHOW_SRC // 是否显示原始图像
#define SHOW_DISTANCE
// #define SHOW_DEBUG_IMG
//-----------------------------(大符)-----------------------------------//
// #define USE_USB_CAMERA_ENERGY // 是否使用USB相机
#define USE_LOCAL_VIDEO_ENERGY // 是否使用本地测试视频
//----------------------------------------------------------//
// //
// //
// Terminal调试参数 //
// //
//----------------------------------------------------------//
// #define SHOW_SRC_GET_TIME // 是否在终端打印每帧的采集时间(仅限于大恒)
#define SHOW_ENERGY_RUN_TIME // 是否在终端打印能量机关每帧的处理时间
// #define CALC_PROCESS_TIME // 显示生产及消费所用时间(辅瞄)
#define ECHO_FINAL_INFO //是否输出最终得到的Yaw,Pitch,Dist信息
// #define COUT_LOG //输出日志
//----------------------------------------------------------//
// //
// //
// 功能选择参数 //
// //
//----------------------------------------------------------//
// #define USING_ADVANCED_PREDICT //是否为辅瞄启用进阶预测(卡尔曼与反陀螺)(未完成)
// #define USING_DEBUG_ANTISPIN //反陀螺(未完成)
// #define ENABLE_NUM_CLASSFICATION //启用SVM