Program for the water play project for the course Software Testing Practical 2016 given at the VU University

Dependencies:   mbed DRV88255 TextLCD Ping mbed-rtos

SalinityController.h

Committer:
sbouber1
Date:
2016-06-24
Revision:
80:38e274c4dafa
Parent:
66:133398875949

File content as of revision 80:38e274c4dafa:

#ifndef __SALINITYCONTROLLER_H__
#define __SALINITYCONTROLLER_H__

#include "mbed.h"
#include "stdio.h"
#include "settings.h"
#include "SensorController.h"


class SalinityController : public SensorController {
    public:
        SalinityController(bool threaded, int interval_ms) : SensorController(threaded, interval_ms) {}  
        
        virtual void update();
        
        virtual float getValue();
        
        virtual std::string getName();
        
        virtual void setLed(bool);
    
    private:
        float salinity;
        
        static float voltToSensor(float);
        
        static float sensorToPPT(float);
        
        static float getVoltage();
        
        static float getAdjustedPPT();
};

#endif