Program for the water play project for the course Software Testing Practical 2016 given at the VU University
Dependencies: mbed DRV88255 TextLCD Ping mbed-rtos
MockSensorController.cpp
- Committer:
- sbouber1
- Date:
- 2016-06-24
- Revision:
- 80:38e274c4dafa
- Parent:
- 66:133398875949
File content as of revision 80:38e274c4dafa:
#include "MockSensorController.h"
void MockSensorController::update() {
this->i++;
}
std::string MockSensorController::getName() {
return "MockSensorController";
}
float MockSensorController::getValue() {
this->sum_t += t.read_ms();
t.reset();
return (*this->func)(i, this->sum_t);
}
void MockSensorController::setLed(bool value){
}