通信経由ロータリーエンコーダー [詳解]
#include <Udon/Com/Driver/Encoder.hpp>
公開メンバ関数 | |
| EncoderBy (ReaderType &&reader, Udon::Direction direction=Udon::Direction::Forward) | |
| コンストラクタ | |
| void | update () |
| 更新 | |
| void | setOffset (int32_t value=0) |
| カウント値オフセット | |
| int32_t | getCount () const |
| カウント値を取得 | |
| int32_t | getDeltaCount () const |
| カウント値の差分を取得 | |
| double | getSpeed () const |
| 速度を取得 | |
通信経由ロータリーエンコーダー
| Reader | 受信クラス |
|
inline |
コンストラクタ
| reader | 受信クラスオブジェクト |
| direction | 回転方向 |
|
inline |
カウント値を取得
|
inline |
カウント値の差分を取得
|
inline |
速度を取得
|
inline |
カウント値オフセット
| value | エンコーダーのカウント値 |
|
inline |
更新