Wyatt
1.0.1
|
#include <MockIRRangeFinderSensor.h>
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 () |
Mocks out an IRRangeFinderSensor to check the data injected into it.
Definition at line 6 of file MockIRRangeFinderSensor.h.
|
overridevirtual |
Returns the most recent distance reading in centimeters.
Implements IRangeFinderSensor.
Definition at line 17 of file MockIRRangeFinderSensor.cpp.
|
overridevirtual |
Update this sensor object with data received from a peripheral. Deletes data upon completion.
data | The data received from the peripheral. |
Implements IRangeFinderSensor.
Definition at line 12 of file MockIRRangeFinderSensor.cpp.