![](/media/cache/profiles/ba5be68d3d541f2ca043d77fc54fe702.jpg.50x50_q85.jpg)
3rd Repo, trying to figure this out.
Fork of SOFT253_Template_Weather_OS_54 by
FakeSensor/FakeSensor.h
- Committer:
- niallfrancis
- Date:
- 2017-05-13
- Revision:
- 85:422d0a1b95cf
- Parent:
- 83:0d3572a8a851
File content as of revision 85:422d0a1b95cf:
/** 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 ranges for the fake readings Also holds pseudo methods as copies of the original sensor methods */ class FakeMeasurer { public: float temperatureMin; float temperatureMax; float humidityMin; float humidityMax; FakeMeasurer(float tempMin, float tempMax, float humiMin, float humiMax); bool init(); void calib(); void ReadTempHumi(float *temperature, float *humidity); };