AWind
FakeSensor Class Reference

Fake sensor. It is intended only to generate some data. Sensor value can be modified via Increase, Decrease member functions. More...

#include <FakeSensor.h>

Inheritance diagram for FakeSensor:

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.
 

Detailed Description

Fake sensor. It is intended only to generate some data. Sensor value can be modified via Increase, Decrease member functions.

Member Function Documentation

bool FakeSensor::Measure ( float &  data)
inline

Perfrom measurements.

Parameters
datareference to the variable that becoms result measurement
Returns
true if success

The documentation for this class was generated from the following file: