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:
- 40:1668630544c7
- Parent:
- 38:930469a33001
- Child:
- 44:7c932cc5991b
--- a/PIDController.h Tue Jun 14 19:11:19 2016 +0000
+++ b/PIDController.h Wed Jun 15 07:25:53 2016 +0000
@@ -24,6 +24,7 @@
this->temp = temp;
this->salt = salt;
this->proximity = proximity;
+ this->pumping = false;
}
virtual void update();
@@ -31,12 +32,16 @@
virtual std::string get_name();
bool is_heating();
+ bool is_pumping();
private:
SensorController *temp;
SensorController *salt;
SensorController *proximity;
+
+
bool heating;
+ bool pumping;
void pump_salt_water(int ml);