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: NHK2019_mae_v6 NHK2019_main_v6 NHK2019_usiro_v6 NHK2019_mae_v6 ... more
IRsensor Class Reference
SHARP 2Y0A21を使ったIR距離測定のクラス More...
#include <IRsensor.h>
Public Member Functions | |
| IRsensor (PinName pin) | |
| コンストラクタ | |
| float | getVoltage () |
| センサの値を取得 | |
| float | getDistance () |
| センサの値を距離変換し取得 | |
| void | startAveraging (uint8_t averaging_range) |
| 距離の平均化設定 | |
| float | get_Averagingdistance () |
| 平均化した距離を取得 | |
Detailed Description
SHARP 2Y0A21を使ったIR距離測定のクラス
Definition at line 35 of file IRsensor.h.
Constructor & Destructor Documentation
| IRsensor | ( | PinName | pin ) |
Member Function Documentation
| float get_Averagingdistance | ( | ) |
| float getDistance | ( | ) |
| float getVoltage | ( | ) |
| void startAveraging | ( | uint8_t | averaging_range ) |
距離の平均化設定
- Parameters:
-
averaging_range averaging range 1~255
Definition at line 63 of file IRsensor.cpp.
Generated on Mon Jul 18 2022 23:29:52 by
1.7.2