Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: ball_snatch NHK2020-arm-sub NHK2020-arm-sub NHK2020-arm-sub2 ... more
Ec1multi Class Reference
increment型エンコーダ用class(1逓倍) More...
#include <EC.h>
Inherits Ec.
Public Member Functions | |
| Ec1multi (PinName signalA, PinName signalB, int res) | |
| コンストラクタの定義 | |
| int | getCount () const |
| double | getRad () const |
| 軸の回転角度を返す関数 | |
| double | getOmega () const |
| 軸の角速度を返す関数 | |
| void | calOmega () |
| 角速度を計算するための関数 微分を微小時間の変位として計算しているので、タイマー割込などで回さなければいけない | |
| void | setResolution (int res) |
| 分解能を指定するための関数 | |
| void | reset () |
| エンコーダのcountやωをリセットするための関数 | |
Detailed Description
increment型エンコーダ用class(1逓倍)
Definition at line 106 of file EC.h.
Constructor & Destructor Documentation
| Ec1multi | ( | PinName | signalA, |
| PinName | signalB, | ||
| int | res | ||
| ) |
Member Function Documentation
| void calOmega | ( | ) | [inherited] |
| int getCount | ( | ) | const [inherited] |
| double getOmega | ( | ) | const [inherited] |
| double getRad | ( | ) | const [inherited] |
Generated on Tue Jul 12 2022 20:44:20 by
1.7.2