UdonLibrary 1.0.0
機械システム研究部 C++ ライブラリ
読み取り中…
検索中…
一致する文字列を見つけられません
Motor.hpp
[詳解]
1//
2// 通信用メッセージ
3//
4// Copyright (c) 2022-2024 udonrobo
5//
6
7#pragma once
8
9#include <stdint.h>
11
12namespace Udon
13{
14
15 namespace Message
16 {
17
19 struct Motor
20 {
21
23 int16_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
34 };
35
36 } // namespace Message
37
38} // namespace Udon
#define F(x)
Definition Show.hpp:17
Definition Bit.hpp:12
モーター
Definition Motor.hpp:20
int16_t power
モーターの出力値
Definition Motor.hpp:23