libstp
Robotics library for Botball
Loading...
Searching...
No Matches
libstp::sensors::et::ETSensor Class Reference

#include <ETSensor.hpp>

Inheritance diagram for libstp::sensors::et::ETSensor:
[legend]
Collaboration diagram for libstp::sensors::et::ETSensor:
[legend]

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ ETSensor()

libstp::sensors::et::ETSensor::ETSensor ( int port)
explicit

Member Function Documentation

◆ raw()

int libstp::sensors::et::ETSensor::raw ( ) const

Read the raw analog value (convenience alias for read()).


The documentation for this class was generated from the following file:
  • /home/runner/work/raccoon-lib/raccoon-lib/modules/libstp-sensor-et/include/ETSensor.hpp