SOFT253 Coursework Weather Reader

Dependencies:   LPS25H hts221

Fork of Soft253-WeatherReader by Joseph Dumpleton

DataGenerator.cpp

Committer:
Jdumpleton3
Date:
2017-05-02
Revision:
6:0cc980145515
Parent:
1:8585a8d417dc

File content as of revision 6:0cc980145515:

#include <stdlib.h>
#include "DataGenerator.h"

void DataGenerator::ReadTempHumi(float *pTemp, float *pHumi){
    *pTemp = rand() % 3 + 22;
    *pHumi = rand() % 20 + 40;
}

float DataGenerator::pressure(){
    return (rand() % 20 + 40);
}

float DataGenerator::temperature(){
    return (rand() % 3 + 22);
}