StarBoard Orange - Example application No.1 GoogleChartLogger with StarBoard Orange
Dependencies: EthernetNetIf mbed
Diff: Sensor/SensorDummy.h
- Revision:
- 1:123eff9ba7b2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Sensor/SensorDummy.h Wed Aug 11 10:24:25 2010 +0000 @@ -0,0 +1,28 @@ +/** + * Sensor interface driver. (Version 0.0.1) + * + * Copyright (C) 2010 Shinichiro Nakamura (CuBeatSystems) + * http://shinta.main.jp/ + */ + +#ifndef _SENSOR_DUMMY_H_ +#define _SENSOR_DUMMY_H_ + +#include <mbed.h> + +#include "Sensor.h" + +class SensorDummy : public Sensor { +public: + SensorDummy(); + virtual ~SensorDummy(); + virtual double read(); +private: + static const int MIN = -10; + static const int MAX = 50; + double memory; + + static double getNextValue(double prev); +}; + +#endif