Wyatt  1.0.1
Public Member Functions | List of all members
MockIRRangeFinderSensor Class Reference

#include <MockIRRangeFinderSensor.h>

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

Public Member Functions

void updateSensor (IMessage *msg) override
 
double getDistanceCM () override
 
std::string getData ()
 
- Public Member Functions inherited from IRangeFinderSensor
virtual ~IRangeFinderSensor () override
 
- Public Member Functions inherited from ISensor
virtual ~ISensor ()
 

Detailed Description

Mocks out an IRRangeFinderSensor to check the data injected into it.

Definition at line 6 of file MockIRRangeFinderSensor.h.

Member Function Documentation

double MockIRRangeFinderSensor::getDistanceCM ( )
overridevirtual

Returns the most recent distance reading in centimeters.

Returns
The most recent distance reading in centimeters.

Implements IRangeFinderSensor.

Definition at line 17 of file MockIRRangeFinderSensor.cpp.

void MockIRRangeFinderSensor::updateSensor ( IMessage msg)
overridevirtual

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

Parameters
dataThe data received from the peripheral.

Implements IRangeFinderSensor.

Definition at line 12 of file MockIRRangeFinderSensor.cpp.


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