RoboMaster 基底クラス
[詳解]
#include <Udon/Driver/RoboMasterMotor.hpp>
RoboMaster 基底クラス
- 覚え書き
- このクラスは多態性のための基底クラスで、直接インスタンス化することはできません。Udon::RoboMasterC610 または Udon::RoboMasterC620 クラスを使用してください。
◆ RoboMasterBase() [1/3]
コンストラクタ
- 引数
-
| bus | CAN通信バス |
| motorId | モーターID (1~8) |
| direction | 回転方向 |
◆ RoboMasterBase() [2/3]
コピーコンストラクタ
- 覚え書き
- この関数は明示的に削除されています。
◆ RoboMasterBase() [3/3]
◆ getAngle()
| double Udon::RoboMasterBase::getAngle |
( |
| ) |
const |
|
inline |
モーターの角度を取得
- 覚え書き
- 無限の範囲の角度を扱える
- 戻り値
- 角度 [rad]
◆ getCurrentRange()
| virtual Udon::Range< int16_t > Udon::RoboMasterBase::getCurrentRange |
( |
| ) |
const |
|
pure virtual |
◆ getRawAngle()
| double Udon::RoboMasterBase::getRawAngle |
( |
| ) |
const |
|
inline |
モーターの角度を取得
- 覚え書き
- 無限の角度を扱えない
- 戻り値
- 角度 [rad]
◆ getTemperature()
| uint8_t Udon::RoboMasterBase::getTemperature |
( |
| ) |
const |
|
inline |
◆ getTorqueCurrent()
| int16_t Udon::RoboMasterBase::getTorqueCurrent |
( |
| ) |
const |
|
inline |
モーターのトルク電流を取得
- 戻り値
- トルク電流 [mA]
◆ getVelocity()
| int16_t Udon::RoboMasterBase::getVelocity |
( |
| ) |
const |
|
inline |
◆ setCurrent()
| virtual void Udon::RoboMasterBase::setCurrent |
( |
int16_t | current | ) |
|
|
pure virtual |
◆ setRawCurrent()
| void Udon::RoboMasterBase::setRawCurrent |
( |
int16_t | rawCurrent | ) |
|
|
inlineprotected |
このクラス詳解は次のファイルから抽出されました: