RoboMaster 基底クラス [詳解]
#include <Udon/Driver/RoboMasterMotor.hpp>
公開メンバ関数 | |
| RoboMasterBase (Udon::ICanBus &bus, int motorId, Udon::Direction direction=Udon::Direction::Forward) | |
| コンストラクタ | |
| RoboMasterBase (const RoboMasterBase &)=delete | |
| コピーコンストラクタ | |
| RoboMasterBase (RoboMasterBase &&other) | |
| ムーブコンストラクタ | |
| double | getAngle () const |
| モーターの角度を取得 | |
| double | getRawAngle () const |
| モーターの角度を取得 | |
| int16_t | getVelocity () const |
| モーターの速度を取得 | |
| int16_t | getTorqueCurrent () const |
| モーターのトルク電流を取得 | |
| uint8_t | getTemperature () const |
| モーターの温度を取得 | |
| virtual void | setCurrent (int16_t current)=0 |
| モーターの電流を設定 | |
| virtual Udon::Range< int16_t > | getCurrentRange () const =0 |
| 指定可能電流範囲 | |
限定公開メンバ関数 | |
| void | setRawCurrent (int16_t rawCurrent) |
RoboMaster 基底クラス
|
inline |
コンストラクタ
| bus | CAN通信バス |
| motorId | モーターID (1~8) |
| direction | 回転方向 |
|
delete |
コピーコンストラクタ
|
inline |
ムーブコンストラクタ
|
inline |
モーターの角度を取得
|
pure virtual |
|
inline |
モーターの角度を取得
|
inline |
モーターの温度を取得
|
inline |
モーターのトルク電流を取得
|
inline |
モーターの速度を取得
|
pure virtual |
|
inlineprotected |