UdonLibrary 1.0.0
機械システム研究部 C++ ライブラリ
読み取り中…
検索中…
一致する文字列を見つけられません
Udon::RoboMasterC610 クラス

RoboMasterC610クラス [詳解]

#include <Udon/Driver/RoboMasterMotor.hpp>

Udon::RoboMasterC610 の継承関係図
Udon::RoboMasterBase

公開メンバ関数

Udon::Range< int16_t > getCurrentRange () const override
 指定可能電流範囲
 
void setCurrent (int16_t current) override
 モーターの電流を設定
 
 RoboMasterBase (Udon::ICanBus &bus, int motorId, Udon::Direction direction=Udon::Direction::Forward)
 コンストラクタ
 
 RoboMasterBase (const RoboMasterBase &)=delete
 コンストラクタ
 
 RoboMasterBase (RoboMasterBase &&other)
 コンストラクタ
 
- 基底クラス Udon::RoboMasterBase に属する継承公開メンバ関数
 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
 モーターの温度を取得
 

その他の継承メンバ

- 基底クラス Udon::RoboMasterBase に属する継承限定公開メンバ関数
void setRawCurrent (int16_t rawCurrent)
 

詳解

RoboMasterC610クラス

覚え書き
C610 ドライバを用いてモーターを制御する

関数詳解

◆ getCurrentRange()

Udon::Range< int16_t > Udon::RoboMasterC610::getCurrentRange ( ) const
inlineoverridevirtual

指定可能電流範囲

Udon::RoboMasterBaseを実装しています。

◆ RoboMasterBase() [1/3]

Udon::RoboMasterBase::RoboMasterBase ( const RoboMasterBase & )
delete

コンストラクタ

引数
busCAN通信バス
motorIdモーターID (1~8)
direction回転方向

◆ RoboMasterBase() [2/3]

Udon::RoboMasterBase::RoboMasterBase ( RoboMasterBase && other)
inline

コンストラクタ

引数
busCAN通信バス
motorIdモーターID (1~8)
direction回転方向

◆ RoboMasterBase() [3/3]

Udon::RoboMasterBase::RoboMasterBase ( Udon::ICanBus & bus,
int motorId,
Udon::Direction direction = Udon::Direction::Forward )
inline

コンストラクタ

引数
busCAN通信バス
motorIdモーターID (1~8)
direction回転方向

◆ setCurrent()

void Udon::RoboMasterC610::setCurrent ( int16_t current)
inlineoverridevirtual

モーターの電流を設定

引数
current電流値 [-10000, 10000] (単位: mA)

Udon::RoboMasterBaseを実装しています。


このクラス詳解は次のファイルから抽出されました: