One Framework
0.1.0
RoboMaster嵌入式框架“一键”解决方案,为你的“创意”服务。
载入中...
搜索中...
未找到
VtHub.hpp
浏览该文件的文档.
1
#ifndef VTHUB_HPP
2
#define VTHUB_HPP
3
4
#include <zephyr/kernel.h>
5
#include <tl/expected.hpp>
6
7
namespace
OF
{
8
9
float
vt_stick_percent
(uint64_t stick);
10
11
12
struct
VtHubError
{
13
enum class
Code
{
14
DISCONNECTED
,
15
}
code
;
16
const
char
*
message
;
17
};
18
19
class
VtHub
{
20
public
:
21
static
constexpr
auto
name
=
"VtHub"
;
22
29
template
<
typename
T>
30
static
tl::expected<T, VtHubError>
get
();
31
32
private
:
33
// Helper to check connection status
34
static
bool
is_connected();
35
};
36
37
}
// namespace OF
38
39
#endif
// VTHUB_HPP
OF::VtHub
定义
VtHub.hpp:19
OF::VtHub::get
static tl::expected< T, VtHubError > get()
Get the latest received packet of type T.
定义
VtHub.cpp:234
OF::VtHub::name
static constexpr auto name
定义
VtHub.hpp:21
OF
定义
JointSetpointGenerator.hpp:9
OF::vt_stick_percent
float vt_stick_percent(uint64_t stick)
定义
VtHub.cpp:28
OF::VtHubError
定义
VtHub.hpp:12
OF::VtHubError::message
const char * message
定义
VtHub.hpp:16
OF::VtHubError::code
enum OF::VtHubError::Code code
OF::VtHubError::Code
Code
定义
VtHub.hpp:13
OF::VtHubError::Code::DISCONNECTED
@ DISCONNECTED
定义
VtHub.hpp:14
OF
lib
VtHub
VtHub.hpp
制作者
1.13.2