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
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
Generated on Tue Jul 12 2022 18:59:29 by
1.7.2