|
libstp
Robotics library for Botball
|
#include <Analog.hpp>
Public Member Functions | |
| 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. | |
Public Attributes | |
| int | port |
Thin analog input wrapper implemented by the selected platform bundle.
The constructor stores the requested port number and, when safety checks are enabled, participates in duplicate-port detection shared across platforms.
Definition at line 14 of file Analog.hpp.
|
explicit |
Create an analog sensor bound to a platform-defined port index.
|
virtual |
|
virtual |
Read the current raw analog value from the selected platform.
| int libstp::hal::analog::AnalogSensor::port |
Definition at line 23 of file Analog.hpp.