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 15:53:15 2017 +0000
Revision:
82:668b51a39148
Parent:
81:996c0a3319b4
Child:
83:0d3572a8a851
Added formatting to messages, errors now terminate the program and wait for user input to restart

Who changed what in which revision?

UserRevisionLine numberNew contents of line
FairyMental 40:ba083993b481 1 #include "Measure.h"
Netaphous 65:3723d2729b68 2
FairyMental 68:d3765f93c16a 3 //Constructor taking 3 parameters
aburch1 82:668b51a39148 4 Measure::Measure(float f, float h, float p) {
FairyMental 40:ba083993b481 5 temperature = f;
FairyMental 40:ba083993b481 6 humidity = h;
FairyMental 40:ba083993b481 7 pressure = p;
FairyMental 40:ba083993b481 8 }
FairyMental 68:d3765f93c16a 9 // Empty / default constructor
FairyMental 40:ba083993b481 10 Measure::Measure()
FairyMental 40:ba083993b481 11 {
FairyMental 40:ba083993b481 12 temperature = 0;
FairyMental 40:ba083993b481 13 humidity = 0;
FairyMental 40:ba083993b481 14 pressure = 0;
FairyMental 40:ba083993b481 15 }
FairyMental 68:d3765f93c16a 16 // Constructor taking 4 paramters, in cluding a LocalDate
aburch1 82:668b51a39148 17 Measure::Measure(LocalDate d,float f, float h, float p)
FairyMental 46:0de1f3c7d118 18 {
FairyMental 46:0de1f3c7d118 19 date = d;
FairyMental 46:0de1f3c7d118 20 temperature = f;
FairyMental 46:0de1f3c7d118 21 humidity = h;
FairyMental 46:0de1f3c7d118 22 pressure = p;
FairyMental 46:0de1f3c7d118 23 }