ZotBins Core
Loading...
Searching...
No Matches
Fullness::IDistance Class Referenceabstract

Interface (abstract) class for mock and real hardware ultrasonic (fullness/distance) sensor. Used to inherit the getDistance method in derived classes. More...

#include <IDistance.hpp>

Inheritance diagram for Fullness::IDistance:
Inheritance graph

Public Member Functions

virtual int32_t getDistance ()=0
 Returns the distance of the sensor.
 

Detailed Description

Interface (abstract) class for mock and real hardware ultrasonic (fullness/distance) sensor. Used to inherit the getDistance method in derived classes.

Member Function Documentation

◆ getDistance()

virtual int32_t Fullness::IDistance::getDistance ( )
pure virtual

Returns the distance of the sensor.

Returns
int32_t Distance in millimeters

Implemented in Fullness::MockDistance.


The documentation for this class was generated from the following file: