#include <ForceSensor.h>
◆ ForceSensor()
| spikeapi::ForceSensor::ForceSensor |
( |
EPort | port | ) |
|
|
inline |
◆ getDistance()
| float spikeapi::ForceSensor::getDistance |
( |
| ) |
const |
|
inline |
フォースセンサのボタンの移動距離を取得する
- Returns
- 距離(単位:mm)
◆ getForce()
| float spikeapi::ForceSensor::getForce |
( |
| ) |
const |
|
inline |
フォースセンサで力を測定する
- Returns
- 力(単位:N)
◆ hasError()
| bool spikeapi::ForceSensor::hasError |
( |
| ) |
|
|
inline |
インスタンス生成が正常にできたかどうかを確認するための共通メソッド mDeviceがNULLの場合にtrueとなる
◆ isPressed()
| bool spikeapi::ForceSensor::isPressed |
( |
float | force | ) |
const |
|
inline |
フォースセンサのボタンが押されているかを検出する
- Parameters
-
| force | 押されていると判定する最低限の力(単位:N) |
- Returns
- true 押されている
-
false 押されていない
◆ isTouched()
| bool spikeapi::ForceSensor::isTouched |
( |
| ) |
const |
|
inline |
フォースセンサのボタンが触れられているかを検出する
- Returns
- true 触れられている
-
false 触れられていない
The documentation for this class was generated from the following file: