One Framework
0.1.0
RoboMaster嵌入式框架“一键”解决方案,为你的“创意”服务。
载入中...
搜索中...
未找到
HubRegistry.hpp
浏览该文件的文档.
1
#ifndef OF_LIB_HUB_REGISTRY_HPP
2
#define OF_LIB_HUB_REGISTRY_HPP
3
4
#include "
HubManager.hpp
"
5
#ifdef CONFIG_NOTIFY_HUB
6
#include <
OF/lib/NotifyHub/NotifyHub.hpp
>
7
#endif
8
9
#ifdef CONFIG_IMU_HUB
10
#include <
OF/lib/ImuHub/ImuHub.hpp
>
11
#endif
12
13
#ifdef CONFIG_CONTROLLER_HUB
14
#include <
OF/lib/ControllerHub/ControllerHub.hpp
>
15
#endif
16
17
#ifdef CONFIG_NOTIFY_HUB
18
extern
const
OF::NotifyHubConfig
notify_hub_config;
19
#endif
20
21
#ifdef CONFIG_IMU_HUB
22
extern
const
OF::ImuHubConfig
imu_hub_config;
23
#endif
24
25
#ifdef CONFIG_CONTROLLER_HUB
26
extern
const
OF::ControllerHubConfig
controller_hub_config;
27
#endif
28
29
namespace
OF
30
{
31
using
HubRegistry
=
HubManager
<
32
#ifdef CONFIG_NOTIFY_HUB
33
HubEntry<NotifyHub, notify_hub_config>
34
#endif
35
#if defined(CONFIG_NOTIFY_HUB) && defined(CONFIG_IMU_HUB)
36
,
37
#endif
38
#ifdef CONFIG_IMU_HUB
39
HubEntry<ImuHub, imu_hub_config>
40
#endif
41
#if (defined(CONFIG_NOTIFY_HUB) || defined(CONFIG_IMU_HUB)) && defined(CONFIG_CONTROLLER_HUB)
42
,
43
#endif
44
#ifdef CONFIG_CONTROLLER_HUB
45
HubEntry<ControllerHub, controller_hub_config>
46
#endif
47
>;
48
}
49
50
#endif
//OF_LIB_HUB_REGISTRY_HPP
ControllerHub.hpp
HubManager.hpp
ImuHub.hpp
NotifyHub.hpp
OF::HubManager
定义
HubManager.hpp:41
OF
定义
Mecanum.hpp:6
OF::HubRegistry
HubManager< > HubRegistry
定义
HubRegistry.hpp:31
OF::ControllerHubConfig
定义
ControllerHub.hpp:21
OF::HubEntry
定义
HubManager.hpp:13
OF::ImuHubConfig
定义
ImuHub.hpp:12
OF::NotifyHubConfig
定义
NotifyHub.hpp:59
OF
lib
HubManager
HubRegistry.hpp
制作者
1.13.2