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.h
- Committer:
- sbouber1
- Date:
- 2016-06-11
- Revision:
- 12:c51f3aba84fe
- Child:
- 13:1323e2c0b697
File content as of revision 12:c51f3aba84fe:
#ifndef __MOCKSENSORCONTROLLER_H__
#define __MOCKSENSORCONTROLLER_H__
#include "mbed.h"
#include "SensorController.h"
class MockSensorController : public SensorController {
public:
MockSensorController(bool threaded, int interval_ms, float (*func)(int)) : SensorController(threaded, interval_ms) {
this->func = func;
}
virtual void update();
virtual float getValue();
virtual std::string get_name();
private:
int i;
float (*func)(int);
};
#endif