UdonLibrary
1.0.0
機械システム研究部 C++ ライブラリ
読み取り中…
検索中…
一致する文字列を見つけられません
BrushLess.hpp
[詳解]
1
//
2
// 通信用メッセージ
3
//
4
// Copyright (c) 2022 udonrobo
5
//
6
7
#pragma once
8
9
#include <stdint.h>
10
#include <
Udon/Traits/EnumerableMacro.hpp
>
11
12
namespace
Udon
13
{
14
15
namespace
Message
16
{
17
19
struct
BrushLess
20
{
21
23
int32_t
power
;
24
25
#ifdef ARDUINO
27
void
show()
const
28
{
29
Serial.print(
F
(
"power: "
)), Serial.print(
power
), Serial.print(
'\t'
);
30
}
31
#endif
32
33
UDON_ENUMERABLE
(
power
);
34
};
35
36
}
// namespace Message
37
38
}
// namespace Udon
EnumerableMacro.hpp
F
#define F(x)
Definition
Show.hpp:17
Udon::Message
Definition
AirCylinder.hpp:16
Udon
Definition
Bit.hpp:12
Udon::Message::BrushLess
ブラシレスモーター
Definition
BrushLess.hpp:20
Udon::Message::BrushLess::power
int32_t power
モーターの出力値
Definition
BrushLess.hpp:23
Udon::Message::BrushLess::UDON_ENUMERABLE
UDON_ENUMERABLE(power)