Saltware / Mbed 2 deprecated Water Play

Dependencies:   mbed DRV88255 TextLCD Ping mbed-rtos

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SalinityController.h Source File

SalinityController.h

00001 #ifndef __SALINITYCONTROLLER_H__
00002 #define __SALINITYCONTROLLER_H__
00003 
00004 #include "mbed.h"
00005 #include "stdio.h"
00006 #include "settings.h"
00007 #include "SensorController.h"
00008 
00009 
00010 class SalinityController : public SensorController {
00011     public:
00012         SalinityController(bool threaded, int interval_ms) : SensorController(threaded, interval_ms) {}  
00013         
00014         virtual void update();
00015         
00016         virtual float getValue();
00017         
00018         virtual std::string getName();
00019         
00020         virtual void setLed(bool);
00021     
00022     private:
00023         float salinity;
00024         
00025         static float voltToSensor(float);
00026         
00027         static float sensorToPPT(float);
00028         
00029         static float getVoltage();
00030         
00031         static float getAdjustedPPT();
00032 };
00033 
00034 #endif