|
libstp
Robotics library for Botball
|
#include <ETSensor.hpp>
Public Member Functions | |
| ETSensor (int port) | |
| int | raw () const |
| Public Member Functions inherited from libstp::hal::analog::AnalogSensor | |
| AnalogSensor (int port) | |
| Create an analog sensor bound to a platform-defined port index. | |
| virtual | ~AnalogSensor () |
| virtual int | read () const |
| Read the current raw analog value from the selected platform. | |
Additional Inherited Members | |
| Public Attributes inherited from libstp::hal::analog::AnalogSensor | |
| int | port |
Distance sensor wrapping a HAL analog input.
Provides a named type for ET range finders so they can be distinguished from generic analog sensors in robot definitions.
Definition at line 17 of file ETSensor.hpp.
|
explicit |
| int libstp::sensors::et::ETSensor::raw | ( | ) | const |
Read the raw analog value (convenience alias for read()).