3rd Repo, trying to figure this out.

Dependencies:   LPS25H hts221

Fork of SOFT253_Template_Weather_OS_54 by Stage-1 Students SoCEM

Committer:
niallfrancis
Date:
Sat May 13 17:35:58 2017 +0000
Revision:
85:422d0a1b95cf
Parent:
83:0d3572a8a851
Finished commenting classes;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
FairyMental 40:ba083993b481 1 #include "Measure.h"
Netaphous 65:3723d2729b68 2
niallfrancis 85:422d0a1b95cf 3
niallfrancis 85:422d0a1b95cf 4 /**
niallfrancis 85:422d0a1b95cf 5 @file : Measure.cpp
niallfrancis 85:422d0a1b95cf 6 @authors : Radu Marcu, Jacob Williams, Niall Francis, Arron Burch
niallfrancis 85:422d0a1b95cf 7
niallfrancis 85:422d0a1b95cf 8 @section DESCRIPTION
niallfrancis 85:422d0a1b95cf 9
niallfrancis 85:422d0a1b95cf 10 This is the Measure class. Each message object stores the values collected from
niallfrancis 85:422d0a1b95cf 11 the sensor board (temperature, humidity, pressure). These objects are later
niallfrancis 85:422d0a1b95cf 12 stored in the CircularArray.
niallfrancis 85:422d0a1b95cf 13 */
niallfrancis 85:422d0a1b95cf 14
niallfrancis 85:422d0a1b95cf 15
niallfrancis 85:422d0a1b95cf 16
aburch1 83:0d3572a8a851 17 //
aburch1 83:0d3572a8a851 18 // Measure objects holding data collected from sensor board.
aburch1 83:0d3572a8a851 19 //
aburch1 83:0d3572a8a851 20
aburch1 83:0d3572a8a851 21 Measure::Measure(float f, float h, float p) {
aburch1 83:0d3572a8a851 22 temperature = f;
aburch1 83:0d3572a8a851 23 humidity = h;
aburch1 83:0d3572a8a851 24 pressure = p;
aburch1 83:0d3572a8a851 25 }
aburch1 83:0d3572a8a851 26
aburch1 83:0d3572a8a851 27 Measure::Measure()
aburch1 83:0d3572a8a851 28 {
aburch1 83:0d3572a8a851 29 temperature = 0;
aburch1 83:0d3572a8a851 30 humidity = 0;
aburch1 83:0d3572a8a851 31 pressure = 0;
aburch1 83:0d3572a8a851 32 }
aburch1 83:0d3572a8a851 33
aburch1 83:0d3572a8a851 34 Measure::Measure(LocalDate d,float f, float h, float p)
aburch1 83:0d3572a8a851 35 {
aburch1 83:0d3572a8a851 36 date = d;
aburch1 83:0d3572a8a851 37 temperature = f;
aburch1 83:0d3572a8a851 38 humidity = h;
aburch1 83:0d3572a8a851 39 pressure = p;
aburch1 83:0d3572a8a851 40 }