Salinity and temperature sensors are implemented in classes.

Dependencies:   mbed

Committer:
mariosimaremare
Date:
Tue Jun 28 12:30:40 2016 +0000
Revision:
15:e112bab9aa2f
Parent:
13:142a142a7ac5
Using new boxes.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mariosimaremare 3:7c648d1d8802 1 /*
mariosimaremare 3:7c648d1d8802 2 * G3: WATERPLAY
mariosimaremare 3:7c648d1d8802 3 */
mariosimaremare 3:7c648d1d8802 4
mariosimaremare 3:7c648d1d8802 5 #ifndef WATERPLAY_H
mariosimaremare 3:7c648d1d8802 6 #define WATERPLAY_H
mariosimaremare 3:7c648d1d8802 7
mariosimaremare 3:7c648d1d8802 8 #include "Printer.h"
mariosimaremare 3:7c648d1d8802 9 #include "TemperatureSensor.h"
mariosimaremare 3:7c648d1d8802 10 #include "SalinitySensor.h"
mariosimaremare 3:7c648d1d8802 11 #include "Thermostat.h"
mariosimaremare 6:931a7fe8fa52 12 #include "Tank.h"
mariosimaremare 3:7c648d1d8802 13 #include "Flasher.h"
mariosimaremare 3:7c648d1d8802 14
mariosimaremare 3:7c648d1d8802 15 class Waterplay
mariosimaremare 3:7c648d1d8802 16 {
mariosimaremare 3:7c648d1d8802 17 public:
mariosimaremare 3:7c648d1d8802 18 Waterplay(
mariosimaremare 3:7c648d1d8802 19 Printer &printer,
mariosimaremare 3:7c648d1d8802 20 TemperatureSensor &temperatureSensor,
mariosimaremare 3:7c648d1d8802 21 SalinitySensor &salinitySensor,
mariosimaremare 3:7c648d1d8802 22 Thermostat &thermostat,
mariosimaremare 6:931a7fe8fa52 23 Tank &tank,
mariosimaremare 11:dcaaf1bb21ce 24 Flasher &flasher,
mariosimaremare 11:dcaaf1bb21ce 25 Flasher &alarm
mariosimaremare 3:7c648d1d8802 26 );
mariosimaremare 3:7c648d1d8802 27 int control();
mariosimaremare 3:7c648d1d8802 28
mariosimaremare 3:7c648d1d8802 29 private:
mariosimaremare 3:7c648d1d8802 30 Printer &_printer;
mariosimaremare 3:7c648d1d8802 31 TemperatureSensor &_temperatureSensor;
mariosimaremare 3:7c648d1d8802 32 SalinitySensor &_salinitySensor;
mariosimaremare 3:7c648d1d8802 33 Thermostat &_thermostat;
mariosimaremare 6:931a7fe8fa52 34 Tank &_tank;
mariosimaremare 3:7c648d1d8802 35 Flasher &_flasher;
mariosimaremare 11:dcaaf1bb21ce 36 Flasher &_alarm;
mariosimaremare 13:142a142a7ac5 37 int _bad_reading_temperature;
mariosimaremare 13:142a142a7ac5 38 int _bad_reading_salinity;
mariosimaremare 3:7c648d1d8802 39 };
mariosimaremare 3:7c648d1d8802 40
mariosimaremare 3:7c648d1d8802 41 #endif