Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed DRV88255 TextLCD Ping mbed-rtos
SalinityController.h
- Committer:
- sbouber1
- Date:
- 2016-06-17
- Revision:
- 55:ee80f248919d
- Parent:
- 42:e7c726f9c6ed
- Child:
- 58:b5f0c0f305ff
File content as of revision 55:ee80f248919d:
#ifndef __SALINITYCONTROLLER_H__
#define __SALINITYCONTROLLER_H__
#include "mbed.h"
#include "stdio.h"
#include "SensorController.h"
#define N 50
class SalinityController : public SensorController {
public:
SalinityController(bool threaded, int interval_ms) : SensorController(threaded, interval_ms) {}
virtual void update();
virtual float getValue();
virtual std::string get_name();
private:
float salinity;
static float voltToSensor(float);
static float sensorToPPT(float);
static float getVoltage();
static float getAdjustedPPT();
};
#endif