Wyatt  1.0.1
Public Member Functions | List of all members
IRangeFinderSensor Class Referenceabstract

#include <IRangeFinderSensor.h>

Inheritance diagram for IRangeFinderSensor:
Inheritance graph
[legend]
Collaboration diagram for IRangeFinderSensor:
Collaboration graph
[legend]

Public Member Functions

virtual ~IRangeFinderSensor () override
 
virtual void updateSensor (IMessage *msg) override=0
 
virtual double getDistanceCM ()=0
 
- Public Member Functions inherited from ISensor
virtual ~ISensor ()
 

Detailed Description

Interface for range finding sensors.

Definition at line 7 of file IRangeFinderSensor.h.

Constructor & Destructor Documentation

virtual IRangeFinderSensor::~IRangeFinderSensor ( )
inlineoverridevirtual

Deconstructor. Deletes all pointer references.

Definition at line 13 of file IRangeFinderSensor.h.

Member Function Documentation

virtual double IRangeFinderSensor::getDistanceCM ( )
pure virtual

Returns the most recent distance reading in centimeters.

Returns
The most recent distance reading in centimeters.

Implemented in MockIRRangeFinderSensor.

virtual void IRangeFinderSensor::updateSensor ( IMessage msg)
overridepure virtual

Update this sensor object with data received from a peripheral. Deletes data upon completion.

Parameters
dataThe data received from the peripheral.

Implements ISensor.

Implemented in MockIRRangeFinderSensor.


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