3rd Repo, trying to figure this out.

Dependencies:   LPS25H hts221

Fork of SOFT253_Template_Weather_OS_54 by Stage-1 Students SoCEM

FakeSensor/FakeSensor.h

Committer:
Netaphous
Date:
2017-04-06
Branch:
feature/fakeSensor
Revision:
50:c07e968b9582
Child:
83:0d3572a8a851

File content as of revision 50:c07e968b9582:

/*
    Represents a fake barometer
    Holds a min and max pressure as a range for fake pressure readings
    Also holds pseudo methods as copies of the original barometers
*/
class FakeBarometer
{
    public:
        float pressureMin;
        float pressureMax;
        
        // Constructor
        FakeBarometer(float pressMin, float pressMax);
        
        void get();
        float pressure();
};

/*
    Represents a fake measurer
    Holds a min and max temperature and humidity as a range for fake readings
    Also holds pseudo methods as copies of the original sensors
*/
class FakeMeasurer
{
    public:
        float temperatureMin;
        float temperatureMax;
        float humidityMin;
        float humidityMax;
        
        // Constructor
        FakeMeasurer(float tempMin, float tempMax, float humiMin, float humiMax);
        
        bool init();
        void calib();
        void ReadTempHumi(float *temperature, float *humidity);
};