UdonLibrary
1.0.0
機械システム研究部 C++ ライブラリ
読み取り中…
検索中…
一致する文字列を見つけられません
Imu.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
{
19
struct
Yaw
20
{
21
23
double
yaw
;
24
25
#ifdef ARDUINO
27
void
show()
const
28
{
29
Serial.print(
F
(
"yaw: "
)), Serial.print(
yaw
), Serial.print(
'\t'
);
30
}
31
#endif
32
33
UDON_ENUMERABLE
(
yaw
);
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::Yaw
IMUの姿勢角(yaw角)
Definition
Imu.hpp:20
Udon::Message::Yaw::UDON_ENUMERABLE
UDON_ENUMERABLE(yaw)
Udon::Message::Yaw::yaw
double yaw
旋回角
Definition
Imu.hpp:23