3rd Repo, trying to figure this out.

Dependencies:   LPS25H hts221

Fork of SOFT253_Template_Weather_OS_54 by Stage-1 Students SoCEM

Committer:
aburch1
Date:
Thu May 11 19:23:55 2017 +0000
Revision:
83:0d3572a8a851
Parent:
50:c07e968b9582
Comments cleaned and improved throughout classes. Main header class comment complete, other class comments still need to be written.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
aburch1 83:0d3572a8a851 1 /**
Netaphous 50:c07e968b9582 2 Represents a fake barometer
Netaphous 50:c07e968b9582 3 Holds a min and max pressure as a range for fake pressure readings
Netaphous 50:c07e968b9582 4 Also holds pseudo methods as copies of the original barometers
Netaphous 50:c07e968b9582 5 */
Netaphous 50:c07e968b9582 6 class FakeBarometer
Netaphous 50:c07e968b9582 7 {
Netaphous 50:c07e968b9582 8 public:
Netaphous 50:c07e968b9582 9 float pressureMin;
Netaphous 50:c07e968b9582 10 float pressureMax;
Netaphous 50:c07e968b9582 11
Netaphous 50:c07e968b9582 12 // Constructor
Netaphous 50:c07e968b9582 13 FakeBarometer(float pressMin, float pressMax);
Netaphous 50:c07e968b9582 14
Netaphous 50:c07e968b9582 15 void get();
Netaphous 50:c07e968b9582 16 float pressure();
Netaphous 50:c07e968b9582 17 };
Netaphous 50:c07e968b9582 18
aburch1 83:0d3572a8a851 19 /**
Netaphous 50:c07e968b9582 20 Represents a fake measurer
aburch1 83:0d3572a8a851 21 Holds a min and max temperature and humidity as ranges for the fake readings
aburch1 83:0d3572a8a851 22 Also holds pseudo methods as copies of the original sensor methods
Netaphous 50:c07e968b9582 23 */
Netaphous 50:c07e968b9582 24 class FakeMeasurer
Netaphous 50:c07e968b9582 25 {
Netaphous 50:c07e968b9582 26 public:
Netaphous 50:c07e968b9582 27 float temperatureMin;
Netaphous 50:c07e968b9582 28 float temperatureMax;
Netaphous 50:c07e968b9582 29 float humidityMin;
Netaphous 50:c07e968b9582 30 float humidityMax;
Netaphous 50:c07e968b9582 31
Netaphous 50:c07e968b9582 32 FakeMeasurer(float tempMin, float tempMax, float humiMin, float humiMax);
Netaphous 50:c07e968b9582 33
Netaphous 50:c07e968b9582 34 bool init();
Netaphous 50:c07e968b9582 35 void calib();
Netaphous 50:c07e968b9582 36 void ReadTempHumi(float *temperature, float *humidity);
Netaphous 50:c07e968b9582 37 };