Wyatt
1.0.1
Main Page
Classes
Files
File List
test
mocks
MockIRRangeFinderSensor.cpp
1
#include "include/MockIRRangeFinderSensor.h"
2
#include "include/MockIRRangeFinderSensorMessage.h"
3
4
MockIRRangeFinderSensor::MockIRRangeFinderSensor() {
5
// Constructor
6
}
7
8
MockIRRangeFinderSensor::~MockIRRangeFinderSensor() {
9
// Destructor
10
}
11
12
void
MockIRRangeFinderSensor::updateSensor
(
IMessage
* msg) {
13
this->data = ((
MockIRRangeFinderSensorMessage
*)msg)->getData();
14
delete
msg;
15
}
16
17
double
MockIRRangeFinderSensor::getDistanceCM
() {
18
// No-Op
19
return
-1;
20
}
21
22
std::string MockIRRangeFinderSensor::getData() {
23
return
this->data;
24
}
IMessage
Definition:
IMessage.h:10
MockIRRangeFinderSensorMessage
Definition:
MockIRRangeFinderSensorMessage.h:12
MockIRRangeFinderSensor::updateSensor
void updateSensor(IMessage *msg) override
Definition:
MockIRRangeFinderSensor.cpp:12
MockIRRangeFinderSensor::getDistanceCM
double getDistanceCM() override
Definition:
MockIRRangeFinderSensor.cpp:17
Generated by
1.8.11