Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed DRV88255 TextLCD Ping mbed-rtos
MockSensorController.cpp
- Committer:
- joran
- Date:
- 2016-06-20
- Revision:
- 66:133398875949
- Parent:
- 57:8dc3192ff150
File content as of revision 66:133398875949:
#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){
}