Salinity and temperature sensors are implemented in classes.

Dependencies:   mbed

Revision:
1:f448c12d2c5b
Parent:
0:ad9362f18797
Child:
2:ed17e258da0d
--- a/TemperatureSensor.h	Thu Jun 02 17:53:02 2016 +0000
+++ b/TemperatureSensor.h	Tue Jun 07 10:21:07 2016 +0000
@@ -11,6 +11,7 @@
 {
 public:
     TemperatureSensor(
+        mbed::Serial &serial,
         PinName pin,
         double const_voltage,
         double const_converter,
@@ -23,13 +24,16 @@
     double getTemperature();
 
 private:
+    Serial &_serial;
     AnalogIn _analog_in;
     double _const_voltage;
     double _const_converter;
     double _variance;
     double _vin;
     double _resistance;
+    double _reading;
     double _voltage;
+    double _temperature;
     double _k0;
     double _k1;
     double _k2;