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
Diff: PIDController.h
- Revision:
- 35:c9261391a995
- Parent:
- 32:1e4919a44196
- Child:
- 38:930469a33001
--- a/PIDController.h Tue Jun 14 11:17:06 2016 +0000
+++ b/PIDController.h Tue Jun 14 15:31:30 2016 +0000
@@ -26,13 +26,15 @@
virtual void update();
- virtual std::string get_name();
- float getSaltInGrams();
+ virtual std::string get_name();
+
+ bool is_heating();
private:
SensorController *temp;
SensorController *salt;
SensorController *proximity;
+ bool heating;
void pump_salt_water(int ml);
@@ -44,7 +46,9 @@
float getMlFreshWater(float, float);
+ float getSaltInGrams();
+ void set_heating(bool enabled);
};