Class UltrasonicSensor. API for working with ultrasonic sensor. More...
#include <ev3cxx_ultrasonic_sensor.h>
Public Member Functions | |
| UltrasonicSensor (SensorPort port) | |
| Constructor of class UltrasonicSensor. More... | |
| int | centimeters () |
| Get distance in centimeters. More... | |
| int | millimeters () |
| Get millimeters in centimeters. More... | |
| int | inches () |
| Get measure distance in inches. More... | |
| int | inchesLine () |
| Get measure distance in line (1/12 inch). More... | |
| bool_t | listen () |
| Listen and return true if catch ultrasonic signal. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Sensor | |
| Sensor (SensorPort port, sensor_type_t type) | |
| Constructor of class Sensor. More... | |
| virtual | ~Sensor () |
| Destructor of class Sensor. | |
| sensor_port_t | getPort () |
| Get sensor port set in constructor. More... | |
| sensor_type_t | getType () |
| Get actual sensor type. More... | |
Protected Attributes inherited from Sensor | |
| sensor_port_t | m_port |
| sensor_type_t | m_type |
Class UltrasonicSensor. API for working with ultrasonic sensor.
Definition at line 20 of file ev3cxx_ultrasonic_sensor.h.
|
inline |
Constructor of class UltrasonicSensor.
| port | Port index (1-4). |
Definition at line 28 of file ev3cxx_ultrasonic_sensor.h.
References UltrasonicSensor::centimeters().
|
inline |
Get distance in centimeters.
Definition at line 37 of file ev3cxx_ultrasonic_sensor.h.
Referenced by UltrasonicSensor::UltrasonicSensor().
|
inline |
Get measure distance in inches.
Definition at line 55 of file ev3cxx_ultrasonic_sensor.h.
|
inline |
Get measure distance in line (1/12 inch).
Definition at line 64 of file ev3cxx_ultrasonic_sensor.h.
|
inline |
Listen and return true if catch ultrasonic signal.
Definition at line 74 of file ev3cxx_ultrasonic_sensor.h.
|
inline |
Get millimeters in centimeters.
Definition at line 46 of file ev3cxx_ultrasonic_sensor.h.