AWind
|
Fake sensor. It is intended only to generate some data. Sensor value can be modified via Increase, Decrease member functions. More...
#include <FakeSensor.h>
Public Member Functions | |
const __FlashStringHelper * | Name () |
Returns sensor name. Only for debug purpose. | |
int | Precission () |
Return how many decimal places make sence for the sensor. | |
float | LowMeasurementLimit () |
Return lowest possible measurement limit. If value outside of this limit, measurements threatet as erroneous. | |
float | HighMeasurementLimit () |
Return highest possible measurement limit. If value outside of this limit, measurements threatet as erroneous. | |
bool | Measure (float &data) |
Perfrom measurements. More... | |
void | Increase () |
Increases internal value. | |
void | Decrease () |
Decreases internal value. | |
Fake sensor. It is intended only to generate some data. Sensor value can be modified via Increase, Decrease member functions.
|
inline |
Perfrom measurements.
data | reference to the variable that becoms result measurement |