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: TemperatureController.h
- Revision:
- 9:b3674516729d
- Parent:
- 6:067e999b9c6e
- Child:
- 10:fd4670ec0806
--- a/TemperatureController.h Fri Jun 10 12:29:33 2016 +0000
+++ b/TemperatureController.h Fri Jun 10 12:56:53 2016 +0000
@@ -4,21 +4,30 @@
#include "mbed.h"
#include "stdio.h"
+#include "Controller.h"
+
#define N 50
-class TemperatureController {
+class TemperatureController : public Controller {
public:
TemperatureController();
- static void displayTemperature();
- static void controlHeater();
- static float getTemperature();
+ virtual float getValue();
+
+ virtual void update();
private:
+ float temperature;
+
static float readSensor();
+
static float analoginToCelsius(float);
+ static void controlHeater();
+
static float getOffset(float);
+
+ static void displayTemperature();
};
#endif
\ No newline at end of file