Salinity and temperature sensors are implemented in classes.

Dependencies:   mbed

Waterplay.h

Committer:
mariosimaremare
Date:
2016-06-22
Revision:
13:142a142a7ac5
Parent:
11:dcaaf1bb21ce

File content as of revision 13:142a142a7ac5:

/*
* G3: WATERPLAY
*/

#ifndef WATERPLAY_H
#define WATERPLAY_H

#include "Printer.h"
#include "TemperatureSensor.h"
#include "SalinitySensor.h"
#include "Thermostat.h"
#include "Tank.h"
#include "Flasher.h"

class Waterplay
{
public:
    Waterplay(
        Printer &printer,
        TemperatureSensor &temperatureSensor,
        SalinitySensor &salinitySensor,
        Thermostat &thermostat,
        Tank &tank,
        Flasher &flasher,
        Flasher &alarm
    );
    int control();

private:
    Printer &_printer;
    TemperatureSensor &_temperatureSensor;
    SalinitySensor &_salinitySensor;
    Thermostat &_thermostat;
    Tank &_tank;
    Flasher &_flasher;
    Flasher &_alarm;
    int _bad_reading_temperature;
    int _bad_reading_salinity;
};

#endif