Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SOFT253_Template_Weather_OS_54 by
Measure/Measure.cpp
- Committer:
- niallfrancis
- Date:
- 2017-05-13
- Revision:
- 85:422d0a1b95cf
- Parent:
- 83:0d3572a8a851
File content as of revision 85:422d0a1b95cf:
#include "Measure.h"
/**
@file : Measure.cpp
@authors : Radu Marcu, Jacob Williams, Niall Francis, Arron Burch
@section DESCRIPTION
This is the Measure class. Each message object stores the values collected from
the sensor board (temperature, humidity, pressure). These objects are later
stored in the CircularArray.
*/
//
// Measure objects holding data collected from sensor board.
//
Measure::Measure(float f, float h, float p) {
temperature = f;
humidity = h;
pressure = p;
}
Measure::Measure()
{
temperature = 0;
humidity = 0;
pressure = 0;
}
Measure::Measure(LocalDate d,float f, float h, float p)
{
date = d;
temperature = f;
humidity = h;
pressure = p;
}
